@virmator/init 14.21.2 → 14.22.0
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/README.md
CHANGED
|
@@ -16,6 +16,7 @@ A default plugin for [virmator](https://www.npmjs.com/package/virmator).
|
|
|
16
16
|
- .github/workflows/tagged-release.yml
|
|
17
17
|
- .github/workflows/tests.yml
|
|
18
18
|
- .vscode/settings.json
|
|
19
|
+
- configs/deps-regen.config.ts
|
|
19
20
|
- src/ui/elements/vir-app.element.ts
|
|
20
21
|
- src/index.html
|
|
21
22
|
- www-static/index.css
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
baseAllowedRecentDeps,
|
|
3
|
+
RecentDepsAllowList,
|
|
4
|
+
} from '@virmator/deps/configs/deps-regen.config.base.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Allowlist of npm packages whose `node_modules` and lockfile entries should be regenerated by
|
|
8
|
+
* `virmator deps regen`. Each entry is either an npm package name (e.g. `'react'`, `'@scope/foo'`)
|
|
9
|
+
* or an npm author handle (e.g. `'electrovir'`); anything published by an allowlisted author is
|
|
10
|
+
* also regenerated. Anything not matching this list is left alone.
|
|
11
|
+
*/
|
|
12
|
+
export const depsRegenAllowList: RecentDepsAllowList = [
|
|
13
|
+
...baseAllowedRecentDeps,
|
|
14
|
+
];
|
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
"format": "virmator format",
|
|
13
13
|
"lint": "virmator lint fix",
|
|
14
14
|
"publish": "virmator publish npm run test:all",
|
|
15
|
-
"test": "
|
|
16
|
-
"test:all": "npm run
|
|
17
|
-
"test:coverage": "npm run test
|
|
15
|
+
"test": "npm run compile && mono-vir for-each-async npm run test",
|
|
16
|
+
"test:all": "npm run test:coverage && runstorm --names spelling,format,docs,deps,lint \"npm run test:spelling\" \"npm run test:format\" \"npm run test:docs\" \"npm run test:deps\" \"npm run test:lint\"",
|
|
17
|
+
"test:coverage": "npm run compile && mono-vir for-each-async npm run test:coverage",
|
|
18
18
|
"test:deps": "virmator deps check",
|
|
19
19
|
"test:docs": "virmator docs check",
|
|
20
20
|
"test:format": "virmator format check",
|
|
21
21
|
"test:lint": "virmator lint",
|
|
22
22
|
"test:spelling": "virmator spellcheck",
|
|
23
|
-
"test:update": "npm run test
|
|
23
|
+
"test:update": "npm run compile && mono-vir for-each-async npm run test:update"
|
|
24
24
|
},
|
|
25
25
|
"engines": {
|
|
26
26
|
"node": ">=22"
|
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
"format": "virmator format",
|
|
13
13
|
"lint": "virmator lint fix",
|
|
14
14
|
"publish": "virmator publish npm run test:all",
|
|
15
|
-
"test": "
|
|
16
|
-
"test:all": "npm run
|
|
17
|
-
"test:coverage": "npm run test
|
|
15
|
+
"test": "npm run compile && mono-vir for-each-async npm run test",
|
|
16
|
+
"test:all": "npm run test:coverage && runstorm --names spelling,format,docs,deps,lint \"npm run test:spelling\" \"npm run test:format\" \"npm run test:docs\" \"npm run test:deps\" \"npm run test:lint\"",
|
|
17
|
+
"test:coverage": "npm run compile && mono-vir for-each-async npm run test:coverage",
|
|
18
18
|
"test:deps": "virmator deps check",
|
|
19
19
|
"test:docs": "virmator docs check",
|
|
20
20
|
"test:format": "virmator format check",
|
|
21
21
|
"test:lint": "virmator lint",
|
|
22
22
|
"test:spelling": "virmator spellcheck",
|
|
23
|
-
"test:update": "npm test
|
|
23
|
+
"test:update": "npm run compile && mono-vir for-each-async npm run test:update"
|
|
24
24
|
},
|
|
25
25
|
"engines": {
|
|
26
26
|
"node": ">=22"
|
package/dist/init.d.ts
CHANGED
|
@@ -79,6 +79,19 @@ export declare const virmatorInitPlugin: Readonly<Readonly<{
|
|
|
79
79
|
};
|
|
80
80
|
readonly required: false;
|
|
81
81
|
};
|
|
82
|
+
readonly depsRegen: {
|
|
83
|
+
readonly copyFromPath: string;
|
|
84
|
+
readonly copyToPath: string;
|
|
85
|
+
readonly env: {
|
|
86
|
+
readonly web: true;
|
|
87
|
+
readonly node: true;
|
|
88
|
+
};
|
|
89
|
+
readonly packageType: {
|
|
90
|
+
readonly package: true;
|
|
91
|
+
readonly "mono-root": true;
|
|
92
|
+
};
|
|
93
|
+
readonly required: false;
|
|
94
|
+
};
|
|
82
95
|
readonly appElement: {
|
|
83
96
|
readonly copyFromPath: string;
|
|
84
97
|
readonly copyToPath: string;
|
|
@@ -365,6 +378,19 @@ export declare const virmatorInitPlugin: Readonly<Readonly<{
|
|
|
365
378
|
};
|
|
366
379
|
readonly required: false;
|
|
367
380
|
};
|
|
381
|
+
readonly depsRegen: {
|
|
382
|
+
readonly copyFromPath: string;
|
|
383
|
+
readonly copyToPath: string;
|
|
384
|
+
readonly env: {
|
|
385
|
+
readonly web: true;
|
|
386
|
+
readonly node: true;
|
|
387
|
+
};
|
|
388
|
+
readonly packageType: {
|
|
389
|
+
readonly package: true;
|
|
390
|
+
readonly "mono-root": true;
|
|
391
|
+
};
|
|
392
|
+
readonly required: false;
|
|
393
|
+
};
|
|
368
394
|
readonly appElement: {
|
|
369
395
|
readonly copyFromPath: string;
|
|
370
396
|
readonly copyToPath: string;
|
package/dist/init.js
CHANGED
|
@@ -9,6 +9,16 @@ import { copyConfigFile, defineVirmatorPlugin, NpmDepType, PackageType, Virmator
|
|
|
9
9
|
import { basename, join } from 'node:path';
|
|
10
10
|
import { simpleGit } from 'simple-git';
|
|
11
11
|
const deps = {
|
|
12
|
+
'mono-vir': {
|
|
13
|
+
env: {
|
|
14
|
+
[RuntimeEnv.Node]: true,
|
|
15
|
+
[RuntimeEnv.Web]: true,
|
|
16
|
+
},
|
|
17
|
+
packageType: {
|
|
18
|
+
[PackageType.MonoRoot]: true,
|
|
19
|
+
},
|
|
20
|
+
type: NpmDepType.Dev,
|
|
21
|
+
},
|
|
12
22
|
runstorm: {
|
|
13
23
|
env: {
|
|
14
24
|
[RuntimeEnv.Node]: true,
|
|
@@ -125,6 +135,19 @@ export const virmatorInitPlugin = defineVirmatorPlugin(import.meta.dirname, {
|
|
|
125
135
|
},
|
|
126
136
|
required: false,
|
|
127
137
|
},
|
|
138
|
+
depsRegen: {
|
|
139
|
+
copyFromPath: join('configs', 'deps-regen.config.ts'),
|
|
140
|
+
copyToPath: join('configs', 'deps-regen.config.ts'),
|
|
141
|
+
env: {
|
|
142
|
+
[RuntimeEnv.Web]: true,
|
|
143
|
+
[RuntimeEnv.Node]: true,
|
|
144
|
+
},
|
|
145
|
+
packageType: {
|
|
146
|
+
[PackageType.TopPackage]: true,
|
|
147
|
+
[PackageType.MonoRoot]: true,
|
|
148
|
+
},
|
|
149
|
+
required: false,
|
|
150
|
+
},
|
|
128
151
|
appElement: {
|
|
129
152
|
copyFromPath: join('configs', 'src', 'ui', 'elements', 'vir-app.element.ts'),
|
|
130
153
|
copyToPath: join('src', 'ui', 'elements', 'vir-app.element.ts'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@virmator/init",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.22.0",
|
|
4
4
|
"description": "Default init plugin for virmator.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"virmator",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@augment-vir/assert": "^31.71.3",
|
|
35
35
|
"@augment-vir/common": "^31.71.3",
|
|
36
36
|
"@augment-vir/node": "^31.71.3",
|
|
37
|
-
"@virmator/core": "^14.
|
|
37
|
+
"@virmator/core": "^14.22.0",
|
|
38
38
|
"simple-git": "^3.36.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|