Skip to content

Commit 6b995c7

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

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

cycle-scripts-es-browserify/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Browserify configured with
1717
- `npm start`: Start development server listening on port 8000
1818
- `npm test`: Run the default test tool
1919
- `npm run build`: Generate a production-ready build content, on the `build` folder (this folder is *gitignored*)
20-
- `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.
20+
- `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.
2121

2222

2323
## Boilerplate:
@@ -36,4 +36,3 @@ my-awesome-cycle-app/
3636
│ └── index.js
3737
└── package.json
3838
```
39-

cycle-scripts-es-browserify/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),

cycle-scripts-es-browserify/scripts/take-off-training-wheels.js renamed to cycle-scripts-es-browserify/scripts/eject.js

File renamed without changes.

cycle-scripts-es-browserify/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)