Skip to content

Commit

Permalink
Replaced make-node with nyc and coveralls in npm scripts closes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
rwky committed Jul 13, 2019
1 parent 2ec9263 commit 5716e82
Show file tree
Hide file tree
Showing 10 changed files with 1,407 additions and 192 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ var/
# Node.js
node_modules
npm-debug.log

# nyc
.nyc_output
3 changes: 1 addition & 2 deletions .npmignore
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,9 @@ node_js:
- "10"
- "12"

before_install:
- "npm install [email protected] -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
Original file line number Diff line number Diff line change
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.

Loading

0 comments on commit 5716e82

Please sign in to comment.