Skip to content

Commit

Permalink
fix: add nx for parallel build
Browse files Browse the repository at this point in the history
  • Loading branch information
JiLiZART committed Nov 19, 2022
1 parent cac47c6 commit 683062d
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 89 deletions.
3 changes: 2 additions & 1 deletion lerna.json
Expand Up @@ -25,5 +25,6 @@
"version": {
"message": "chore(release): publish %s"
}
}
},
"useNx": true
}
12 changes: 12 additions & 0 deletions nx.json
@@ -0,0 +1,12 @@
{
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": ["build"]
}
}
},
"targetDefaults": {},
"defaultBase": "master"
}
126 changes: 45 additions & 81 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 8 additions & 7 deletions package.json
Expand Up @@ -8,12 +8,12 @@
"publish-all": "npm run build && lerna publish --include-merged-tags --conventional-commits --create-release github --skip-npm",
"publish-patch": "npm run build && lerna version patch --include-merged-tags --conventional-commits --no-git-tag-version --no-private",
"publish-minor": "npm run build && lerna version minor --include-merged-tags --conventional-commits --no-git-tag-version --no-private",
"size": "lerna run --parallel size",
"bundlesize": "lerna run --parallel bundlesize",
"test": "npm run build && lerna run --parallel link && lerna run --parallel test",
"cover": "lerna run --parallel cover",
"build": "lerna run build --scope=@bbob/plugin-helper && lerna run --parallel build",
"lint": "lerna run --parallel link && npm run build && lerna run --parallel lint"
"size": "nx run-many --target=size",
"bundlesize": "nx run-many --target=bundlesize",
"test": "npm run build && nx run-many --target=link && nx run-many --target=test",
"cover": "nx run-many --target=cover",
"build": "nx run-many --target=build",
"lint": "nx run-many --target=link && npm run build && nx run-many --target=lint"
},
"author": {
"name": "Nikolay Kostyurin <jilizart@gmail.com>",
Expand Down Expand Up @@ -49,7 +49,8 @@
"rollup": "3.3.0",
"rollup-plugin-gzip": "3.1.0",
"rollup-plugin-swc": "0.2.1",
"size-limit": "6.0.1"
"size-limit": "6.0.1",
"nx": "15.2.1"
},
"publishConfig": {
"access": "public",
Expand Down

0 comments on commit 683062d

Please sign in to comment.