Skip to content

Commit

Permalink
chore: minor fixes in build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
castastrophe committed Apr 24, 2024
1 parent 719c170 commit 1b0ecbf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 41 deletions.
40 changes: 7 additions & 33 deletions .storybook/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"tools": [
"{projectRoot}/assets",
"{projectRoot}/decorators",
"{projectRoot}/*.{js,html}"
"{projectRoot}/guides",
"{projectRoot}/*.{js,html,mdx}"
]
},
"targets": {
Expand All @@ -23,21 +24,8 @@
}
},
"build": {
"dependsOn": [
"^build",
{
"target": "build",
"projects": "ui-icons"
}
],
"inputs": [
"{projectRoot}/assets",
"{projectRoot}/decorators",
"{projectRoot}/*.js",
"{projectRoot}/*.html",
"{workspaceRoot}/components/*/dist",
{ "externalDependencies": ["storybook"] }
],
"dependsOn": ["^build"],
"inputs": ["tools", { "externalDependencies": ["storybook"] }],
"outputs": ["{projectRoot}/storybook-static"],
"executor": "nx:run-commands",
"options": {
Expand All @@ -60,19 +48,9 @@
},
"start": {
"cache": true,
"dependsOn": [
"^build",
{
"target": "build",
"projects": "ui-icons"
}
],
"dependsOn": ["^build"],
"inputs": [
"{projectRoot}/assets",
"{projectRoot}/decorators",
"{projectRoot}/*.js",
"{projectRoot}/*.html",
"{workspaceRoot}/components/*/dist",
"tools",
{ "externalDependencies": ["storybook"] },
{ "env": "WATCH_MODE" }
],
Expand All @@ -85,11 +63,7 @@
"test": {
"cache": true,
"inputs": [
"{projectRoot}/assets",
"{projectRoot}/decorators",
"{projectRoot}/*.js",
"{projectRoot}/*.html",
"{workspaceRoot}/components/*/dist",
"tools",
{ "externalDependencies": ["chromatic", "storybook"] },
{ "env": "CHROMATIC_PROJECT_TOKEN" }
],
Expand Down
3 changes: 1 addition & 2 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@
"cache": true,
"dependsOn": [
"^build",
"clean",
{ "target": "build", "projects": "tokens" }
"clean"
],
"inputs": [
"core",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
"url": "https://github.com/adobe/spectrum-css/issues"
},
"scripts": {
"build": "yarn builder tag:component",
"build": "yarn builder tag:component,ui-icons",
"build:preview": "nx build storybook",
"build:site": "nx build docs",
"builder": "nx run-many --target build --projects",
"cache:clean": "nx reset",
"changeset": "changeset",
"ci": "cross-env NODE_ENV=production yarn builder tag:component,ui-icons",
"ci": "cross-env NODE_ENV=production yarn build",
"ci:storybook": "cross-env NODE_ENV=production nx run storybook:build:ci",
"clean": "yarn cleaner tag:component",
"clean:docs": "rimraf dist",
Expand Down
4 changes: 0 additions & 4 deletions site/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@
"target": "build",
"projects": "tag:component"
},
{
"target": "build",
"projects": "ui-icons"
},
"clean"
],
"inputs": ["core", "tools"],
Expand Down

0 comments on commit 1b0ecbf

Please sign in to comment.