slicejs-cli 1.0.50 → 1.0.52

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
@@ -25,9 +25,10 @@ sliceClient
25
25
  .option('-properties <properties>', 'Specify properties for the component (comma-separated)')
26
26
  .option('-methods <methods>', 'Specify methods for the component (comma-separated)')
27
27
  .action((componentName, options) => {
28
- const { Category, Properties } = options;
28
+ const { Category, Properties, Methods } = options;
29
29
  const propertiesList = Properties ? Properties.split(',') : [];
30
- if( createComponent(componentName, Category, propertiesList)) listComponents();
30
+ const methodsList = Methods ? Methods.split(',') : [];
31
+ if( createComponent(componentName, Category, propertiesList, methodsList)) listComponents();
31
32
  });
32
33
 
33
34
  // Comando para modificar un componente
@@ -18,15 +18,15 @@ export default function listComponents() {
18
18
  const componentMap = new Map();
19
19
 
20
20
  visualComponents.forEach(component => {
21
- componentMap.set(component, "SliceVisual");
21
+ componentMap.set(component, "Visual");
22
22
  });
23
23
 
24
24
  services.forEach(component => {
25
- componentMap.set(component, "SliceService");
25
+ componentMap.set(component, "Service");
26
26
  });
27
27
 
28
28
  structuralComponents.forEach(component => {
29
- componentMap.set(component, "SliceStructural");
29
+ componentMap.set(component, "Structural");
30
30
  });
31
31
 
32
32
  userVisualComponents.forEach(component => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slicejs-cli",
3
- "version": "1.0.50",
3
+ "version": "1.0.52",
4
4
  "description": "Command client for developing web applications with Slice.js framework",
5
5
  "main": "client.js",
6
6
  "scripts": {