Skip to content

Commit 79748d6

Browse files
authored
chore: simplify gulp use by extracting dev & watch (#2099)
* Update dependencies from beta tags to latest in actionbar and divider * Create a single gulpfile.js at root that handles building & spinning up the dev server for the current documentation site * Add an environment variable for the localhost URL to storybook for dev runs * Remove bundle-builder * Update build commands to use NX and run build in parallel across components (based on dependencies defined) * Remove docs building from component builders
1 parent f67b902 commit 79748d6

File tree

122 files changed

+2573
-3706
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+2573
-3706
lines changed

.env.build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
NODE_ENV=production
2+
STORYBOOK_URL=/preview/

.env.dev

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
NODE_ENV=development
2+
STORYBOOK_URL=http://localhost:3000

.github/workflows/pr-build-and-deploy.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,9 @@ jobs:
1818
with:
1919
node-version: 16
2020
- name: Install dependencies
21-
run: yarn install
22-
- name: Clean everything
23-
run: yarn clean
24-
- name: Build components
25-
run: yarn build:components
26-
- name: Build docs site
27-
run: yarn build:site
28-
- name: Build Storybook (preview)
29-
run: yarn workspace @spectrum-css/preview build
30-
- name: Move Storybook build to dist
31-
run: yarn postbuild:all
21+
run: yarn install --frozen-lockfile
22+
- name: Build
23+
run: yarn ci
3224
- name: Deploy to Netlify
3325
uses: nwtgck/actions-netlify@v2
3426
with:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ npm-debug.log*
1414
lerna-debug.log
1515
yarn-error.log
1616
package-lock.json
17+
profile.json
1718

1819
# Storybook build output
1920
tools/preview/storybook-static

0 commit comments

Comments
 (0)