@architect/create
Advanced tools
Comparing version 1.0.12 to 1.0.13
11
cli.js
@@ -7,2 +7,3 @@ #!/usr/bin/env node | ||
let {updater} = require('@architect/utils') | ||
let simpleStatic = require('./src/simple-static') | ||
let update = updater('Create') | ||
@@ -12,5 +13,7 @@ | ||
* `arc create` | ||
* | ||
* Idempotently initializes new Architect projects | ||
* | ||
* opts | ||
* -s|--static|static ........... init a static app | ||
* -r|--runtime|runtime ......... set up with one of node, deno, python, or ruby | ||
@@ -22,2 +25,3 @@ * -v|--verbose|verbose ......... prints all output to console | ||
let isVerbose = opt=> opt === 'verbose' || opt === '--verbose' || opt === '-v' | ||
let isStatic = opt=> opt === 'static' || opt === '--static' || opt === '-s' | ||
@@ -32,6 +36,11 @@ async function cmd () { | ||
if (options.some(isStatic)) { | ||
// just bail early here ... I don't use understand the code below so just stubbing in | ||
return simpleStatic() | ||
} | ||
// Populate basic project files | ||
let opts = { | ||
verbose: options.some(isVerbose), | ||
runtime: options.some(isRuntime) ? options.slice(options.findIndex(isRuntime))[1] : false | ||
runtime: options.some(isRuntime) ? options.slice(options.findIndex(isRuntime))[1] : false, | ||
} | ||
@@ -38,0 +47,0 @@ |
{ | ||
"name": "@architect/create", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "Idempotently initialize Architect projects", | ||
@@ -16,3 +16,3 @@ "main": "src/index.js", | ||
"test:unit": "tape test/**/*-test.js | tap-spec", | ||
"lint": "eslint .", | ||
"lint": "eslint . --fix", | ||
"rc": "npm version prerelease --preid RC" | ||
@@ -19,0 +19,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47162
27
850
12