@architect/create
Advanced tools
Comparing version 1.0.15 to 1.0.16
@@ -5,2 +5,16 @@ # Architect Create changelog | ||
## [1.0.16] 2020-03-02 | ||
### Added | ||
- Added support for running without an existing Architect project manifest | ||
### Changed | ||
- Added `cache-control` header by default | ||
- Updated dependencies | ||
--- | ||
## [1.0.15] 2020-02-05 | ||
@@ -7,0 +21,0 @@ |
{ | ||
"name": "@architect/create", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "Idempotently initialize Architect projects", | ||
@@ -21,6 +21,7 @@ "main": "src/index.js", | ||
"dependencies": { | ||
"@architect/utils": "^1.4.7", | ||
"chalk": "^3.0.0", | ||
"mkdirp": "^0.5.1", | ||
"run-parallel": "^1.1.9" | ||
"@architect/parser": "~2.1.0", | ||
"@architect/utils": "~1.4.7", | ||
"chalk": "~3.0.0", | ||
"mkdirp": "~1.0.3", | ||
"run-parallel": "~1.1.9" | ||
}, | ||
@@ -31,4 +32,4 @@ "devDependencies": { | ||
"tap-spec": "^5.0.0", | ||
"tape": "^4.13.0" | ||
"tape": "^4.13.2" | ||
} | ||
} |
@@ -1,2 +0,3 @@ | ||
let {readArc, updater} = require('@architect/utils') | ||
let { updater } = require('@architect/utils') | ||
let { readArc } = require('@architect/parser') | ||
let parallel = require('run-parallel') | ||
@@ -24,3 +25,3 @@ let code = require('./lambda') | ||
module.exports = function create (params={}, callback) { | ||
let {options={}, folder=process.cwd(), install, standalone, update} = params | ||
let { options={}, folder=process.cwd(), install, standalone, update } = params | ||
@@ -37,3 +38,3 @@ let promise | ||
if (!update) update = updater('Create') | ||
let {arc} = readArc({cwd: folder}) | ||
let { arc } = readArc({ cwd: folder }) | ||
@@ -40,0 +41,0 @@ let supported = ['node', 'deno', 'ruby', 'python', 'rb', 'py', 'js'] |
@@ -9,5 +9,5 @@ let learn = 'learn more about event functions here: https://arc.codes/primitives/events' | ||
let deno = `import {Context, Event} from "https://deno.land/x/lambda/mod.ts" | ||
let deno = `import {Context, APIGatewayProxyEvent} from "https://deno.land/x/lambda/mod.ts" | ||
export async function handler(event: Event, context: Context) { | ||
export async function handler( event: APIGatewayProxyEvent, context: Context) { | ||
return {message: \`Welcome to deno \${Deno.version.deno} 🦕\`} | ||
@@ -14,0 +14,0 @@ }` |
let learn = 'learn more about HTTP functions here: https://arc.codes/primitives/http' | ||
let deno = `import { Context, Event } from "https://deno.land/x/lambda/mod.ts"; | ||
let deno = `import { Context, APIGatewayProxyEvent } from "https://deno.land/x/lambda/mod.ts"; | ||
export async function handler(event: Event, context: Context) { | ||
return { | ||
statusCode: 200, | ||
headers: {'content-type': 'text/html; charset=utf8'}, | ||
body: \`Welcome to deno \${Deno.version.deno} 🦕\` | ||
}; | ||
}` | ||
export async function handler(event: APIGatewayProxyEvent, context: Context) { | ||
return { | ||
statusCode: 200, | ||
headers: { | ||
'cache-control': 'no-cache, no-store, must-revalidate, max-age=0, s-maxage=0', | ||
'content-type': 'text/html; charset=utf8' | ||
}, | ||
body: \`Welcome to deno \${Deno.version.deno} 🦕\` | ||
}; | ||
}` | ||
@@ -86,3 +89,6 @@ function html (lang, ext) { | ||
return { | ||
headers: {'content-type': 'text/html; charset=utf8'}, | ||
headers: { | ||
'cache-control': 'no-cache, no-store, must-revalidate, max-age=0, s-maxage=0', | ||
'content-type': 'text/html; charset=utf8' | ||
}, | ||
body: \`${html('Node.js', 'js')}\` | ||
@@ -95,3 +101,6 @@ } | ||
{ | ||
headers: {'content-type': 'text/html'}, | ||
headers: { | ||
'cache-control': 'no-cache, no-store, must-revalidate, max-age=0, s-maxage=0', | ||
'content-type': 'text/html; charset=utf8' | ||
}, | ||
body: %q(${html('Ruby', 'rb')}) | ||
@@ -104,3 +113,6 @@ } | ||
return { | ||
'headers': {'content-type': 'text/html'}, | ||
'headers': { | ||
'cache-control': 'no-cache, no-store, must-revalidate, max-age=0, s-maxage=0', | ||
'content-type': 'text/html; charset=utf8' | ||
}, | ||
'body': """${html('Python', 'py')}""" | ||
@@ -107,0 +119,0 @@ }` |
@@ -9,5 +9,5 @@ let learn = 'learn more about queue functions here: https://arc.codes/primitives/queues' | ||
let deno = `import { Context, Event } from "https://deno.land/x/lambda/mod.ts" | ||
let deno = `import { Context, APIGatewayProxyEvent } from "https://deno.land/x/lambda/mod.ts" | ||
export async function handler(event: Event, context: Context) { | ||
export async function handler(event: APIGatewayProxyEvent, context: Context) { | ||
return {message: \`Welcome to deno \${Deno.version.deno} 🦕\`} | ||
@@ -14,0 +14,0 @@ }` |
@@ -9,5 +9,5 @@ let learn = 'learn more about scheduled functions here: https://arc.codes/primitives/scheduled' | ||
let deno = `import { Context, Event } from "https://deno.land/x/lambda/mod.ts" | ||
let deno = `import { Context, APIGatewayProxyEvent } from "https://deno.land/x/lambda/mod.ts" | ||
export async function handler(event: Event, context: Context) { | ||
export async function handler(event: APIGatewayProxyEvent, context: Context) { | ||
return {message: \`Welcome to deno \${Deno.version.deno} 🦕\`} | ||
@@ -14,0 +14,0 @@ }` |
@@ -9,5 +9,5 @@ let learn = 'learn more about DynamoDB table stream functions here: https://arc.codes/primitives/tables' | ||
let deno = `import {Context, Event} from "https://deno.land/x/lambda/mod.ts" | ||
let deno = `import {Context, APIGatewayProxyEvent} from "https://deno.land/x/lambda/mod.ts" | ||
export async function handler(event: Event, context: Context) { | ||
export async function handler(event: APIGatewayProxyEvent, context: Context) { | ||
return {message: \`Welcome to deno \${Deno.version.deno} 🦕\`} | ||
@@ -14,0 +14,0 @@ }` |
@@ -9,5 +9,5 @@ let learn = 'learn more about WebSocket functions here: https://arc.codes/primitives/ws' | ||
let deno = `import {Context, Event} from "https://deno.land/x/lambda/mod.ts" | ||
let deno = `import {Context, APIGatewayProxyEvent} from "https://deno.land/x/lambda/mod.ts" | ||
export async function handler(event: Event, context: Context) { | ||
export async function handler(event: APIGatewayProxyEvent, context: Context) { | ||
console.log(event) | ||
@@ -14,0 +14,0 @@ return {statusCode: 200} |
48407
862
5
+ Added@architect/parser@~2.1.0
+ Added@architect/parser@1.2.22.1.6(transitive)
+ Added@architect/utils@1.4.7(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedmkdirp@1.0.4(transitive)
- Removed@architect/parser@2.3.0(transitive)
- Removed@architect/utils@1.5.14(transitive)
- Removedchalk@4.1.2(transitive)
- Removedglob@7.1.7(transitive)
- Removedqueue-microtask@1.2.3(transitive)
- Removedrun-parallel@1.2.0(transitive)
Updated@architect/utils@~1.4.7
Updatedchalk@~3.0.0
Updatedmkdirp@~1.0.3
Updatedrun-parallel@~1.1.9