Socket
Socket
Sign inDemoInstall

@architect/create

Package Overview
Dependencies
5
Maintainers
6
Versions
100
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.2.0-RC.3 to 4.0.0

2

changelog.md

@@ -5,3 +5,3 @@ # Architect Create changelog

## [next] 2022-01-23
## [4.0.0] 2022-01-23

@@ -8,0 +8,0 @@ ### Changed

{
"name": "@architect/create",
"version": "3.2.0-RC.3",
"version": "4.0.0",
"description": "Idempotently initialize Architect projects",

@@ -26,4 +26,4 @@ "main": "src/index.js",

"dependencies": {
"@architect/inventory": "~3.0.0-RC.5",
"@architect/utils": "~3.0.4",
"@architect/inventory": "~3.0.0",
"@architect/utils": "~3.1.0",
"chalk": "4.1.2",

@@ -36,3 +36,3 @@ "lambda-runtimes": "~1.1.1",

"cross-env": "~7.0.3",
"eslint": "~8.7.0",
"eslint": "~8.9.0",
"fs-extra": "~10.0.0",

@@ -42,3 +42,3 @@ "nyc": "~15.1.0",

"tap-spec": "^5.0.0",
"tape": "~5.4.1"
"tape": "~5.5.2"
},

@@ -45,0 +45,0 @@ "eslintConfig": {

@@ -10,47 +10,52 @@ // let { join } = require('path')

// @events
events: params => {
// return {
// name: 'my-event',
// src: join('path', 'to', 'code'),
// }
},
// events: ({ arc, inventory }) => {
// return {
// name: 'my-event',
// src: join('path', 'to', 'code'),
// }
// },
// @queues
queues: params => {
// return {
// name: 'my-queue',
// src: join('path', 'to', 'code'),
// }
},
// queues: ({ arc, inventory }) => {
// return {
// name: 'my-queue',
// src: join('path', 'to', 'code'),
// }
// },
// @http
http: params => {
// return {
// method: 'get',
// path: '/*'
// src: join('path', 'to', 'code'),
// }
},
// http: ({ arc, inventory }) => {
// return {
// method: 'get',
// path: '/*'
// src: join('path', 'to', 'code'),
// }
// },
// @scheduled
scheduled: params => {
// return {
// name: 'my-scheduled-event',
// src: join('path', 'to', 'code'),
// rate: '1 day', // or...
// cron: '* * * * * *',
// }
},
// scheduled: ({ arc, inventory }) => {
// return {
// name: 'my-scheduled-event',
// src: join('path', 'to', 'code'),
// rate: '1 day', // or...
// cron: '* * * * * *',
// }
// },
// @tables-streams
'tables-streams': params => {
// return {
// name: 'my-table-stream',
// table: 'app-data',
// src: join('path', 'to', 'code'),
// }
},
// 'tables-streams': ({ arc, inventory }) => {
// return {
// name: 'my-table-stream',
// table: 'app-data',
// src: join('path', 'to', 'code'),
// }
// },
// Custom / bare Lambdas (with event sources to be defined by `deploy.start`)
customLambdas: params => {
// return {
// name: 'my-custom-lambda',
// src: join('path', 'to', 'code'),
// }
},
// customLambdas: ({ arc, inventory }) => {
// return {
// name: 'my-custom-lambda',
// src: join('path', 'to', 'code'),
// }
// },

@@ -60,16 +65,19 @@ /**

*/
env: params => {
// return {
// MY_ENV_VAR: 'ok',
// ANOTHER_VAR: { objects_and_arrays_are_automatically_json_encoded: 'neat!' }
// }
},
runtimes: params => {
// return {
// name: 'runtime-name',
// type: 'transpiled',
// build: '.build',
// baseRuntime: 'nodejs14.x',
// }
},
// Environment variables
// env: ({ arc, inventory }) => {
// return {
// MY_ENV_VAR: 'ok',
// ANOTHER_VAR: { objects_and_arrays_are_automatically_json_encoded: 'neat!' }
// }
// },
// Custom runtimes
// runtimes: ({ arc, inventory }) => {
// return {
// name: 'runtime-name',
// type: 'transpiled',
// build: '.build',
// baseRuntime: 'nodejs14.x',
// }
// },
},

@@ -79,20 +87,25 @@

deploy: {
start: async params => {
// Run operations prior to deployment
// Optionally return mutated CloudFormation
},
services: async params => {
// return {
// 'service-name': 'value or ARN', // Register a service, or...
// 'arbitrary-data': '...' // Add up to 4KB of arbitrary data / config as a string
// }
},
target: async params => {
/* API NOT YET ENABLED */
// Deploy to a target other than AWS (e.g. Begin, Serverless Cloud, etc.)
},
end: async params => {
/* API NOT YET ENABLED */
// Run operations after to deployment
},
// Pre-deploy operations
// start: async ({ arc, cloudformation, dryRun, inventory, stage }) => {
// // Run operations prior to deployment
// // Optionally return mutated `cloudformation`
// },
// Architect service discovery and config data
// services: async ({ arc, cloudformation, dryRun, inventory, stage }) => {
// return {
// 'service-name': 'value or ARN', // Register a service, or...
// 'arbitrary-data': '...' // Add up to 4KB of arbitrary data / config as a string
// }
// },
// Alternate deployment targets
// target: async ({ arc, cloudformation, dryRun, inventory, stage }) => {
// // Deploy to a target other than AWS (e.g. Begin, Serverless Cloud, etc.)
// },
// Post-deploy operations
// end: async ({ arc, cloudformation, dryRun, inventory, stage }) => {
// // Run operations after to deployment
// },
},

@@ -102,12 +115,17 @@

sandbox: {
start: async params => {
// Run operations upon Sandbox startup
},
watcher: async params => {
// Act on filesystem events within your project
},
end: async params => {
// Run operations upon Sandbox shutdown
},
// Startup operations
// start: async ({ arc, inventory, invoke }) => {
// // Run operations upon Sandbox startup
// },
// Project filesystem watcher
// watcher: async ({ filename, event, inventory, invoke }) => {
// // Act on filesystem events within your project
// },
// Shutdown operations
// end: async ({ arc, inventory, invoke }) => {
// // Run operations upon Sandbox shutdown
// },
}
}
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc