Skip to content

Commit 91c8b4f

Browse files
committed
chore: replace pragmatist
Pragmatist has been deprecated.
1 parent 319df89 commit 91c8b4f

File tree

5 files changed

+28
-14
lines changed

5 files changed

+28
-14
lines changed

.babelrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"plugins": [
3+
"transform-flow-strip-types",
4+
"add-module-exports"
5+
],
6+
"presets": [
7+
"es2015"
8+
]
9+
}

.eslintrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "canonical",
3+
"root": true
4+
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ node_modules
55
.*
66
!.babelrc
77
!.editorconfig
8+
!.eslintrc
89
!.gitignore
910
!.npmignore
1011
!.README

package.json

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,22 @@
2626
"lodash": "^4.5.1"
2727
},
2828
"scripts": {
29-
"pragmatist": "pragmatist --es5",
30-
"lint": "npm run pragmatist lint",
31-
"test": "npm run pragmatist test",
32-
"build": "npm run pragmatist build",
33-
"watch": "npm run pragmatist watch",
34-
"watch-lint": "npm run pragmatist watch-lint",
35-
"watch-test": "npm run pragmatist watch-test",
36-
"watch-build": "npm run pragmatist watch-build",
37-
"readme-add-assertions": "babel-node --presets es2015 ./bin/readme-assertions.js",
38-
"readme": "node ./node_modules/.bin/gitdown ./.README/README.md --output-file ./README.md; npm run readme-add-assertions"
29+
"lint": "eslint ./src ./test",
30+
"test": "mocha --compilers js:babel-register && npm run lint",
31+
"add-assertions": "babel-node --presets es2015 ./bin/readme-assertions",
32+
"generate-readme": "gitdown ./.README/README.md --output-file ./README.md && npm run readme-add-assertions"
3933
},
4034
"devDependencies": {
41-
"babel-cli": "^6.5.1",
35+
"babel-cli": "^6.18.0",
36+
"babel-plugin-add-module-exports": "^0.2.1",
37+
"babel-plugin-transform-flow-strip-types": "^6.18.0",
4238
"babel-preset-es2015": "^6.5.0",
39+
"babel-register": "^6.18.0",
4340
"chai": "^3.5.0",
44-
"eslint": "^2.2.0",
41+
"eslint": "^3.10.2",
42+
"eslint-config-canonical": "^5.5.0",
4543
"gitdown": "^2.4.0",
4644
"globby": "^4.0.0",
47-
"mocha": "^2.4.5",
48-
"pragmatist": "^3.0.13"
45+
"mocha": "^2.5.3"
4946
}
5047
}

test/.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "canonical/mocha"
3+
}

0 commit comments

Comments
 (0)