Skip to content

Commit

Permalink
Merge pull request #26 from passport-next/update-skel
Browse files Browse the repository at this point in the history
Replaced make-node with nyc and coveralls in npm scripts closes #2
  • Loading branch information
rwky committed Jul 13, 2019
2 parents 2ec9263 + 5716e82 commit 04d0043
Show file tree
Hide file tree
Showing 10 changed files with 1,407 additions and 192 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -10,3 +10,6 @@ var/
# Node.js
node_modules
npm-debug.log

# nyc
.nyc_output
3 changes: 1 addition & 2 deletions .npmignore
Expand Up @@ -6,8 +6,7 @@ docs/
examples/
.github/
.gitlab-ci.yml
Makefile
reports/
.nyc_output
templates
test/
.travis.yml
Expand Down
12 changes: 3 additions & 9 deletions .travis.yml
Expand Up @@ -4,15 +4,9 @@ node_js:
- "10"
- "12"

before_install:
- "npm install make-node@0.3.x -g"
- "preinstall-compat"

script:
- "make test-cov"
- "npm run-script lint"
- "npm run coverage"
- "npm run lint"

after_success:
- "make report-cov"

sudo: false
- "npm run coveralls"
13 changes: 7 additions & 6 deletions CONTRIBUTING.md
Expand Up @@ -24,31 +24,32 @@ $ npm test

Ensure that lint passes
```bash
$ npm run-script lint
$ npm run lint
```

Some lint errors can be fixed with

```bash
npm run-script lintfix
npm run lintfix
```

Coverage reports can be generated and viewed by executing:

```bash
npm run-script test-cov
npm run-script view-cov
npm run coverage
```

The output in html form will be in `var/coverage`

Templates such as README.md can be updated via

```bash
npm run-script templates
npm run templates
```

If you are starting a new project run

```bash
npm run-script init-new-project
npm run init-new-project
```
**WARNING** This will overwrite files which are listed in the `ignoreExisting` array of `templates/variables.js`
25 changes: 0 additions & 25 deletions Makefile

This file was deleted.

0 comments on commit 04d0043

Please sign in to comment.