slicejs-cli 1.0.49 → 1.0.51

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
@@ -7,8 +7,8 @@ import Print from '../Print.js';
7
7
  export default function listComponents() {
8
8
 
9
9
  const SlicePath = path.join(__dirname, '../../../../Slice/Components');
10
- const userVisualComponents = fs.readdirSync(__dirname,'../../../../src/Components/Visual');
11
- const userServices = fs.readdirSync(__dirname,'../../../../src/Components/Service');
10
+ const userVisualComponents = fs.readdirSync(path.join(__dirname,'../../../../src/Components/Visual'));
11
+ const userServices = fs.readdirSync(path.join(__dirname,'../../../../src/Components/Service'));
12
12
 
13
13
  const visualComponents = fs.readdirSync(`${SlicePath}/Visual`);
14
14
  const services = fs.readdirSync(`${SlicePath}/Service`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slicejs-cli",
3
- "version": "1.0.49",
3
+ "version": "1.0.51",
4
4
  "description": "Command client for developing web applications with Slice.js framework",
5
5
  "main": "client.js",
6
6
  "scripts": {