Skip to content

Commit b82e207

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

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

cycle-scripts-ts-browserify/README.md

Lines changed: 1 addition & 1 deletion
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:

cycle-scripts-ts-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-ts-browserify/scripts/take-off-training-wheels.js renamed to cycle-scripts-ts-browserify/scripts/eject.js

File renamed without changes.

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