Skip to content

Commit

Permalink
Merge pull request #21 from owenvoke/feature/grunt-replacement
Browse files Browse the repository at this point in the history
feat: replace Grunt with npm scripts
  • Loading branch information
owenvoke committed Dec 22, 2020
2 parents 5458c31 + c487421 commit 51fad95
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 73 deletions.
60 changes: 0 additions & 60 deletions Gruntfile.coffee

This file was deleted.

11 changes: 11 additions & 0 deletions jasmine.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"spec_dir": "specs",
"spec_files": [
"**/*.spec.js"
],
"helpers": [
"tldr-lint-helper.js"
],
"stopSpecOnExpectationFailure": false,
"random": false
}
21 changes: 10 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
"description": "A linting tool to validate tldr pages",
"repository": "tldr-pages/tldr-lint",
"scripts": {
"jison": "grunt exec:jison",
"test": "grunt test"
"jison": "jison tldr.yy tldr.l -o lib/tldr-parser.js",
"test": "jasmine --config=jasmine.json --reporter=jasmine-console-reporter",
"watch": "concurrently 'npm run watch:jison' 'npm run watch:specs'",
"watch:jison": "onchange '*.l' '*.yy' -- npm run jison",
"watch:specs": "onchange 'specs/*.js' 'lib/*.js' '*.l' '*.yy' -- npm run test"
},
"bin": {
"tldr-lint": "lib/tldr-lint-cli.js",
Expand All @@ -27,15 +30,11 @@
"commander": "^6.1.0"
},
"devDependencies": {
"grunt": "^0.4.5",
"grunt-cli": "^0.1.13",
"grunt-contrib-clean": "^0.7.0",
"grunt-contrib-watch": "^0.6.1",
"grunt-exec": "^0.4.6",
"grunt-jasmine-nodejs": "^1.6.1",
"jasmine-core": "^3.6.0",
"jasmine-node": "^3.0.0",
"jison": "^0.4.18"
"concurrently": "^5.3.0",
"jasmine-console-reporter": "^3.1.0",
"jasmine": "^3.6.0",
"jison": "^0.4.18",
"onchange": "^7.1.0"
},
"files": [
"lib/",
Expand Down
2 changes: 0 additions & 2 deletions specs/tldr-lint.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,5 +153,3 @@ describe("TLDR pages that are simply correct", function() {
expect(errors.length).toBe(0);
});
});


0 comments on commit 51fad95

Please sign in to comment.