grg-kit-cli 0.3.1 → 0.3.2
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/commands/init.js
CHANGED
|
@@ -80,7 +80,7 @@ async function init(projectName, options) {
|
|
|
80
80
|
spinner.start('Creating Spartan-NG configuration...');
|
|
81
81
|
try {
|
|
82
82
|
const componentsConfig = {
|
|
83
|
-
componentsPath: 'libs/ui',
|
|
83
|
+
componentsPath: 'libs/spartan-ui',
|
|
84
84
|
importAlias: '@spartan-ng/helm'
|
|
85
85
|
};
|
|
86
86
|
await fs.writeFile('components.json', JSON.stringify(componentsConfig, null, 2) + '\n');
|
|
@@ -106,7 +106,7 @@ async function init(projectName, options) {
|
|
|
106
106
|
tsconfig.compilerOptions = tsconfig.compilerOptions || {};
|
|
107
107
|
tsconfig.compilerOptions.baseUrl = '.';
|
|
108
108
|
tsconfig.compilerOptions.paths = {
|
|
109
|
-
'@spartan-ng/helm/*': ['./libs/ui/*/src/index.ts']
|
|
109
|
+
'@spartan-ng/helm/*': ['./libs/spartan-ui/*/src/index.ts']
|
|
110
110
|
};
|
|
111
111
|
|
|
112
112
|
await fs.writeFile(tsconfigPath, JSON.stringify(tsconfig, null, 2) + '\n');
|
package/package.json
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "grg-kit-cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "CLI tool for pulling GRG Kit resources into your Angular project",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"grg": "./bin/grg.js"
|
|
8
8
|
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"generate": "node scripts/generate-resources.js",
|
|
11
|
+
"prepublishOnly": "npm run generate",
|
|
12
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
13
|
+
},
|
|
9
14
|
"keywords": [
|
|
10
15
|
"angular",
|
|
11
16
|
"ui",
|
|
@@ -30,9 +35,5 @@
|
|
|
30
35
|
},
|
|
31
36
|
"engines": {
|
|
32
37
|
"node": ">=16.0.0"
|
|
33
|
-
},
|
|
34
|
-
"scripts": {
|
|
35
|
-
"generate": "node scripts/generate-resources.js",
|
|
36
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
37
38
|
}
|
|
38
|
-
}
|
|
39
|
+
}
|
|
File without changes
|