Skip to content

Commit

Permalink
chore(Lerna): Update Lerna and add local caching for build and test c…
Browse files Browse the repository at this point in the history
…ommands (#1464)
  • Loading branch information
moathabuhamad-cengage authored Oct 2, 2024
1 parent 9e15d10 commit 8983e14
Show file tree
Hide file tree
Showing 10 changed files with 45,227 additions and 48,624 deletions.
5 changes: 5 additions & 0 deletions .changeset/build-upgrade-lerna.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'react-magma-docs': patch
---

build(Lerna): update and add local caching for build and test commands`.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ packages/react-magma-dom/README.md
*_cache*
.npmrc
packages/react-magma-landing/dist

.nx/cache
.nx/workspace-data
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18.18.2
v18.20.4
12 changes: 3 additions & 9 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
{
"packages": [
"website/*",
"packages/*",
"patterns/*"
],
"packages": ["website/*", "packages/*", "patterns/*"],
"command": {
"bootstrap": {
"hoist": true
},
"publish": {
"allowBranch": ["dev", "hotfix/*", "main"],
"preDistTag": "next",
Expand All @@ -19,5 +12,6 @@
"conventionalCommits": true
}
},
"version": "independent"
"version": "independent",
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
}
78 changes: 78 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"targetDefaults": {
"build": {
"cache": true,
"dependsOn": ["^build"]
},
"test": {
"cache": true,
"dependsOn": [],
"outputs": ["{projectRoot}/coverage"]
}
},
"projects": {
"react-magma-dom": {
"targets": {
"build": {
"cache": true,
"dependsOn": [],
"outputs": ["{projectRoot}/packages/react-magma-dom/dist"]
}
}
},
"charts": {
"targets": {
"build": {
"cache": true,
"dependsOn": ["react-magma-dom:build"],
"outputs": ["{projectRoot}/packages/charts/dist"]
}
}
},
"dropzone": {
"targets": {
"build": {
"cache": true,
"dependsOn": ["react-magma-dom:build"],
"outputs": ["{projectRoot}/packages/dropzone/dist"]
}
}
},
"schema-renderer": {
"targets": {
"build": {
"cache": true,
"dependsOn": ["react-magma-dom:build"],
"outputs": ["{projectRoot}/packages/schema-renderer/dist"]
}
}
},
"website/react-magma-docs": {
"targets": {
"build": {
"cache": true,
"dependsOn": ["react-magma-dom:build"],
"outputs": ["{projectRoot}/website/react-magma-docs/public"]
}
}
},
"website/react-magma-landing": {
"targets": {
"build": {
"cache": true,
"dependsOn": ["react-magma-dom:build"],
"outputs": ["{projectRoot}/website/react-magma-landing/dist"]
}
}
},
"patterns/header": {
"targets": {
"build": {
"cache": true,
"dependsOn": ["react-magma-dom:build"],
"outputs": ["{projectRoot}/patterns/header/dist"]
}
}
}
}
}
Loading

2 comments on commit 8983e14

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.