Skip to content

Commit

Permalink
feat: Optimize build task (#3)
Browse files Browse the repository at this point in the history
* feat: use yarn workspaces

* WIP: remove yarn.lock

* feat: install with yarn workspace

* feat: use eslint in root path

* feat: add local path in package.json

* feat: add eslint-plugin-node

* WIP: wip

* feat: use link local module
  • Loading branch information
leohxj authored Aug 4, 2019
1 parent 443bff7 commit 6515d96
Show file tree
Hide file tree
Showing 10 changed files with 491 additions and 1,286 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
extends: ['@mjolnir/eslint-config/node', 'plugin:prettier/recommended'],
rules: {}
};
File renamed without changes.
File renamed without changes.
6 changes: 2 additions & 4 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"repo": "mjolnirjs/mjolnir",
"cacheDir": ".changelog"
},
"packages": [
"packages/*"
],
"npmClient": "yarn",
"version": "independent"
"version": "independent",
"useWorkspaces": true
}
15 changes: 11 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
{
"name": "root",
"private": true,
"workspaces": [
"packages/*"
],
"devDependencies": {
"@mjolnir/eslint-config": "link:packages/eslint-config",
"eslint": "^5.16.0",
"eslint-config-prettier": "^4.3.0",
"eslint-plugin-node": "^9.1.0",
"eslint-plugin-prettier": "^3.1.0",
"lerna": "^3.15.0",
"lerna-changelog": "^0.8.2"
"lerna-changelog": "^0.8.2",
"prettier": "^1.17.1"
},
"scripts": {
"lerna": "lerna",
"changelog": "lerna-changelog",
"bootstrap": "lerna bootstrap",
"update": "lerna updated",
"publish": "lerna publish",
"lint": "eslint . --ext js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
Expand Down
6 changes: 0 additions & 6 deletions packages/eslint-config/.eslintrc.js

This file was deleted.

8 changes: 0 additions & 8 deletions packages/eslint-config/CHANGELOG.md

This file was deleted.

9 changes: 4 additions & 5 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,18 @@
"bugs": {
"url": "https://github.com/mjolnirjs/mjolnir/issues"
},
"scripts": {
"test": "prettier --version"
},
"keywords": [
"eslint",
"config",
"airbnb",
"javascript"
],
"license": "MIT",

"devDependencies": {
"eslint": "^5.16.0",
"eslint-config-prettier": "^4.3.0",
"eslint-plugin-node": "^9.1.0",
"eslint-plugin-prettier": "^3.1.0",
"prettier": "^1.17.1"
},
"peerDependencies": {
"eslint": "^5.16.0"
Expand Down
Loading

0 comments on commit 6515d96

Please sign in to comment.