Skip to content

Commit c59c105

Browse files
committed
chore(package name change): to @rapid-build-ui/cli from @rapid-build-ui/utils
BREAKING CHANGE: To migrate the code follow the example below: Before: npm install @rapid-build-ui/utils Now: npm install @rapid-build-ui/cli
1 parent d180c02 commit c59c105

File tree

9 files changed

+100
-100
lines changed

9 files changed

+100
-100
lines changed

CHANGELOG.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,96 @@
1-
## [0.0.12](https://github.com/rapid-build-ui/utils/compare/v0.0.11...v0.0.12) (2019-07-04)
1+
## [0.0.12](https://github.com/rapid-build-ui/cli/compare/v0.0.11...v0.0.12) (2019-07-04)
22

33

44
### Features
55

6-
* **bump task:** add optional extraBumpFile parameter for bumping version(s) in a file ([050145f](https://github.com/rapid-build-ui/utils/commit/050145f))
6+
* **bump task:** add optional extraBumpFile parameter for bumping version(s) in a file ([050145f](https://github.com/rapid-build-ui/cli/commit/050145f))
77

88

99

10-
## [0.0.11](https://github.com/rapid-build-ui/utils/compare/v0.0.10...v0.0.11) (2019-02-23)
10+
## [0.0.11](https://github.com/rapid-build-ui/cli/compare/v0.0.10...v0.0.11) (2019-02-23)
1111

1212

1313
Release only contains dependency bumps to stay up to date.
1414

1515

1616

17-
## [0.0.10](https://github.com/rapid-build-ui/utils/compare/v0.0.9...v0.0.10) (2018-11-13)
17+
## [0.0.10](https://github.com/rapid-build-ui/cli/compare/v0.0.9...v0.0.10) (2018-11-13)
1818

1919

2020
Release only contains dependency bumps for continuous integration.
2121

2222

2323

24-
## [0.0.9](https://github.com/rapid-build-ui/utils/compare/v0.0.8...v0.0.9) (2018-09-06)
24+
## [0.0.9](https://github.com/rapid-build-ui/cli/compare/v0.0.8...v0.0.9) (2018-09-06)
2525

2626

2727
Maintenance only release to fix travis ci from failing.
28-
Fixed by downgrading npm from v6.4.1 to v6.1.0 ([602155e](https://github.com/rapid-build-ui/utils/commit/602155e))
28+
Fixed by downgrading npm from v6.4.1 to v6.1.0 ([602155e](https://github.com/rapid-build-ui/cli/commit/602155e))
2929

3030

3131

32-
## [0.0.8](https://github.com/rapid-build-ui/utils/compare/v0.0.7...v0.0.8) (2018-09-06)
32+
## [0.0.8](https://github.com/rapid-build-ui/cli/compare/v0.0.7...v0.0.8) (2018-09-06)
3333

3434

3535
### Bug Fixes
3636

37-
* **changelogHelp.getEntry():** match for semver version values > 9 ([fa0c5e8](https://github.com/rapid-build-ui/utils/commit/fa0c5e8))
37+
* **changelogHelp.getEntry():** match for semver version values > 9 ([fa0c5e8](https://github.com/rapid-build-ui/cli/commit/fa0c5e8))
3838

3939
Fixes publishGithubRelease() from including to many version entries in the release notes.
4040

4141

4242

43-
## [0.0.7](https://github.com/rapid-build-ui/utils/compare/v0.0.6...v0.0.7) (2018-06-22)
43+
## [0.0.7](https://github.com/rapid-build-ui/cli/compare/v0.0.6...v0.0.7) (2018-06-22)
4444

4545

4646
### Bug Fixes
4747

48-
* **ci showcase release:** via correcting ci.showcase.publishHerokuApp method name ([0b19fcf](https://github.com/rapid-build-ui/utils/commit/0b19fcf))
48+
* **ci showcase release:** via correcting ci.showcase.publishHerokuApp method name ([0b19fcf](https://github.com/rapid-build-ui/cli/commit/0b19fcf))
4949

5050

5151

52-
## [0.0.6](https://github.com/rapid-build-ui/utils/compare/v0.0.5...v0.0.6) (2018-06-12)
52+
## [0.0.6](https://github.com/rapid-build-ui/cli/compare/v0.0.5...v0.0.6) (2018-06-12)
5353

5454

5555
### Features
5656

57-
* **showcase:** bump the showcase version file along with it's package.json(s) ([f0258d9](https://github.com/rapid-build-ui/utils/commit/f0258d9))
57+
* **showcase:** bump the showcase version file along with it's package.json(s) ([f0258d9](https://github.com/rapid-build-ui/cli/commit/f0258d9))
5858

5959

6060

61-
## [0.0.5](https://github.com/rapid-build-ui/utils/compare/v0.0.4...v0.0.5) (2018-06-12)
61+
## [0.0.5](https://github.com/rapid-build-ui/cli/compare/v0.0.4...v0.0.5) (2018-06-12)
6262

6363

6464
### Bug Fixes
6565

66-
* **cloning showcase components:** add .git at the end of the component repo url ([401aba3](https://github.com/rapid-build-ui/utils/commit/401aba3))
66+
* **cloning showcase components:** add .git at the end of the component repo url ([401aba3](https://github.com/rapid-build-ui/cli/commit/401aba3))
6767

6868

6969

70-
## [0.0.4](https://github.com/rapid-build-ui/utils/compare/v0.0.3...v0.0.4) (2018-06-12)
70+
## [0.0.4](https://github.com/rapid-build-ui/cli/compare/v0.0.3...v0.0.4) (2018-06-12)
7171

7272

7373
### Features
7474

75-
* **showcase:** complete the ci.showcase methods and add showcase bump support ([42c4f32](https://github.com/rapid-build-ui/utils/commit/42c4f32))
75+
* **showcase:** complete the ci.showcase methods and add showcase bump support ([42c4f32](https://github.com/rapid-build-ui/cli/commit/42c4f32))
7676

7777

7878

79-
## [0.0.3](https://github.com/rapid-build-ui/utils/compare/v0.0.2...v0.0.3) (2018-06-07)
79+
## [0.0.3](https://github.com/rapid-build-ui/cli/compare/v0.0.2...v0.0.3) (2018-06-07)
8080

8181

8282
### Features
8383

84-
* **ci automation tasks:** complete for all rb components and utils package ([64a31ed](https://github.com/rapid-build-ui/utils/commit/64a31ed))
84+
* **ci automation tasks:** complete for all rb components and utils package ([64a31ed](https://github.com/rapid-build-ui/cli/commit/64a31ed))
8585

8686

8787

88-
## [0.0.2](https://github.com/rapid-build-ui/utils/compare/v0.0.1...v0.0.2) (2018-05-31)
88+
## [0.0.2](https://github.com/rapid-build-ui/cli/compare/v0.0.1...v0.0.2) (2018-05-31)
8989

9090

9191
### Features
9292

93-
* **bump:** create bump task that bumps package.json and creates/updates the changelog ([8074d84](https://github.com/rapid-build-ui/utils/commit/8074d84))
93+
* **bump:** create bump task that bumps package.json and creates/updates the changelog ([8074d84](https://github.com/rapid-build-ui/cli/commit/8074d84))
9494

9595

9696

README.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
# @rapid-build-ui/utils
2-
Set of automation tasks for Rapid Build UI components, utils and showcase.
1+
# @rapid-build-ui/cli
2+
Set of automation tasks for Rapid Build UI cli, components, mixins and showcase.
33

44

55
## Installation
66
Run in project root!
77

88
```bash
9-
$ npm install @rapid-build-ui/utils
9+
$ npm install @rapid-build-ui/cli
1010
```
1111

1212

1313
## How To Use: Option 1
1414
Simple way, place in project's root package.json scripts property.
1515

16-
#### components
16+
#### cli
1717
```json
1818
{
1919
"scripts": {
20-
"build-continuous": "node node_modules/@rapid-build-ui/utils/ci component continuous",
21-
"build-release": "node node_modules/@rapid-build-ui/utils/ci component release",
22-
"bump": "node node_modules/@rapid-build-ui/utils/bump component patch"
20+
"build-continuous": "node node_modules/@rapid-build-ui/cli/ci cli continuous",
21+
"build-release": "node node_modules/@rapid-build-ui/cli/ci cli release",
22+
"bump": "node node_modules/@rapid-build-ui/cli/bump cli patch"
2323
}
2424
}
2525
```
2626

27-
#### utils
27+
#### components
2828
```json
2929
{
3030
"scripts": {
31-
"build-continuous": "node node_modules/@rapid-build-ui/utils/ci utils continuous",
32-
"build-release": "node node_modules/@rapid-build-ui/utils/ci utils release",
33-
"bump": "node node_modules/@rapid-build-ui/utils/bump utils patch"
31+
"build-continuous": "node node_modules/@rapid-build-ui/cli/ci component continuous",
32+
"build-release": "node node_modules/@rapid-build-ui/cli/ci component release",
33+
"bump": "node node_modules/@rapid-build-ui/cli/bump component patch"
3434
}
3535
}
3636
```
@@ -39,9 +39,9 @@ Simple way, place in project's root package.json scripts property.
3939
```json
4040
{
4141
"scripts": {
42-
"build-continuous": "node node_modules/@rapid-build-ui/utils/ci showcase continuous",
43-
"build-release": "node node_modules/@rapid-build-ui/utils/ci showcase release",
44-
"bump": "node node_modules/@rapid-build-ui/utils/bump showcase patch"
42+
"build-continuous": "node node_modules/@rapid-build-ui/cli/ci showcase continuous",
43+
"build-release": "node node_modules/@rapid-build-ui/cli/ci showcase release",
44+
"bump": "node node_modules/@rapid-build-ui/cli/bump showcase patch"
4545
}
4646
}
4747
```
@@ -51,46 +51,46 @@ Simple way, place in project's root package.json scripts property.
5151
Use the API. The [process.cwd()](https://goo.gl/QS1WtL) must be the project's root path!
5252

5353
```js
54-
const utils = require('@rapid-build-ui/utils');
54+
const cli = require('@rapid-build-ui/cli');
5555
// See API Documentation
5656
```
5757

5858

5959
## API
6060
All return a promise.
6161

62-
* #### utils.bump.run(type, semver, extraBumpFile = null)
62+
* #### cli.bump.run(type, semver, extraBumpFile = null)
6363
* params
64-
* type (string): utils | component
64+
* type (string): cli | component
6565
* semver (string): 1.0.0 | patch | [reference](https://docs.npmjs.com/cli/version)
6666
* extraBumpFile (string, optional): file path relative to project root
6767
* overview
6868
* bump version in all package.json(s)
6969
* bump extra file (optional)
7070
* update changelog
7171

72-
* #### utils.ci.component.continuous(config)
72+
* #### cli.ci.component.continuous(config)
7373
* build component
7474
* copy root files to: dist/client/ (ex: LICENSE)
7575
* trigger showcase ci build
7676

77-
* #### utils.ci.component.release(config)
77+
* #### cli.ci.component.release(config)
7878
* build component
7979
* copy root files to: dist/client/
8080
* copy npm config to dist/client/
8181
* publish npm package from dist/client/
8282
* publish github release from master
8383

84-
* #### utils.ci.utils.continuous(config)
84+
* #### cli.ci.cli.continuous(config)
8585
* copy root files to: dist/server/ (ex: LICENSE)
8686

87-
* #### utils.ci.utils.release(config)
87+
* #### cli.ci.cli.release(config)
8888
* copy root files to: dist/server/
8989
* copy npm config to dist/server/
9090
* publish npm package from dist/server/
9191
* publish github release from master
9292

93-
* #### utils.ci.showcase.continuous(config)
93+
* #### cli.ci.showcase.continuous(config)
9494
* create directory for cloned components (.rb-components)
9595
* clone component repos (into .rb-components)
9696
* setup components
@@ -99,15 +99,15 @@ All return a promise.
9999
* create heroku dist/package.json
100100
* publish heroku app rapid-build-ui-io-dev
101101

102-
* #### utils.ci.showcase.release(config)
102+
* #### cli.ci.showcase.release(config)
103103
* install client
104104
* install server
105105
* build showcase
106106
* create heroku dist/package.json
107107
* publish heroku app rapid-build-ui-io-staging
108108
* publish github release from master
109109

110-
* #### utils.ci methods
110+
* #### cli.ci methods
111111
```coffeescript
112112
# config example
113113
repo:
@@ -117,7 +117,7 @@ repo:
117117
tokens:
118118
github: 'token' # all projects
119119
heroku: 'token' # showcase
120-
npm: 'token' # components and utils
120+
npm: 'token' # components and cli
121121
travis: 'token' # components
122122
paths:
123123
abs: # absolute os paths

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"name": "utils-project",
2+
"name": "cli-project",
33
"version": "0.0.12",
44
"scripts": {
5-
"build-continuous": "node dist/server/ci utils continuous",
6-
"build-release": "node dist/server/ci utils release",
7-
"bump": "node dist/server/bump utils patch",
5+
"build-continuous": "node dist/server/ci cli continuous",
6+
"build-release": "node dist/server/ci cli release",
7+
"bump": "node dist/server/bump cli patch",
88
"install-server": "cd src/server/ && npm install",
99
"link": "cd dist/server/ && npm link",
1010
"unlink": "cd dist/server/ && npm unlink",

src/server/ci/api.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@
44
const ci = require('./steps');
55

66
const CI = { // :Promise<any> (all return)
7+
cli: {
8+
async continuous(config) {
9+
await ci.common.copyRootFilesToDist(config, 'server');
10+
},
11+
async release(config) {
12+
await ci.common.copyRootFilesToDist(config, 'server');
13+
await ci.common.copyNpmConfigToDist(config, 'server');
14+
await ci.common.publishNpmPkg(config, 'server');
15+
await ci.common.publishGithubRelease(config);
16+
}
17+
},
718
component: {
819
async continuous(config) {
920
await ci.common.buildDist(config);
@@ -18,17 +29,6 @@ const CI = { // :Promise<any> (all return)
1829
await ci.common.publishGithubRelease(config);
1930
}
2031
},
21-
utils: {
22-
async continuous(config) {
23-
await ci.common.copyRootFilesToDist(config, 'server');
24-
},
25-
async release(config) {
26-
await ci.common.copyRootFilesToDist(config, 'server');
27-
await ci.common.copyNpmConfigToDist(config, 'server');
28-
await ci.common.publishNpmPkg(config, 'server');
29-
await ci.common.publishGithubRelease(config);
30-
}
31-
},
3232
showcase: {
3333
async continuous(config) {
3434
await ci.showcase.createDirForClonedComponents(config);

src/server/ci/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const getConfig = () => { // :{}
2222
tokens: { // travis web gui -> settings
2323
github: env.GITHUB_TOKEN, // all
2424
heroku: env.HEROKU_TOKEN, // showcase
25-
npm: env.NPM_TOKEN, // components and utils
25+
npm: env.NPM_TOKEN, // components and cli
2626
travis: env.TRAVIS_TOKEN // components
2727
},
2828
paths: {

src/server/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
/***************************
2-
* RAPID BUILD UI UTILITIES
3-
***************************/
1+
/*********************
2+
* RAPID BUILD UI CLI
3+
*********************/
44
require('./common/bootstrap/colors');
55

6-
/* Utils
7-
********/
8-
const Utils = {
6+
/* CLI
7+
******/
8+
const CLI = {
99
bump: require('./bump/api'),
1010
ci: require('./ci/api')
1111
};
1212

1313
/* Export It!
1414
*************/
15-
module.exports = Utils;
15+
module.exports = CLI;

0 commit comments

Comments
 (0)