Skip to content

Commit

Permalink
fix(generator): add default value to runNPMInstall prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghuabei committed Oct 25, 2016
1 parent 30c7022 commit d436e5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,24 @@ When project is generated you will get project with that structure:

### How to use coveralls service with travis ci?

Active coveralls service for your repository. Then add following code to `.travis.yml`.
Activate coveralls service for your repository on https://coveralls.io. Then add following code to `.travis.yml`.

```
script:
- npm test
- npm run compile
after_success:
- npm run coveralls
```

I tried to run `npm run coveralls` locally, and got `422` error. It might be a bug of coveralls. So if you want light on coverage icon, use coveralls service with travis ci.

If you do not want to use coveralls service, just delete coveralls relevant script and devDependencies in `package.json`.

## License

The MIT License (MIT)

Copyright © 2015 Eugene Obrezkov
Copyright © 2016 YangHuabei

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 2 additions & 1 deletion src/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ const QUESTIONS = [
{
type: 'confirm',
name: 'runNPMInstall',
message: 'Do you want to run npm install after generated?'
message: 'Do you want to run npm install after generated?',
default: true
}
];

Expand Down

0 comments on commit d436e5b

Please sign in to comment.