From c46ec9d0bfd125244131f2b9c02d5446c54f631f Mon Sep 17 00:00:00 2001 From: Glen Maddern Date: Mon, 4 May 2020 15:55:06 +0100 Subject: [PATCH] v0.2.0 --- lerna.json | 2 +- packages/_fab/package.json | 4 +- packages/actions/package.json | 6 +- packages/cli/README.md | 151 +-------------------- packages/cli/package.json | 4 +- packages/core/package.json | 2 +- packages/deployer-aws-lambda/package.json | 6 +- packages/deployer-aws-s3/package.json | 6 +- packages/deployer-cf-workers/package.json | 6 +- packages/input-nextjs/package.json | 6 +- packages/input-static/package.json | 6 +- packages/plugin-render-html/package.json | 6 +- packages/plugin-rewire-assets/package.json | 6 +- packages/sandbox-node-vm/package.json | 4 +- packages/server/package.json | 8 +- 15 files changed, 37 insertions(+), 186 deletions(-) diff --git a/lerna.json b/lerna.json index 346890fa0..13e9aa977 100644 --- a/lerna.json +++ b/lerna.json @@ -2,5 +2,5 @@ "packages": ["packages/*"], "npmClient": "yarn", "useWorkspaces": true, - "version": "0.2.0-alpha.3" + "version": "0.2.0" } diff --git a/packages/_fab/package.json b/packages/_fab/package.json index e81b2d72c..6f0b24a6e 100644 --- a/packages/_fab/package.json +++ b/packages/_fab/package.json @@ -1,6 +1,6 @@ { "name": "fab", - "version": "0.2.0-alpha.3", + "version": "0.2.0", "description": "An alias for @fab/cli", "keywords": [ "fab" @@ -27,6 +27,6 @@ "prepack": "cat PREAMBLE.md > README.md && cat ../cli/README.md >> README.md" }, "dependencies": { - "@fab/cli": "0.2.0-alpha.3" + "@fab/cli": "0.2.0" } } diff --git a/packages/actions/package.json b/packages/actions/package.json index 379824b30..63c45bd02 100644 --- a/packages/actions/package.json +++ b/packages/actions/package.json @@ -1,6 +1,6 @@ { "name": "@fab/actions", - "version": "0.2.0-alpha.3", + "version": "0.2.0", "private": false, "description": "The guts of the FAB cli code, keeping the 'fab' package lean", "keywords": [ @@ -31,8 +31,8 @@ "test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"" }, "dependencies": { - "@fab/cli": "0.2.0-alpha.3", - "@fab/core": "0.2.0-alpha.3", + "@fab/cli": "0.2.0", + "@fab/core": "0.2.0", "@rollup/plugin-alias": "^2.2.0", "@rollup/plugin-commonjs": "^11.0.2", "@rollup/plugin-inject": "^4.0.1", diff --git a/packages/cli/README.md b/packages/cli/README.md index 741ec1ec9..9c758f222 100644 --- a/packages/cli/README.md +++ b/packages/cli/README.md @@ -21,7 +21,7 @@ $ npm install -g @fab/cli $ fab COMMAND running command... $ fab (-v|--version|version) -@fab/cli/0.2.0-alpha.3 darwin-x64 node-v13.12.0 +@fab/cli/0.2.0 darwin-x64 node-v13.12.0 $ fab --help [COMMAND] USAGE $ fab COMMAND @@ -34,69 +34,7 @@ USAGE -- [`fab build`](#fab-build) -- [`fab deploy [FILE]`](#fab-deploy-file) - [`fab help [COMMAND]`](#fab-help-command) -- [`fab init`](#fab-init) -- [`fab package [FILE]`](#fab-package-file) -- [`fab serve [FILE]`](#fab-serve-file) - -## `fab build` - -Generate a FAB given the config (usually in fab.config.json5) - -``` -USAGE - $ fab build - -OPTIONS - -c, --config=config [default: fab.config.json5] Path to config file - -h, --help show CLI help - --skip-cache Skip any caching of intermediate build artifacts - -EXAMPLES - $ fab build - $ fab build --config=fab.config.json5 -``` - -_See code: [lib/commands/build.js](https://github.com/fab-spec/fab/blob/v0.2.0-alpha.3/lib/commands/build.js)_ - -## `fab deploy [FILE]` - -Deploy a FAB to a hosting provider - -``` -USAGE - $ fab deploy [FILE] - -OPTIONS - -c, --config=config [default: fab.config.json5] Path to config file - -h, --help show CLI help - - --assets-already-deployed-at=assets-already-deployed-at Skip asset deploys and only deploy the server component - pointing at this URL for assets - - --assets-host=(cf-workers|aws-lambda-edge|aws-s3) If you have multiple potential hosts for the assets defined - in your fab.config.json5, which one to deploy to. - - --assets-only Skip server deploy, just upload assets - - --auto-install If you need dependent packages (e.g. @fab/deploy-*), install - them without prompting - - --env=env Override production settings with a different environment - defined in your FAB config file. - - --package-dir=package-dir Where to save the packaged FAB files (default .fab/deploy) - - --server-host=(cf-workers|aws-lambda-edge|aws-s3) If you have multiple potential hosts for the server defined - in your fab.config.json5, which one to deploy to. - -EXAMPLE - $ fab deploy fab.zip -``` - -_See code: [lib/commands/deploy.js](https://github.com/fab-spec/fab/blob/v0.2.0-alpha.3/lib/commands/deploy.js)_ ## `fab help [COMMAND]` @@ -115,91 +53,4 @@ OPTIONS _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v2.2.1/src/commands/help.ts)_ -## `fab init` - -Auto-configure a repo for generating FABs - -``` -USAGE - $ fab init - -OPTIONS - -c, --config=config [default: fab.config.json5] Config filename - -h, --help show CLI help - -y, --yes Assume yes to all prompts (must be in the root directory of a project) - --skip-framework-detection Don't try to auto-detect framework, set up manually. - --skip-install Do not attempt to npm install anything - --version=version What NPM version or dist-tag to use for installing FAB packages - -EXAMPLES - $ fab init - $ fab init --config=fab.config.json5 -``` - -_See code: [lib/commands/init.js](https://github.com/fab-spec/fab/blob/v0.2.0-alpha.3/lib/commands/init.js)_ - -## `fab package [FILE]` - -Package a FAB to be uploaded to a hosting provider manually - -``` -USAGE - $ fab package [FILE] - -OPTIONS - -c, --config=config [default: fab.config.json5] Path to config file - -h, --help show CLI help - - -t, --target=(cf-workers|aws-lambda-edge|aws-s3) Hosting provider (must be one of: cf-workers, aws-lambda-edge, - aws-s3) - - --assets-url=assets-url A URL for where the assets can be accessed, for server deployers - that need it - - --env=env Override production settings with a different environment defined in - your FAB config file. - - --output-path=output-path Where to save the packaged FAB (default .fab/deploy/[target].zip) - -EXAMPLE - $ fab package --target=aws-lambda-edge fab.zip -``` - -_See code: [lib/commands/package.js](https://github.com/fab-spec/fab/blob/v0.2.0-alpha.3/lib/commands/package.js)_ - -## `fab serve [FILE]` - -fab serve: Serve a FAB in a local NodeJS Express server - -``` -USAGE - $ fab serve [FILE] - -OPTIONS - -c, --config=config [default: fab.config.json5] Path to config file. Only used for SETTINGS in conjunction with - --env. - - -h, --help show CLI help - - --auto-install If you need dependent packages (e.g. @fab/serve), install them without prompting - - --cert=cert SSL certificate to use - - --env=env Override production settings with a different environment defined in your FAB config file. - - --experimental-v8-sandbox Enable experimental V8::Isolate Runtime (in development, currently non-functional) - - --key=key Key for the SSL Certificate - - --port=port (required) [default: 3000] Port to use - -EXAMPLES - $ fab serve fab.zip - $ fab serve --port=3001 fab.zip - $ fab serve --cert=local-ssl.cert --key=local-ssl.key fab.zip - $ fab serve --env=staging fab.zip -``` - -_See code: [lib/commands/serve.js](https://github.com/fab-spec/fab/blob/v0.2.0-alpha.3/lib/commands/serve.js)_ - diff --git a/packages/cli/package.json b/packages/cli/package.json index 8e4922be8..5f123b5aa 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@fab/cli", - "version": "0.2.0-alpha.3", + "version": "0.2.0", "description": "The CLI entry-point for the FAB ecosystem", "keywords": [ "fab", @@ -35,7 +35,7 @@ "version": "oclif-dev readme && git add README.md" }, "dependencies": { - "@fab/core": "0.2.0-alpha.3", + "@fab/core": "0.2.0", "@oclif/command": "^1", "@oclif/config": "^1", "@oclif/errors": "^1", diff --git a/packages/core/package.json b/packages/core/package.json index c4d750d49..45104571c 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@fab/core", - "version": "0.2.0-alpha.3", + "version": "0.2.0", "private": false, "description": "Common code for all FAB projects", "keywords": [ diff --git a/packages/deployer-aws-lambda/package.json b/packages/deployer-aws-lambda/package.json index b1295d61d..115f30047 100644 --- a/packages/deployer-aws-lambda/package.json +++ b/packages/deployer-aws-lambda/package.json @@ -1,6 +1,6 @@ { "name": "@fab/deployer-aws-lambda", - "version": "0.2.0-alpha.3", + "version": "0.2.0", "description": "Packages and deploys FABs to AWS Lambda@Edge", "keywords": [ "aws", @@ -33,8 +33,8 @@ "test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"" }, "dependencies": { - "@fab/cli": "0.2.0-alpha.3", - "@fab/core": "0.2.0-alpha.3", + "@fab/cli": "0.2.0", + "@fab/core": "0.2.0", "@types/nanoid": "^2.1.0", "@types/node": "^12.12.14", "deterministic-zip": "^1.1.0", diff --git a/packages/deployer-aws-s3/package.json b/packages/deployer-aws-s3/package.json index 868db7ca2..e23fc73bf 100644 --- a/packages/deployer-aws-s3/package.json +++ b/packages/deployer-aws-s3/package.json @@ -1,6 +1,6 @@ { "name": "@fab/deployer-aws-s3", - "version": "0.2.0-alpha.3", + "version": "0.2.0", "description": "Uploads FAB assets to AWS S3", "keywords": [ "aws", @@ -32,8 +32,8 @@ "test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"" }, "dependencies": { - "@fab/cli": "0.2.0-alpha.3", - "@fab/core": "0.2.0-alpha.3", + "@fab/cli": "0.2.0", + "@fab/core": "0.2.0", "@types/node": "^12.12.14", "aws-sdk": "^2.655.0", "fs-extra": "^9.0.0", diff --git a/packages/deployer-cf-workers/package.json b/packages/deployer-cf-workers/package.json index 605d97df5..9a2039749 100644 --- a/packages/deployer-cf-workers/package.json +++ b/packages/deployer-cf-workers/package.json @@ -1,6 +1,6 @@ { "name": "@fab/deployer-cf-workers", - "version": "0.2.0-alpha.3", + "version": "0.2.0", "description": "Packages and deploys FABs to AWS Lambda@Edge", "keywords": [ "cloudflare", @@ -33,8 +33,8 @@ "test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"" }, "dependencies": { - "@fab/cli": "0.2.0-alpha.3", - "@fab/core": "0.2.0-alpha.3", + "@fab/cli": "0.2.0", + "@fab/core": "0.2.0", "@types/node": "^12.12.14", "cross-fetch": "^3.0.4", "fs-extra": "^9.0.0", diff --git a/packages/input-nextjs/package.json b/packages/input-nextjs/package.json index b97cd6e0b..7736ec549 100644 --- a/packages/input-nextjs/package.json +++ b/packages/input-nextjs/package.json @@ -1,6 +1,6 @@ { "name": "@fab/input-nextjs", - "version": "0.2.0-alpha.3", + "version": "0.2.0", "description": "Module to kick off a FAB build from a NextJS project", "keywords": [ "aws", @@ -33,8 +33,8 @@ "test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"" }, "dependencies": { - "@fab/cli": "0.2.0-alpha.3", - "@fab/core": "0.2.0-alpha.3", + "@fab/cli": "0.2.0", + "@fab/core": "0.2.0", "@types/node": "^12.12.14", "@types/path-to-regexp": "^1.7.0", "acorn": "^7.1.0", diff --git a/packages/input-static/package.json b/packages/input-static/package.json index c9da56109..2af3fbde6 100644 --- a/packages/input-static/package.json +++ b/packages/input-static/package.json @@ -1,6 +1,6 @@ { "name": "@fab/input-static", - "version": "0.2.0-alpha.3", + "version": "0.2.0", "description": "Module to handle a directory of HTML & assets", "keywords": [ "fab", @@ -31,8 +31,8 @@ "test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"" }, "dependencies": { - "@fab/cli": "0.2.0-alpha.3", - "@fab/core": "0.2.0-alpha.3", + "@fab/cli": "0.2.0", + "@fab/core": "0.2.0", "@types/node": "^12.12.14", "fs-extra": "^8.1.0", "globby": "^10" diff --git a/packages/plugin-render-html/package.json b/packages/plugin-render-html/package.json index 07fc1e6ef..92b261782 100644 --- a/packages/plugin-render-html/package.json +++ b/packages/plugin-render-html/package.json @@ -1,6 +1,6 @@ { "name": "@fab/plugin-render-html", - "version": "0.2.0-alpha.3", + "version": "0.2.0", "description": "Module to render static HTML files with FAB injections", "keywords": [ "fab" @@ -30,8 +30,8 @@ "test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"" }, "dependencies": { - "@fab/cli": "0.2.0-alpha.3", - "@fab/core": "0.2.0-alpha.3", + "@fab/cli": "0.2.0", + "@fab/core": "0.2.0", "@types/cheerio": "^0.22.15", "@types/node": "^12.12.14", "cheerio": "^1.0.0-rc.3", diff --git a/packages/plugin-rewire-assets/package.json b/packages/plugin-rewire-assets/package.json index c65fb2f9f..10a89db0f 100644 --- a/packages/plugin-rewire-assets/package.json +++ b/packages/plugin-rewire-assets/package.json @@ -1,6 +1,6 @@ { "name": "@fab/plugin-rewire-assets", - "version": "0.2.0-alpha.3", + "version": "0.2.0", "description": "Module to handle files outside _assets", "keywords": [ "assets", @@ -32,8 +32,8 @@ "test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"" }, "dependencies": { - "@fab/cli": "0.2.0-alpha.3", - "@fab/core": "0.2.0-alpha.3", + "@fab/cli": "0.2.0", + "@fab/core": "0.2.0", "@types/istextorbinary": "^2.3.0", "@types/mime-types": "^2.1.0", "@types/node": "^12.12.14", diff --git a/packages/sandbox-node-vm/package.json b/packages/sandbox-node-vm/package.json index 7a88db570..44cfd0a27 100644 --- a/packages/sandbox-node-vm/package.json +++ b/packages/sandbox-node-vm/package.json @@ -1,6 +1,6 @@ { "name": "@fab/sandbox-node-vm", - "version": "0.2.0-alpha.3", + "version": "0.2.0", "description": "FAB runtime sandbox using Node's 'vm'", "keywords": [ "fab", @@ -29,7 +29,7 @@ "prepack": "npm run clean && npm run build" }, "dependencies": { - "@fab/core": "0.2.0-alpha.3", + "@fab/core": "0.2.0", "cross-fetch": "^3.0.4" }, "publishConfig": { diff --git a/packages/server/package.json b/packages/server/package.json index 07d8103c7..67be8027e 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -1,6 +1,6 @@ { "name": "@fab/server", - "version": "0.2.0-alpha.3", + "version": "0.2.0", "description": "NodeJS FAB Server", "keywords": [ "fab", @@ -30,9 +30,9 @@ "test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"" }, "dependencies": { - "@fab/cli": "0.2.0-alpha.3", - "@fab/core": "0.2.0-alpha.3", - "@fab/sandbox-node-vm": "0.2.0-alpha.3", + "@fab/cli": "0.2.0", + "@fab/core": "0.2.0", + "@fab/sandbox-node-vm": "0.2.0", "@fly/v8env": "^0.54.0", "@types/concat-stream": "^1.6.0", "@types/express": "^4.17.2",