Skip to content

Commit c0f959c

Browse files
Nick Balestrageovanisouza92
authored andcommitted
refactor(cycle-scripts-es-webpack): take-off-training-wheels renamed to eject
ISSUES CLOSED: #38
1 parent 6e59c51 commit c0f959c

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

cycle-scripts-es-webpack/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Webpack configured with
1919
- `npm start`: Start development server listening on port 8000
2020
- `npm test`: Run the default test tool
2121
- `npm run build`: Generate a production-ready build content, on the `build` folder (this folder is *gitignored*)
22-
- `npm run take-off-training-wheels`: Copy flavor's dependencies and configurations to the project folder, update `package.json` and remove the dependency on the flavored `cycle-scripts`. This is irreversible.
22+
- `npm run eject`: Copy flavor's dependencies and configurations to the project folder, update `package.json` and remove the dependency on the flavored `cycle-scripts`. This is irreversible.
2323

2424

2525
## Boilerplate:
@@ -40,5 +40,4 @@ my-awesome-cycle-app/
4040
```
4141

4242
### Config files
43-
* .babelrc (Added on the root after running the take-off-training-wheels script)
44-
43+
* .babelrc (Added on the root after running the eject script)

cycle-scripts-es-webpack/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ switch (script) {
1010
case 'start':
1111
case 'test':
1212
case 'build':
13-
case 'take-off-training-wheels':
13+
case 'eject':
1414
var result = spawn.sync(
1515
'node',
1616
[require.resolve('./scripts/' + script)].concat(args),
File renamed without changes.

cycle-scripts-es-webpack/scripts/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ function successMsg (appName, appPath) {
115115
console.log(chalk.cyan(' npm run build'))
116116
console.log(' Bundles the app into static files for production')
117117
console.log()
118-
console.log(chalk.cyan(' npm run take-off-training-wheels'))
118+
console.log(chalk.cyan(' npm run eject'))
119119
console.log(' Removes this tool and copies build dependencies, configuration files')
120120
console.log(' and scripts into the app directory. If you do this, you can\'t go back!')
121121
console.log()
@@ -144,7 +144,7 @@ module.exports = function (appPath, appName, streamLib, verbose, originalDirecto
144144
'start': 'cycle-scripts start',
145145
'test': 'cycle-scripts test',
146146
'build': 'cycle-scripts build',
147-
'take-off-training-wheels': 'cycle-scripts take-off-training-wheels'
147+
'eject': 'cycle-scripts eject'
148148
}
149149
appPackage.babel = {
150150
'presets': ['es2015']

0 commit comments

Comments
 (0)