slicejs-cli 2.0.3 → 2.0.5
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/package.json +2 -2
- package/post.js +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "slicejs-cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "Command client for developing web applications with Slice.js framework",
|
|
5
5
|
"main": "client.js",
|
|
6
6
|
"scripts": {
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
"commander": "^12.0.0",
|
|
21
21
|
"fs-extra": "^11.2.0",
|
|
22
22
|
"inquirer": "^12.4.2",
|
|
23
|
-
"slicejs-web-framework": "^1.0.
|
|
23
|
+
"slicejs-web-framework": "^1.0.6"
|
|
24
24
|
}
|
|
25
25
|
}
|
package/post.js
CHANGED
|
@@ -24,6 +24,9 @@ fs.promises.access(projectPackageJsonPath, fs.constants.F_OK)
|
|
|
24
24
|
projectPackageJson.scripts['slice:create'] = 'node node_modules/slicejs-cli/client.js component create';
|
|
25
25
|
projectPackageJson.scripts['slice:list'] = 'node node_modules/slicejs-cli/client.js component list';
|
|
26
26
|
projectPackageJson.scripts['slice:delete'] = 'node node_modules/slicejs-cli/client.js component delete';
|
|
27
|
+
projectPackageJson.scripts['run'] = 'node api/index.js';
|
|
28
|
+
projectPackageJson.scripts['slice:start'] = 'node api/index.js';
|
|
29
|
+
projectPackageJson.scripts['development'] = 'node api/index.js';
|
|
27
30
|
|
|
28
31
|
// Escribe el nuevo contenido en el package.json del proyecto
|
|
29
32
|
return fs.promises.writeFile(projectPackageJsonPath, JSON.stringify(projectPackageJson, null, 2), 'utf8');
|
|
@@ -38,14 +41,14 @@ fs.promises.access(projectPackageJsonPath, fs.constants.F_OK)
|
|
|
38
41
|
name: "project-name", // Utiliza el nombre de la carpeta como nombre del proyecto
|
|
39
42
|
version: '1.0.0',
|
|
40
43
|
description: 'Project description',
|
|
41
|
-
main: 'index.js',
|
|
44
|
+
main: 'api/index.js',
|
|
42
45
|
scripts: {
|
|
43
46
|
'slice:init': 'node node_modules/slicejs-cli/client.js init',
|
|
44
47
|
'slice:create': 'node node_modules/slicejs-cli/client.js component create',
|
|
45
48
|
'slice:list': 'node node_modules/slicejs-cli/client.js component list',
|
|
46
49
|
'slice:delete': 'node node_modules/slicejs-cli/client.js component delete',
|
|
47
50
|
"run": "node api/index.js",
|
|
48
|
-
"slice:start": "node api/index.js"
|
|
51
|
+
"slice:start": "node api/index.js"
|
|
49
52
|
},
|
|
50
53
|
keywords: [],
|
|
51
54
|
author: '',
|