create-application-template 0.8.0 → 0.8.1

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.
@@ -23,16 +23,9 @@ const run = async () => {
23
23
  // consume arguments
24
24
  const argv = yargs(hideBin(process.argv)).argv
25
25
 
26
- const isNameDotCommand = (argv.name === '.')
27
- const projectName = isNameDotCommand ? path.basename(process.cwd()) : argv.name
28
-
29
26
  if (!argv.name) {
30
27
  console.error('WARNING add a project name like so: npx create-application-template --name={my-project}')
31
28
  process.exit(1)
32
- } else {
33
- console.info('')
34
- console.info(`Your project name is: ${projectName}`)
35
- console.info('')
36
29
  }
37
30
 
38
31
  const projectPaths = {
@@ -42,6 +35,13 @@ const run = async () => {
42
35
  get packageJson() { return `${this.root}/package.json` },
43
36
  }
44
37
 
38
+ const isNameDotCommand = (argv.name === '.')
39
+ const projectName = isNameDotCommand ? path.basename(process.cwd()) : argv.name
40
+
41
+ console.info('')
42
+ console.info(`Your project name is: ${projectName}`)
43
+ console.info('')
44
+
45
45
  // create project
46
46
  execCommand(`curl -L ${repo} | tar zx --one-top-level=${argv.name} --strip-components 1`)
47
47
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-application-template",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "provides a configured application template for you to build upon",
5
5
  "main": "index.js",
6
6
  "bin": {