-
Notifications
You must be signed in to change notification settings - Fork 618
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli-plugin-workspaces): introduce workspace management commands
- Loading branch information
Showing
11 changed files
with
634 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,250 @@ | ||
# Change Log | ||
|
||
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
# [5.0.0-beta.52](https://github.com/webiny/webiny-js/compare/v5.0.0-beta.51...v5.0.0-beta.52) (2021-01-08) | ||
|
||
**Note:** Version bump only for package @webiny/cli-plugin-build | ||
|
||
|
||
|
||
|
||
|
||
# [5.0.0-beta.51](https://github.com/webiny/webiny-js/compare/v5.0.0-beta.50...v5.0.0-beta.51) (2021-01-08) | ||
|
||
**Note:** Version bump only for package @webiny/cli-plugin-build | ||
|
||
|
||
|
||
|
||
|
||
# [5.0.0-beta.50](https://github.com/webiny/webiny-js/compare/v5.0.0-beta.49...v5.0.0-beta.50) (2021-01-08) | ||
|
||
**Note:** Version bump only for package @webiny/cli-plugin-build | ||
|
||
|
||
|
||
|
||
|
||
# [5.0.0-beta.49](https://github.com/webiny/webiny-js/compare/v5.0.0-beta.48...v5.0.0-beta.49) (2021-01-08) | ||
|
||
**Note:** Version bump only for package @webiny/cli-plugin-build | ||
|
||
|
||
|
||
|
||
|
||
# [5.0.0-beta.48](https://github.com/webiny/webiny-js/compare/v5.0.0-beta.47...v5.0.0-beta.48) (2021-01-08) | ||
|
||
**Note:** Version bump only for package @webiny/cli-plugin-build | ||
|
||
|
||
|
||
|
||
|
||
# [5.0.0-beta.47](https://github.com/webiny/webiny-js/compare/v5.0.0-beta.46...v5.0.0-beta.47) (2021-01-08) | ||
|
||
**Note:** Version bump only for package @webiny/cli-plugin-build | ||
|
||
|
||
|
||
|
||
|
||
# [5.0.0-beta.46](https://github.com/webiny/webiny-js/compare/v5.0.0-beta.45...v5.0.0-beta.46) (2021-01-08) | ||
|
||
**Note:** Version bump only for package @webiny/cli-plugin-build | ||
|
||
|
||
|
||
|
||
|
||
# [5.0.0-beta.45](https://github.com/webiny/webiny-js/compare/v5.0.0-beta.44...v5.0.0-beta.45) (2021-01-08) | ||
|
||
**Note:** Version bump only for package @webiny/cli-plugin-build | ||
|
||
|
||
|
||
|
||
|
||
# [5.0.0-beta.44](https://github.com/webiny/webiny-js/compare/v5.0.0-beta.43...v5.0.0-beta.44) (2021-01-08) | ||
|
||
**Note:** Version bump only for package @webiny/cli-plugin-build | ||
|
||
|
||
|
||
|
||
|
||
# [5.0.0-beta.36](https://github.com/webiny/webiny-js/compare/v5.0.0-beta.35...v5.0.0-beta.36) (2021-01-08) | ||
|
||
**Note:** Version bump only for package @webiny/cli-plugin-build | ||
|
||
|
||
|
||
|
||
|
||
# [5.0.0-beta.35](https://github.com/webiny/webiny-js/compare/v5.0.0-beta.34...v5.0.0-beta.35) (2021-01-08) | ||
|
||
**Note:** Version bump only for package @webiny/cli-plugin-build | ||
|
||
|
||
|
||
|
||
|
||
# [5.0.0-beta.34](https://github.com/webiny/webiny-js/compare/v5.0.0-beta.33...v5.0.0-beta.34) (2021-01-08) | ||
|
||
**Note:** Version bump only for package @webiny/cli-plugin-build | ||
|
||
|
||
|
||
|
||
|
||
# [5.0.0-beta.33](https://github.com/webiny/webiny-js/compare/v5.0.0-beta.32...v5.0.0-beta.33) (2021-01-08) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* remove any mention of MongoDb ([b3193cb](https://github.com/webiny/webiny-js/commit/b3193cb3016b58d8e6f95f7558af34a6f588b3c8)) | ||
|
||
|
||
|
||
|
||
|
||
# [5.0.0-beta.32](https://github.com/webiny/webiny-js/compare/v5.0.0-beta.31...v5.0.0-beta.32) (2021-01-06) | ||
|
||
**Note:** Version bump only for package @webiny/cli-plugin-build | ||
|
||
|
||
|
||
|
||
|
||
# [5.0.0-beta.31](https://github.com/webiny/webiny-js/compare/v5.0.0-beta.30...v5.0.0-beta.31) (2021-01-06) | ||
|
||
**Note:** Version bump only for package @webiny/cli-plugin-build | ||
|
||
|
||
|
||
|
||
|
||
# [5.0.0-beta.30](https://github.com/webiny/webiny-js/compare/v5.0.0-beta.29...v5.0.0-beta.30) (2021-01-06) | ||
|
||
**Note:** Version bump only for package @webiny/cli-plugin-build | ||
|
||
|
||
|
||
|
||
|
||
# [5.0.0-beta.29](https://github.com/webiny/webiny-js/compare/v5.0.0-beta.28...v5.0.0-beta.29) (2021-01-06) | ||
|
||
**Note:** Version bump only for package @webiny/cli-plugin-build | ||
|
||
|
||
|
||
|
||
|
||
# [5.0.0-beta.28](https://github.com/webiny/webiny-js/compare/v5.0.0-beta.27...v5.0.0-beta.28) (2021-01-06) | ||
|
||
**Note:** Version bump only for package @webiny/cli-plugin-build | ||
|
||
|
||
|
||
|
||
|
||
# [5.0.0-beta.27](https://github.com/webiny/webiny-js/compare/v5.0.0-beta.26...v5.0.0-beta.27) (2021-01-06) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* remove loading of env variables ([5b6b3db](https://github.com/webiny/webiny-js/commit/5b6b3dbc47cc2134fe03b5bf7fb1b0d4dc99aa5d)) | ||
|
||
|
||
|
||
|
||
|
||
# [5.0.0-beta.26](https://github.com/webiny/webiny-js/compare/v5.0.0-beta.25...v5.0.0-beta.26) (2021-01-06) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* use loadEnvVariables ([10ed828](https://github.com/webiny/webiny-js/commit/10ed8282110f2b7226adb92bceb4a8acd0896cee)) | ||
|
||
|
||
|
||
|
||
|
||
# [5.0.0-beta.10](https://github.com/webiny/webiny-js/compare/v4.14.0...v5.0.0-beta.10) (2021-01-04) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* enable executing the command via plugin's `execute` property ([0000e8a](https://github.com/webiny/webiny-js/commit/0000e8afcb6f9d7af7d96effd90c050e28021b73)) | ||
* remove progress bars and print commands output ([bedb072](https://github.com/webiny/webiny-js/commit/bedb072a80ee3e88ec416844b5f52826efbfb222)) | ||
* rename `folder` to `path` ([43e7de0](https://github.com/webiny/webiny-js/commit/43e7de013ea2a161c5b670c9773995413a556477)) | ||
|
||
|
||
### Features | ||
|
||
* add Elastic domain setup ([2205343](https://github.com/webiny/webiny-js/commit/220534345830ce216bc82667f2d3d6390df8d9e8)) | ||
* introduce `cli-plugin-build` CLI plugin ([225040c](https://github.com/webiny/webiny-js/commit/225040c39f3b19f267bc99c33915f8023d3dbb46)) | ||
|
||
|
||
|
||
|
||
|
||
# [5.0.0-beta.1](https://github.com/webiny/webiny-js/compare/v5.0.0-beta.0...v5.0.0-beta.1) (2021-01-03) | ||
|
||
**Note:** Version bump only for package @webiny/cli-plugin-build | ||
|
||
|
||
|
||
|
||
|
||
# [5.0.0-beta.0](https://github.com/webiny/webiny-js/compare/v4.14.0...v5.0.0-beta.0) (2021-01-03) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* enable executing the command via plugin's `execute` property ([0000e8a](https://github.com/webiny/webiny-js/commit/0000e8afcb6f9d7af7d96effd90c050e28021b73)) | ||
* remove progress bars and print commands output ([bedb072](https://github.com/webiny/webiny-js/commit/bedb072a80ee3e88ec416844b5f52826efbfb222)) | ||
* rename `folder` to `path` ([43e7de0](https://github.com/webiny/webiny-js/commit/43e7de013ea2a161c5b670c9773995413a556477)) | ||
|
||
|
||
### Features | ||
|
||
* add Elastic domain setup ([2205343](https://github.com/webiny/webiny-js/commit/220534345830ce216bc82667f2d3d6390df8d9e8)) | ||
* introduce `cli-plugin-build` CLI plugin ([225040c](https://github.com/webiny/webiny-js/commit/225040c39f3b19f267bc99c33915f8023d3dbb46)) | ||
|
||
|
||
|
||
|
||
|
||
## [5.0.1-beta.1](https://github.com/webiny/webiny-js/compare/v5.0.1-beta.0...v5.0.1-beta.1) (2021-01-03) | ||
|
||
**Note:** Version bump only for package @webiny/cli-plugin-build | ||
|
||
|
||
|
||
|
||
|
||
## [5.0.1-beta.0](https://github.com/webiny/webiny-js/compare/v5.0.0...v5.0.1-beta.0) (2021-01-03) | ||
|
||
**Note:** Version bump only for package @webiny/cli-plugin-build | ||
|
||
|
||
|
||
|
||
|
||
# [5.0.0](https://github.com/webiny/webiny-js/compare/v4.14.0...v5.0.0) (2021-01-03) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* enable executing the command via plugin's `execute` property ([0000e8a](https://github.com/webiny/webiny-js/commit/0000e8afcb6f9d7af7d96effd90c050e28021b73)) | ||
* remove progress bars and print commands output ([bedb072](https://github.com/webiny/webiny-js/commit/bedb072a80ee3e88ec416844b5f52826efbfb222)) | ||
* rename `folder` to `path` ([43e7de0](https://github.com/webiny/webiny-js/commit/43e7de013ea2a161c5b670c9773995413a556477)) | ||
|
||
|
||
### Features | ||
|
||
* add Elastic domain setup ([2205343](https://github.com/webiny/webiny-js/commit/220534345830ce216bc82667f2d3d6390df8d9e8)) | ||
* introduce `cli-plugin-build` CLI plugin ([225040c](https://github.com/webiny/webiny-js/commit/225040c39f3b19f267bc99c33915f8023d3dbb46)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) Webiny | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# @webiny/cli-plugin-build | ||
[![](https://img.shields.io/npm/dw/@webiny/cli-plugin-build.svg)](https://www.npmjs.com/package/@webiny/cli-plugin-build) | ||
[![](https://img.shields.io/npm/v/@webiny/cli-plugin-build.svg)](https://www.npmjs.com/package/@webiny/cli-plugin-build) | ||
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) | ||
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) | ||
|
||
A set of @webiny/cli plugins to deploy Webiny project using serverless components. | ||
|
||
## Install | ||
``` | ||
yarn add @webiny/cli-plugin-build | ||
``` | ||
|
||
Add plugin to your project by editing `webiny.root.js`: | ||
|
||
```js | ||
module.exports = { | ||
projectName: "my-project", | ||
cli: { | ||
plugins: ["@webiny/cli-plugin-build"] | ||
} | ||
}; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
const { join } = require("path"); | ||
const chalk = require("chalk"); | ||
const { allPackages } = require("@webiny/project-utils/packages"); | ||
|
||
const outputJSON = obj => { | ||
console.log(JSON.stringify(obj, null, 2)); | ||
}; | ||
|
||
module.exports = async ({ json, withPath }) => { | ||
const packages = allPackages().reduce((acc, folder) => { | ||
const json = require(join(folder, "package.json")); | ||
acc[json.name] = folder; | ||
return acc; | ||
}, {}); | ||
|
||
if (json) { | ||
// `withPath` outputs a key => value object, containing workspace name and absolute path | ||
if (withPath) { | ||
outputJSON(packages); | ||
} else { | ||
outputJSON(Object.keys(packages)); | ||
} | ||
return; | ||
} | ||
|
||
Object.keys(packages).forEach(name => { | ||
if (withPath) { | ||
console.log(`${chalk.green(name)} (${chalk.blue(packages[name])})`); | ||
} else { | ||
console.log(chalk.green(name)); | ||
} | ||
}); | ||
}; |
Oops, something went wrong.