Skip to content

Commit

Permalink
feat: Revised to use Lerna to help with the build process
Browse files Browse the repository at this point in the history
Signed-off-by: Antonette Caldwell <[email protected]>
  • Loading branch information
nebula-aac committed Sep 28, 2023
1 parent d75c0e4 commit a5cb646
Show file tree
Hide file tree
Showing 4 changed files with 2,583 additions and 114 deletions.
5 changes: 5 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "0.0.0",
"npmClient": "yarn"
}
93 changes: 93 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
{
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": [
"build-storybook",
"dev",
"lint",
"lint:fix",
"preview",
"storybook",
"build",
"api-generate",
"coverage",
"test"
]
}
}
},
"targetDefaults": {
"build-storybook": {
"dependsOn": [
"^build-storybook"
],
"outputs": [
"{projectRoot}/storybook-static"
]
},
"dev": {
"dependsOn": [
"^dev"
]
},
"init-msw": {
"dependsOn": [
"^init-msw"
],
"outputs": [
"{projectRoot}/public"
]
},
"lint": {
"dependsOn": [
"^lint"
]
},
"lint:fix": {
"dependsOn": [
"^lint:fix"
]
},
"preview": {
"dependsOn": [
"^preview"
]
},
"storybook": {
"dependsOn": [
"^storybook"
]
},
"build": {
"dependsOn": [
"^build"
],
"outputs": [
"{projectRoot}/storybook-static"
]
},
"api-generate": {
"dependsOn": [
"^api-generate"
],
"outputs": [
"{projectRoot}/dist"
]
},
"coverage": {
"dependsOn": [
"^coverage"
],
"outputs": [
"{projectRoot}/coverage"
]
},
"test": {
"dependsOn": [
"^test"
]
}
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"devDependencies": {
"eslint": "^8.49.0",
"husky": "^8.0.0",
"lerna": "^7.3.0",
"lint-staged": "^14.0.1",
"prettier": "^3.0.3",
"prettier-plugin-organize-imports": "^3.2.3",
Expand Down
Loading

0 comments on commit a5cb646

Please sign in to comment.