Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions src/tasks/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const packages = [
'cross-env',
'nodemon',
'nsp',
'standard-version',

// Jest
'jest',
Expand All @@ -32,20 +33,21 @@ module.exports = () => {
node: '>=4.3.0 <5.0.0 || >=5.10',
},
scripts: {
prepublish: 'yarn run build',
prebuild: 'yarn run clean:dist',
start: 'yarn run serve:dev src',
build: "cross-env NODE_ENV=production babel -s true src -d dist --ignore 'src/**/*.test.js'",
'clean:dist': 'del-cli dist',
start: 'yarn run serve:dev src',
'serve:dev': 'nodemon $2 --exec babel-node',
lint: 'eslint --cache src test',
'lint-staged': 'lint-staged',
prebuild: 'yarn run clean:dist',
prepublish: 'yarn run build',
release: 'yarn run standard-version',
security: 'nsp check',
'serve:dev': 'nodemon $2 --exec babel-node',
test: 'jest',
'test:coverage': "jest --collectCoverageFrom='src/**/*.js' --coverage",
'travis:test': 'yarn run test',
'travis:coverage': 'yarn run test:coverage',
'travis:lint': 'yarn run lint && yarn run nsp',
'lint-staged': 'lint-staged',
'travis:test': 'yarn run test',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a random thing, but shouldn't the initial test pass on Travis capture coverage info too?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We test on 3 versions of node, we only want to collect coverage once per commit hash which is why those two tasks are split.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, cool. 👍

},
main: 'dist/index.js',
files: [
Expand Down