Socket
Socket
Sign inDemoInstall

@architect/create

Package Overview
Dependencies
Maintainers
4
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@architect/create - npm Package Compare versions

Comparing version 1.0.12 to 1.0.13

src/simple-static.js

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 @@

4

package.json
{
"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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc