Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@architect/create

Package Overview
Dependencies
Maintainers
5
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.4.0-RC.2 to 1.4.0

13

changelog.md

@@ -5,10 +5,19 @@ # Architect Create changelog

## [1.4.0] 2021-03-02
## [1.4.0] 2021-03-22
### Added
- Added support for `@plugins` pragma, allowing plugin authors to create new Lambda directories in arc projects
- Added beta support for `@plugins` pragma
- This allows plugin authors to create new Lambdas
---
## [1.3.4] 2021-03-17
### Fixed
- Fixed file creation in projects that use Architect within `package.json`
---
## [1.3.3] 2021-01-18

@@ -15,0 +24,0 @@

4

cli.js

@@ -52,5 +52,5 @@ #!/usr/bin/env node

// Bootstrap the project on the filesystem, including new dirs, npm i, etc.
let { install } = bootstrap({ options, standalone, update, runtime: opts.runtime })
let { install } = bootstrap({ options, inventory, standalone, update, runtime: opts.runtime })
return create({ options: opts, folder, install, standalone, update })
return create({ options: opts, inventory, folder, install, standalone, update })
}

@@ -57,0 +57,0 @@

{
"name": "@architect/create",
"version": "1.4.0-RC.2",
"version": "1.4.0",
"description": "Idempotently initialize Architect projects",

@@ -25,6 +25,6 @@ "main": "src/index.js",

"dependencies": {
"@architect/inventory": "~1.3.0-RC.1",
"@architect/utils": "~2.0.5-RC.0",
"@architect/inventory": "~1.3.1",
"@architect/utils": "~2.0.5",
"chalk": "~4.1.0",
"run-parallel": "~1.1.10",
"run-parallel": "~1.2.0",
"run-series": "~1.1.9"

@@ -31,0 +31,0 @@ },

let { join } = require('path')
let { existsSync, writeFileSync } = require('fs')
let { writeFileSync } = require('fs')
module.exports = function arcTemplate ({ name, folder, standalone, update, runtime }) {
module.exports = function arcTemplate (params) {
let { name, folder, inventory, standalone, update, runtime } = params
// Only add the @aws runtime setting into the Arc template if specified

@@ -21,18 +22,8 @@ runtime = runtime ? `runtime ${runtime}\n` : ''

let appDotArc = join(folder, 'app.arc')
let dotArc = join(folder, '.arc')
// FIXME add app.arc, arc.toml and arc.yml
let arcDotJSON = join(folder, 'arc.json')
let arcDotYAML = join(folder, 'arc.yaml')
let initialized = existsSync(appDotArc) ||
existsSync(dotArc) ||
existsSync(arcDotJSON) ||
existsSync(arcDotYAML)
if (initialized) {
// Do nothing if already initialized
if (standalone) {
update.done('Existing Architect project manifest found')
}
let hasManifest = inventory.inv._project.manifest
// Do nothing if a manifest already exists
if (hasManifest && standalone) {
update.done('Existing Architect project manifest found')
}
else {
else if (!hasManifest) {
// This is used further down the line in @arc/arc processes to ensure correctly ordered printing

@@ -39,0 +30,0 @@ process.env.INITIALIZED = true

@@ -18,3 +18,3 @@ let path = require('path')

module.exports = function bootstrap (params = {}) {
let { options = [], runtime, standalone = false, update } = params
let { options = [], inventory, runtime, standalone = false, update } = params
if (!update) update = updater('Create')

@@ -41,3 +41,3 @@

}
arcTemplate({ name, folder, standalone, update, runtime })
arcTemplate({ name, folder, inventory, standalone, update, runtime })

@@ -44,0 +44,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