Closed smashwilson closed 6 years ago
thank you @smashwilson !!!
can we set it up so that it run npm run lint
in addition to the unit tests?
can we set it up so that it run npm run lint in addition to the unit tests?
On it 👍 I can do that in one of two ways:
npm run lint
step to the Travis build; orpackage.json
to run the linter every time npm test
is run, so Travis will pick it up as part of the default build.The advantage of (2) is that you'd lint when you run npm test
locally, too (and you could still run a non-linting test with something like npm run mocha
).
Which would you prefer?
@smashwilson I think #2 sounds better. thank you!
Looks like npm ci
wasn't added until after npm 5.5.1. (npm ci
uses package-lock.json
as a source of truth instead of package.json
, so it is (a) more consistent and (b) super fast). Not a big deal, we can add it in later as things get upgraded.
🚢 it!
Let's get Travis up and running, and try out their new checks API integration while we're at it :sparkles: