Skip to content

Commit

Permalink
Merge bed39ca into ca9a50d
Browse files Browse the repository at this point in the history
  • Loading branch information
dhuang612 committed Nov 7, 2019
2 parents ca9a50d + bed39ca commit 301be70
Show file tree
Hide file tree
Showing 23 changed files with 12,518 additions and 8,553 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ branches:
jobs:
include:
- stage: test
node_js: 6
node_js: 8
script:
- npm run test
- npm run coverage
Expand Down
10 changes: 5 additions & 5 deletions bin/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ if (isInstallIntoApp) {

packageJson.scripts = packageJson.scripts || {}

if (packageJson.scripts[ 'start' ]) {
if (!(packageJson.scripts[ 'start' ].startsWith('hoodie'))) {
log.info('setup', 'start script already set to "' + packageJson.scripts[ 'start' ] +
if (packageJson.scripts.start) {
if (!(packageJson.scripts.start.startsWith('hoodie'))) {
log.info('setup', 'start script already set to "' + packageJson.scripts.start +
', you can start hoodie with "npm run start-hoodie" instead')
packageJson.scripts[ 'start-hoodie' ] = 'hoodie'
packageJson.scripts['start-hoodie'] = 'hoodie'
}
} else {
packageJson.scripts[ 'start' ] = 'hoodie'
packageJson.scripts.start = 'hoodie'
}

var newPackageJson = JSON.stringify(packageJson, null, 2)
Expand Down
14 changes: 7 additions & 7 deletions cli/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ var log = require('npmlog')
var headingPrefix = process.platform === 'darwin' ? emoji.get('dog') + ' ' : ''

log.style = {
silly: {inverse: true, bold: true},
verbose: {fg: 'brightBlue', bold: true},
info: {fg: 'brightGreen', bold: true},
http: {fg: 'brightGreen', bold: true},
warn: {fg: 'brightYellow', bold: true},
error: {fg: 'brightRed', bold: true},
silly: { inverse: true, bold: true },
verbose: { fg: 'brightBlue', bold: true },
info: { fg: 'brightGreen', bold: true },
http: { fg: 'brightGreen', bold: true },
warn: { fg: 'brightYellow', bold: true },
error: { fg: 'brightRed', bold: true },
silent: undefined
}
log.prefixStyle = {fg: 'magenta'}
log.prefixStyle = { fg: 'magenta' }
log.headingStyle = {}
log.disp = {
silly: 'Sill',
Expand Down

0 comments on commit 301be70

Please sign in to comment.