create-mirta 0.3.5 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/classic.mjs +120 -0
- package/dist/index.mjs +800 -690
- package/dist/mono.mjs +208 -0
- package/dist/resolver.mjs +856 -0
- package/locales/en-US.json +109 -0
- package/locales/ru-RU.json +109 -0
- package/package.json +25 -22
- package/templates/classic/starter/content/package.json +15 -0
- package/{dist/templates/config/typescript → templates/classic/starter/content}/tsconfig.json +0 -5
- package/{dist/templates/eslint/eslint.config.mjs.ejs → templates/classic/starter/features/eslint/eslint.config.mjs.tt} +11 -6
- package/{dist/templates/base/_env → templates/classic/starter/features/examples/_.env} +1 -1
- package/templates/classic/starter/features/examples/src/wb-rules/01-counter.ts +12 -0
- package/templates/classic/starter/features/examples/src/wb-rules-modules/counter.ts +36 -0
- package/templates/classic/starter/features/examples-vitest/tests/wb-rules-modules/counter.test.ts +44 -0
- package/templates/classic/starter/template.json +9 -0
- package/{dist/templates/config/store → templates/classic/store/content}/package.json +1 -1
- package/templates/classic/store/features/examples/src/wb-rules/01-counter.ts +13 -0
- package/templates/classic/store/features/examples/src/wb-rules/02-counter.ts +19 -0
- package/templates/classic/store/features/examples/src/wb-rules-modules/counter-store.ts +33 -0
- package/templates/classic/store/features/examples/src/wb-rules-modules/counter.ts +44 -0
- package/templates/classic/store/features/examples-vitest/tests/wb-rules-modules/counter.test.ts +49 -0
- package/templates/classic/store/template.json +14 -0
- package/templates/mono/core/content/package.json +6 -0
- package/templates/mono/core/content/pnpm-workspace.yaml +3 -0
- package/templates/mono/core/content/sites/.gitkeep +0 -0
- package/templates/mono/core/content/tsconfig.json +31 -0
- package/templates/mono/core/features/eslint/eslint.config.mjs.tt +126 -0
- package/templates/mono/core/template.json +5 -0
- package/templates/mono/package/content/package.json +6 -0
- package/templates/mono/package/features/package/packages/{{package}}/package.json.tt +28 -0
- package/templates/mono/package/features/package/packages/{{package}}/src/.gitkeep +0 -0
- package/templates/mono/package/features/package/packages/{{package}}/tsconfig.build.json +10 -0
- package/templates/mono/package/features/package/sites/{{package}}-demo/package.json.tt +19 -0
- package/templates/mono/package/features/package/sites/{{package}}-demo/src/wb-rules/.gitkeep +0 -0
- package/templates/mono/package/features/package/sites/{{package}}-demo/src/wb-rules-modules/.gitkeep +0 -0
- package/templates/mono/package/features/package/sites/{{package}}-demo/tsconfig.build.json +10 -0
- package/templates/mono/package/features/package-examples/packages/{{package}}/src/index.ts +2 -0
- package/templates/mono/package/features/package-examples/packages/{{package}}/src/thermostat.ts +99 -0
- package/templates/mono/package/features/package-examples/packages/{{package}}/src/types.ts +25 -0
- package/templates/mono/package/features/package-examples/sites/{{package}}-demo/src/wb-rules/01-thermo.ts.tt +11 -0
- package/templates/mono/package/features/package-examples-vitest/packages/{{package}}/tests/mirta-thermostat.test.ts +72 -0
- package/templates/mono/package/features/package-github/packages/{{package}}/package.json.tt +11 -0
- package/templates/mono/package/template.json +16 -0
- package/templates/mono/sites/content/mirta.config.json +37 -0
- package/templates/mono/sites/content/package.json +6 -0
- package/templates/mono/sites/content/sites/home/package.json +17 -0
- package/templates/mono/sites/content/sites/home/src/wb-rules/.gitkeep +0 -0
- package/templates/mono/sites/content/sites/home/src/wb-rules-modules/.gitkeep +0 -0
- package/templates/mono/sites/content/sites/home-staging/package.json +17 -0
- package/templates/mono/sites/content/sites/home-staging/src/wb-rules/.gitkeep +0 -0
- package/templates/mono/sites/content/sites/home-staging/src/wb-rules-modules/.gitkeep +0 -0
- package/templates/mono/sites/features/examples/sites/home/package.json +17 -0
- package/templates/mono/sites/features/examples/sites/home/src/wb-rules/01-startup.ts +1 -0
- package/templates/mono/sites/features/examples/sites/home/src/wb-rules-modules/.gitkeep +0 -0
- package/templates/mono/sites/features/examples/sites/home-staging/package.json +17 -0
- package/templates/mono/sites/features/examples/sites/home-staging/src/wb-rules/01-startup.ts +1 -0
- package/templates/mono/sites/features/examples/sites/home-staging/src/wb-rules-modules/.gitkeep +0 -0
- package/templates/mono/sites/template.json +4 -0
- package/{dist/templates/base/_editorconfig → templates/shared/base/content/_.editorconfig} +1 -1
- package/{dist/templates/base/_gitignore → templates/shared/base/content/_.gitignore} +1 -3
- package/templates/shared/base/content/_.node-version +1 -0
- package/{dist/templates/base/.vscode → templates/shared/base/content/_.vscode}/settings.json +12 -1
- package/templates/shared/base/content/package.json +19 -0
- package/templates/shared/base/features/connection/_.env.local.tt +1 -0
- package/templates/shared/base/features/connection/mirta.config.json +6 -0
- package/templates/shared/base/features/eslint/package.json +9 -0
- package/templates/shared/base/features/examples/mirta.config.json.tt +51 -0
- package/templates/shared/base/features/github/_.github/workflows/build.yml.tt +56 -0
- package/templates/shared/base/features/github-vitest/_.github/workflows/test.yml +30 -0
- package/templates/shared/base/features/vitest/package.json +10 -0
- package/templates/shared/base/features/vitest-eslint/package.json +5 -0
- package/templates/shared/base/template.json +17 -0
- package/dist/locales/en-US.json +0 -85
- package/dist/locales/ru-RU.json +0 -86
- package/dist/templates/base/package.json +0 -27
- package/dist/templates/base/rollup.config.mjs +0 -15
- package/dist/templates/config/typescript/package.json +0 -8
- package/dist/templates/config/vitest/package.json +0 -10
- package/dist/templates/config/vitest/tests/setup/dotenv.ts +0 -5
- package/dist/templates/config/vitest/tests/setup/mirta.ts +0 -41
- package/dist/templates/config/vitest/tests/tsconfig.json +0 -9
- package/dist/templates/config/vitest/vitest.config.ts +0 -37
- package/dist/templates/example/base/src/wb-rules/00-dotenv.ts +0 -52
- package/dist/templates/example/base/src/wb-rules/01-count.ts +0 -6
- package/dist/templates/example/base/src/wb-rules-modules/counter.ts +0 -14
- package/dist/templates/example/store/src/wb-rules/01-count.ts +0 -10
- package/dist/templates/example/store/src/wb-rules-modules/counter-store.ts +0 -7
- package/dist/templates/example/store/src/wb-rules-modules/counter.ts +0 -20
- package/dist/templates/example/vitest/base/tests/wb-rules-modules/counter.test.ts +0 -10
- package/dist/templates/example/vitest/store/tests/wb-rules-modules/counter-store.test.ts +0 -13
- /package/{dist/assets → assets}/logo.art +0 -0
- /package/{dist/templates/base → templates/classic/starter/content}/src/wb-rules/.gitkeep +0 -0
- /package/{dist/templates/base → templates/classic/starter/content}/src/wb-rules-modules/.gitkeep +0 -0
- /package/{dist/templates/base → templates/classic/starter/content}/types/env.d.ts +0 -0
- /package/{dist/templates/config → templates/classic/starter/features}/vitest/tests/wb-rules-modules/.gitkeep +0 -0
- /package/{dist/templates/base/_gitattributes → templates/shared/base/content/_.gitattributes} +0 -0
- /package/{dist/templates/base/_npmrc → templates/shared/base/content/_.npmrc} +0 -0
- /package/{dist/templates/base/.vscode → templates/shared/base/content/_.vscode}/extensions.json +0 -0
- /package/{dist/templates/base/.vscode → templates/shared/base/content/_.vscode}/tasks.json +0 -0
- /package/{dist/templates/config/eslint/.vscode → templates/shared/base/features/eslint/_.vscode}/extensions.json +0 -0
- /package/{dist/templates/config/eslint/.vscode → templates/shared/base/features/eslint/_.vscode}/settings.json +0 -0
- /package/{dist/templates/config/vitest/.vscode → templates/shared/base/features/vitest/_.vscode}/extensions.json +0 -0
- /package/{dist/templates/config → templates/shared/base/features}/vitest/tsconfig.json +0 -0
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { useCounter } from '#wbm/counter'
|
|
2
|
-
import { useCounterStore } from '#wbm/counter-store'
|
|
3
|
-
|
|
4
|
-
const counter = useCounter()
|
|
5
|
-
|
|
6
|
-
counter.increment()
|
|
7
|
-
log(`Current Value: ${counter.count}`)
|
|
8
|
-
|
|
9
|
-
const counterStore = useCounterStore()
|
|
10
|
-
log(`Current Store Value: ${counterStore.count}`)
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { useCounterStore } from '#wbm/counter-store'
|
|
2
|
-
|
|
3
|
-
const store = useCounterStore()
|
|
4
|
-
|
|
5
|
-
export function useCounter() {
|
|
6
|
-
|
|
7
|
-
return {
|
|
8
|
-
get count() {
|
|
9
|
-
|
|
10
|
-
return store.count
|
|
11
|
-
|
|
12
|
-
},
|
|
13
|
-
increment() {
|
|
14
|
-
|
|
15
|
-
store.count += 1
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { useCounterStore } from '#wbm/counter-store'
|
|
2
|
-
|
|
3
|
-
test('Expect state is shared', () => {
|
|
4
|
-
|
|
5
|
-
const storeA = useCounterStore()
|
|
6
|
-
const storeB = useCounterStore()
|
|
7
|
-
|
|
8
|
-
const value = 10
|
|
9
|
-
storeA.count += value
|
|
10
|
-
|
|
11
|
-
expect(storeB.count).toBe(value)
|
|
12
|
-
|
|
13
|
-
})
|
|
File without changes
|
|
File without changes
|
/package/{dist/templates/base → templates/classic/starter/content}/src/wb-rules-modules/.gitkeep
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{dist/templates/base/_gitattributes → templates/shared/base/content/_.gitattributes}
RENAMED
|
File without changes
|
|
File without changes
|
/package/{dist/templates/base/.vscode → templates/shared/base/content/_.vscode}/extensions.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|