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 18, 2024
1 parent 65d1b38 commit 7409af7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 42 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
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"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",
"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 All @@ -37,7 +37,7 @@
"refresh:config": "test -n $BASH_VERSION && bash ./tasks/chromatic-config-creation.sh || exit 0",
"refresh:directory": "test -n $BASH_VERSION && bash ./tasks/clean-up-after-migration.sh || exit 0",
"refresh:env": "test -n $BASH_VERSION && bash ./tasks/copy-env-from-root.sh || exit 0",
"release": "cross-env NODE_ENV=production nx reset && yarn builder tag:component,ui-icons && lerna publish --no-private",
"release": "nx reset && yarn ci && lerna publish --no-private",
"release:beta-from-package": "yarn release from-package --conventional-prerelease --preid beta --pre-dist-tag beta",
"release:site": "cross-env NODE_ENV=production yarn build:site && gh-pages -d dist/ -f -e .",
"start": "cross-env NODE_ENV=development nx start storybook",
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 7409af7

Please sign in to comment.