Skip to content

Commit 9b934c5

Browse files
authored
refactor(deps): migrate babel to textlint-scripts (#67)
Update devDeps
1 parent 09e6a62 commit 9b934c5

File tree

6 files changed

+1945
-1494
lines changed

6 files changed

+1945
-1494
lines changed

.babelrc

Lines changed: 0 additions & 5 deletions
This file was deleted.

package.json

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,12 @@
2323
"test": "test"
2424
},
2525
"scripts": {
26-
"build": "babel src --out-dir lib --source-maps",
27-
"watch": "babel src --out-dir lib --watch --source-maps",
26+
"build": "textlint-scripts build",
27+
"watch": "textlint-scripts build --watch",
2828
"prepublish": "npm run --if-present build",
2929
"pretest": "node tool/create-fixtures.js",
30-
"test": "mocha && npm run test:textlint",
31-
"test:textlint": "(cd example && npm i && npm test)",
32-
"precommit": "lint-staged",
33-
"postcommit": "git reset",
30+
"test": "textlint-scripts test && npm run test:textlint",
31+
"test:textlint": "(cd example && npm i --no-save && npm test)",
3432
"prettier": "prettier --write '**/*.{js,jsx,ts,tsx,css}'"
3533
},
3634
"keywords": [
@@ -40,17 +38,11 @@
4038
"translation"
4139
],
4240
"devDependencies": {
43-
"babel-cli": "^6.26.0",
44-
"babel-preset-env": "^1.6.0",
45-
"babel-preset-es2015": "^6.24.1",
46-
"babel-register": "^6.26.0",
4741
"glob": "^7.1.2",
48-
"husky": "^0.14.3",
49-
"lint-staged": "^4.2.3",
50-
"mocha": "^3.5.3",
42+
"husky": "^1.3.1",
43+
"lint-staged": "^8.1.1",
5144
"prettier": "^1.7.0",
52-
"textlint": "^8.2.1",
53-
"textlint-tester": "^2.2.4"
45+
"textlint-scripts": "^2.1.0"
5446
},
5547
"dependencies": {
5648
"analyze-desumasu-dearu": "^2.1.2",
@@ -75,5 +67,11 @@
7567
"prettier --write",
7668
"git add"
7769
]
70+
},
71+
"husky": {
72+
"hooks": {
73+
"post-commit": "git reset",
74+
"pre-commit": "lint-staged"
75+
}
7876
}
7977
}

test/fixtures/input.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

1818
これは10個あるうちの0,1分
1919

20-
ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚
21-
2220
オヤツは300円まで
2321

2422
200円はダメ
@@ -43,6 +41,8 @@
4341

4442
1部の文章
4543

44+
これは花の1種です
45+
4646
朝1番に
4747

4848
数100倍

test/fixtures/output.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

1818
これは10個あるうちの0.1分
1919

20-
ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゛゜
21-
2220
オヤツは300円まで
2321

2422
200円はダメ
@@ -43,6 +41,8 @@
4341

4442
一部の文章
4543

44+
これは花の一種です
45+
4646
朝一番に
4747

4848
数百倍

test/mocha.opts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
--compilers js:babel-register
1+
--require textlint-scripts/register

0 commit comments

Comments
 (0)