Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Grunt #933

Merged
merged 12 commits into from Mar 22, 2019
Merged

Remove Grunt #933

merged 12 commits into from Mar 22, 2019

Conversation

Gerrit0
Copy link
Collaborator

@Gerrit0 Gerrit0 commented Dec 31, 2018

With these changes, Grunt is no longer required.

Additions:

  • npm run test:ts - Run tests with ts-node to avoid a pre-compile step.
  • scripts/*.js - Scripts to replace grunt tasks.

Changes:

  • Exclude all consumed test files from the compilation.
  • npm run build no longer also runs tests, use npm run build_and_test to also run tests.

Removals:

  • A bunch of grunt dependencies
  • Moderate vulnerability warning on install caused by a grunt dependency

Closes #836

"test": "grunt test",
"build": "grunt build_and_test",
"pretest": "node scripts/copy_test_files.js",
"test": "nyc --reporter=html --reporter=text-summary mocha --timeout=10000 dist/test/*.test.js",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice coverage reporting!

package.json Outdated
"clean": "rm -rf node_modules package-lock.json lib coverage .tscache"
"prepublishOnly": "npm run lint && npm run build_and_test",
"prepare": "npm run build",
"mocha": "mocha",
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm dropping this since you can run npx mocha

@aciccarello aciccarello merged commit eac71b0 into master Mar 22, 2019
@aciccarello aciccarello deleted the remove-grunt branch March 22, 2019 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants