Skip to content

refactor(deps): use textlint-scripts #13

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

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
sudo: false
cache:
yarn: true
language: node_js
node_js: stable
node_js: stable
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.13.0
- export PATH=$HOME/.yarn/bin:$PATH
install:
- yarn install
- yarn bootstrap
8 changes: 6 additions & 2 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"lerna": "2.0.0-beta.24",
"version": "2.0.1"
"version": "2.0.1",
"packages": [
"packages/*"
],
"npmClient": "yarn",
"useWorkspaces": true
}
33 changes: 21 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
{
"devDependencies": {
"babel-preset-es2015": "^6.9.0",
"babel-register": "^6.9.0",
"lerna": "2.0.0-beta.24",
"mocha": "^3.1.0"
"name": "textlint-rule-spacing",
"private": true,
"keywords": [
"textlintrule"
],
"workspaces": {
"packages": [
"packages/*"
]
},
"scripts": {
"bootstrap": "lerna bootstrap",
"postinstall": "npm run bootstrap",
"publish": "lerna publish",
"test": "mocha 'packages/*/test/*-test.js'"
"postinstall": "yarn run bootstrap && yarn run build",
"build": "lerna run build",
"test": "lerna run test",
"versionup": "lerna version --conventional-commits --changelog-preset=angular-all",
"versionup:patch": "lerna version patch --conventional-commits --changelog-preset=angular-all",
"versionup:minor": "lerna version minor --conventional-commits --changelog-preset=angular-all",
"versionup:major": "lerna version major --conventional-commits --changelog-preset=angular-all",
"release": "lerna publish from-package"
},
"keywords": [
"textlintrule"
]
}
"devDependencies": {
"lerna": "^3.13.1"
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,17 @@
"url": "https://github.com/textlint-ja/textlint-rule-spacing/issues"
},
"scripts": {
"build": "NODE_ENV=production babel src --out-dir lib --source-maps",
"watch": "babel src --out-dir lib --watch --source-maps",
"build": "textlint-scripts build",
"watch": "textlint-scripts build --watch",
"prepublish": "npm run --if-present build",
"test": "mocha"
"test": "textlint-scripts test"
},
"keywords": [
"textlint",
"textlintrule"
],
"devDependencies": {
"babel-cli": "^6.0.0",
"babel-preset-es2015": "^6.0.0",
"textlint-tester": "^2.0.0",
"mocha": "^2.3.3"
"textlint-scripts": "^2.1.0"
},
"dependencies": {
"match-index": "^1.0.1",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,17 @@
"url": "https://github.com/extlint-ja/textlint-rule-spacing/issues"
},
"scripts": {
"build": "NODE_ENV=production babel src --out-dir lib --source-maps",
"watch": "babel src --out-dir lib --watch --source-maps",
"build": "textlint-scripts build",
"watch": "textlint-scripts build --watch",
"prepublish": "npm run --if-present build",
"test": "mocha"
"test": "textlint-scripts test"
},
"keywords": [
"textlint",
"textlintrule"
],
"devDependencies": {
"babel-cli": "^6.0.0",
"babel-preset-es2015": "^6.0.0",
"textlint-tester": "^2.0.0",
"mocha": "^2.3.3"
"textlint-scripts": "^2.1.0"
},
"dependencies": {
"match-index": "^1.0.1",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,17 @@
"url": "https://github.com/textlint-ja/textlint-rule-spacing/issues"
},
"scripts": {
"build": "NODE_ENV=production babel src --out-dir lib --source-maps",
"watch": "babel src --out-dir lib --watch --source-maps",
"build": "textlint-scripts build",
"watch": "textlint-scripts build --watch",
"prepublish": "npm run --if-present build",
"test": "mocha"
"test": "textlint-scripts test"
},
"keywords": [
"textlint",
"textlintrule"
],
"devDependencies": {
"babel-cli": "^6.0.0",
"babel-preset-es2015": "^6.0.0",
"textlint-tester": "^2.0.0",
"mocha": "^2.3.3"
"textlint-scripts": "^2.1.0"
},
"dependencies": {
"match-index": "^1.0.1",
Expand Down
5 changes: 0 additions & 5 deletions packages/textlint-rule-ja-space-after-exclamation/.babelrc

This file was deleted.

11 changes: 4 additions & 7 deletions packages/textlint-rule-ja-space-after-exclamation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,17 @@
"url": "https://github.com/extlint-ja/textlint-rule-spacing/issues"
},
"scripts": {
"build": "NODE_ENV=production babel src --out-dir lib --source-maps",
"watch": "babel src --out-dir lib --watch --source-maps",
"build": "textlint-scripts build",
"watch": "textlint-scripts build --watch",
"prepublish": "npm run --if-present build",
"test": "mocha"
"test": "textlint-scripts test"
},
"keywords": [
"textlint",
"textlintrule"
],
"devDependencies": {
"babel-cli": "^6.0.0",
"babel-preset-es2015": "^6.0.0",
"textlint-tester": "^2.0.0",
"mocha": "^2.3.3"
"textlint-scripts": "^2.1.0"
},
"dependencies": {
"match-index": "^1.0.1",
Expand Down
5 changes: 0 additions & 5 deletions packages/textlint-rule-ja-space-after-question/.babelrc

This file was deleted.

11 changes: 4 additions & 7 deletions packages/textlint-rule-ja-space-after-question/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,17 @@
"url": "https://github.com/extlint-ja/textlint-rule-spacing/issues"
},
"scripts": {
"build": "NODE_ENV=production babel src --out-dir lib --source-maps",
"watch": "babel src --out-dir lib --watch --source-maps",
"build": "textlint-scripts build",
"watch": "textlint-scripts build --watch",
"prepublish": "npm run --if-present build",
"test": "mocha"
"test": "textlint-scripts test"
},
"keywords": [
"textlint",
"textlintrule"
],
"devDependencies": {
"babel-cli": "^6.0.0",
"babel-preset-es2015": "^6.0.0",
"textlint-tester": "^2.0.0",
"mocha": "^2.3.3"
"textlint-scripts": "^2.1.0"
},
"dependencies": {
"match-index": "^1.0.1",
Expand Down
5 changes: 0 additions & 5 deletions packages/textlint-rule-ja-space-around-code/.babelrc

This file was deleted.

11 changes: 4 additions & 7 deletions packages/textlint-rule-ja-space-around-code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,17 @@
"url": "https://github.com/textlint-ja/textlint-rule-spacing/issues"
},
"scripts": {
"build": "NODE_ENV=production babel src --out-dir lib --source-maps",
"watch": "babel src --out-dir lib --watch --source-maps",
"build": "textlint-scripts build",
"watch": "textlint-scripts build --watch",
"prepublish": "npm run --if-present build",
"test": "mocha"
"test": "textlint-scripts test"
},
"keywords": [
"textlint",
"textlintrule"
],
"devDependencies": {
"babel-cli": "^6.0.0",
"babel-preset-es2015": "^6.0.0",
"textlint-tester": "^2.0.0",
"mocha": "^2.3.3"
"textlint-scripts": "^2.1.0"
},
"dependencies": {
"match-index": "^1.0.1",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,17 @@
"url": "https://github.com/textlint-ja/textlint-rule-spacing/issues"
},
"scripts": {
"build": "NODE_ENV=production babel src --out-dir lib --source-maps",
"watch": "babel src --out-dir lib --watch --source-maps",
"build": "textlint-scripts build",
"watch": "textlint-scripts build --watch",
"prepublish": "npm run --if-present build",
"test": "mocha"
"test": "textlint-scripts test"
},
"keywords": [
"textlint",
"textlintrule"
],
"devDependencies": {
"babel-cli": "^6.0.0",
"babel-preset-es2015": "^6.0.0",
"textlint-tester": "^2.0.0",
"mocha": "^2.3.3"
"textlint-scripts": "^2.1.0"
},
"dependencies": {
"match-index": "^1.0.1",
Expand Down
5 changes: 0 additions & 5 deletions packages/textlint-rule-preset-ja-spacing/.babelrc

This file was deleted.

15 changes: 4 additions & 11 deletions packages/textlint-rule-preset-ja-spacing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
"name": "textlint-rule-preset-ja-spacing",
"version": "2.0.1",
"description": "textlint-rule-spacingのルールプリセット",
"main": "lib/index.js",
"main": "src/index.js",
"files": [
"src/",
"lib/"
"src/"
],
"repository": {
"type": "git",
Expand All @@ -19,20 +18,14 @@
"url": "https://github.com/textlint-ja/textlint-rule-spacing/issues"
},
"scripts": {
"build": "NODE_ENV=production babel src --out-dir lib --source-maps",
"watch": "babel src --out-dir lib --watch --source-maps",
"prepublish": "npm run --if-present build",
"test": "mocha"
"test": "mocha test/"
},
"keywords": [
"textlint",
"textlintrule"
],
"devDependencies": {
"babel-cli": "^6.0.0",
"babel-preset-es2015": "^6.0.0",
"textlint-tester": "^2.0.0",
"mocha": "^2.3.3"
"mocha": "^6.0.2"
},
"dependencies": {
"textlint-rule-ja-nakaguro-or-halfwidth-space-between-katakana": "^2.0.1",
Expand Down
2 changes: 1 addition & 1 deletion test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--compilers js:babel-register
--require textlint-scripts/register
Loading