Skip to content

Commit

Permalink
#460: use npm with lerna as backbone
Browse files Browse the repository at this point in the history
  • Loading branch information
basmasking committed Apr 5, 2024
1 parent 8f45694 commit eaaffb3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejsci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:

- run: npm ci
- run: npm install @nrwl/nx-linux-x64-gnu
- run: npx lerna run lint,test --scope=@jitar/reflection --scope=@jitar/serialization --scope=@jitar/runtime --scope=@jitar/caching --scope=@jitar/server-nodejs --scope=jitar --scope=create-jitar --scope=@jitar/plugin-vite
- run: npm run review
2 changes: 1 addition & 1 deletion examples/apps/contact-list/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "jitar-contact-list",
"name": "jitar-contact-list-example",
"private": true,
"version": "0.0.0",
"type": "module",
Expand Down
4 changes: 4 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "0.7.4",
"packages": [
"packages/*",
"examples/**/*"
],
"command": {
"version": {
"message": "chore(release): publish %s"
Expand Down
37 changes: 8 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,14 @@
"private": true,
"license": "MIT",
"type": "module",
"workspaces": [
"packages/caching",
"packages/create-jitar",
"packages/jitar",
"packages/plugin-vite",
"packages/reflection",
"packages/runtime",
"packages/serialization",
"packages/server-nodejs",
"tools/eslint-plugin",
"examples/concepts/access-protection",
"examples/concepts/construction",
"examples/concepts/cors",
"examples/concepts/data-transportation",
"examples/concepts/error-handling",
"examples/concepts/health-checks",
"examples/concepts/hello-world",
"examples/concepts/load-balancing",
"examples/concepts/middleware",
"examples/concepts/multi-version",
"examples/concepts/node-client",
"examples/concepts/overrides",
"examples/concepts/segmentation",
"examples/apps/contact-list"
],
"scripts": {
"build": "npm run build --workspace=packages/reflection --workspace=packages/serialization --workspace=packages/runtime --workspace=packages/caching --workspace=packages/server-nodejs --workspace=packages/jitar --workspace=packages/create-jitar --workspace=packages/plugin-vite --if-present",
"lint": "npm run lint --workspace=packages/reflection --workspace=packages/serialization --workspace=packages/runtime --workspace=packages/caching --workspace=packages/server-nodejs --workspace=packages/jitar --workspace=packages/create-jitar --workspace=packages/plugin-vite --if-present",
"test": "npm run test --workspace=packages/reflection --workspace=packages/serialization --workspace=packages/runtime --workspace=packages/caching --workspace=packages/server-nodejs --workspace=packages/jitar --workspace=packages/create-jitar --workspace=packages/plugin-vite --if-present",
"build": "lerna run build --scope=jitar --scope=create-jitar --scope=@jitar/plugin*",
"build:examples": "lerna run build --scope=*-example",
"build:all": "lerna run build",
"lint": "lerna run lint",
"test": "lerna run test",
"review": "lerna run test,lint",
"publish": "npx lerna publish --no-git-tag-version --no-private",
"changelog": "auto-changelog --template changelog.hbs -p -u --commit-limit false --hide-empty-releases true",
"changelog-debug": "auto-changelog --template changelog.hbs -p --template json --output changelog-data.json"
},
Expand All @@ -59,4 +38,4 @@
"rollup-plugin-dts": "^6.1.0",
"vitest": "^1.4.0"
}
}
}

0 comments on commit eaaffb3

Please sign in to comment.