slicejs-cli 1.0.36 → 1.0.37
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/client.js
CHANGED
|
@@ -27,9 +27,7 @@ sliceClient
|
|
|
27
27
|
.action((componentName, options) => {
|
|
28
28
|
const { Category, Properties } = options;
|
|
29
29
|
const propertiesList = Properties ? Properties.split(',') : [];
|
|
30
|
-
|
|
31
|
-
listComponents();
|
|
32
|
-
|
|
30
|
+
if( createComponent(componentName, Category, propertiesList)) listComponents();
|
|
33
31
|
});
|
|
34
32
|
|
|
35
33
|
// Comando para modificar un componente
|
|
@@ -43,7 +41,7 @@ sliceClient
|
|
|
43
41
|
const { Add, Remove,Category } = options;
|
|
44
42
|
const addProperties = Add ? Add.split(',') : [];
|
|
45
43
|
const removeProperties = Remove ? Remove.split(',') : [];
|
|
46
|
-
modifyComponent(componentName,Category, addProperties, removeProperties)
|
|
44
|
+
modifyComponent(componentName,Category, addProperties, removeProperties)
|
|
47
45
|
});
|
|
48
46
|
|
|
49
47
|
sliceClient.command('delete <componentName>')
|
|
@@ -51,8 +49,7 @@ sliceClient
|
|
|
51
49
|
.option('-category <category>', 'Component category')
|
|
52
50
|
.action((componentName, options) => {
|
|
53
51
|
const { Category } = options;
|
|
54
|
-
deleteComponent(componentName, Category);
|
|
55
|
-
listComponents();
|
|
52
|
+
if(deleteComponent(componentName, Category)) listComponents();
|
|
56
53
|
});
|
|
57
54
|
|
|
58
55
|
// Comando para listar todos los componentes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "slicejs-cli",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Command client for developing web applications with Slice.js",
|
|
3
|
+
"version": "1.0.37",
|
|
4
|
+
"description": "Command client for developing web applications with Slice.js framework",
|
|
5
5
|
"main": "client.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1",
|