argon-cli
Advanced tools
Comparing version 0.2.0 to 0.2.1
10
index.js
@@ -91,3 +91,3 @@ #!/usr/bin/env node | ||
}); | ||
resolve(); | ||
resolve(name); | ||
}).catch(reject); | ||
@@ -101,3 +101,3 @@ } else { | ||
function createComponent(name, bundle) { | ||
createNewBundle(bundle).then(() => { | ||
createNewBundle(bundle).then((bundleName) => { | ||
// Create folder structure | ||
@@ -138,6 +138,6 @@ const currentConfig = argv.atom | ||
if ( | ||
bundle | ||
&& !globalConfig.webpack.componentGroups[bundle].includes(`${compRelativePath}/`) | ||
bundleName | ||
&& !globalConfig.webpack.componentGroups[bundleName].includes(`${compRelativePath}/`) | ||
) { | ||
globalConfig.webpack.componentGroups[bundle].push(`${compRelativePath}/`); | ||
globalConfig.webpack.componentGroups[bundleName].push(`${compRelativePath}/`); | ||
// Write configuration back | ||
@@ -144,0 +144,0 @@ fs.writeFileSync(globalConfigFilePath, JSON.stringify(globalConfig, null, 2)); |
{ | ||
"name": "argon-cli", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Argon CLI provide tools for creating components and running build scripts", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
10297