Skip to content

Commit fc4022d

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

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

cycle-scripts-ts-webpack/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Webpack 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:
@@ -40,5 +40,5 @@ my-awesome-cycle-app/
4040
```
4141
4242
### Config files
43-
* .babelrc (Added on the root after running the take-off-training-wheels script)
43+
* .babelrc (Added on the root after running the eject script)
4444
* .tsconfig.json

cycle-scripts-ts-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-ts-webpack/scripts/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function successMsg (appName, appPath) {
123123
console.log(chalk.cyan(' npm run build'))
124124
console.log(' Bundles the app into static files for production')
125125
console.log()
126-
console.log(chalk.cyan(' npm run take-off-training-wheels'))
126+
console.log(chalk.cyan(' npm run eject'))
127127
console.log(' Removes this tool and copies build dependencies, configuration files')
128128
console.log(' and scripts into the app directory. If you do this, you can\'t go back!')
129129
console.log()
@@ -152,7 +152,7 @@ module.exports = function (appPath, appName, streamLib, verbose, originalDirecto
152152
'start': 'cycle-scripts start',
153153
'test': 'cycle-scripts test',
154154
'build': 'cycle-scripts build',
155-
'take-off-training-wheels': 'cycle-scripts take-off-training-wheels'
155+
'eject': 'cycle-scripts eject'
156156
}
157157
fs.writeFileSync(
158158
appPackageJson,

0 commit comments

Comments
 (0)