@architect/create
Advanced tools
Comparing version 1.4.0-RC.2 to 1.4.0
@@ -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 @@ |
@@ -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 @@ /** |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
50770
843
+ Addedqueue-microtask@1.2.3(transitive)
+ Addedrun-parallel@1.2.0(transitive)
- Removedrun-parallel@1.1.10(transitive)
Updated@architect/inventory@~1.3.1
Updated@architect/utils@~2.0.5
Updatedrun-parallel@~1.2.0