Skip to content

Commit 9e4b619

Browse files
chore(packaging): enable watch mode sass compilation in dev server (#639)
1 parent b71c16d commit 9e4b619

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"cypress:run:ci:cp": "cypress run --component",
1919
"cypress:run:e2e": "cypress run --headless",
2020
"cypress:run:ci:e2e": "start-server-and-test start http://localhost:8006 cypress:run:e2e",
21-
"start": "concurrently \"npm run build:watch\" \"npx wait-on packages/module/dist && npm run docs:develop -w @patternfly/chatbot\"",
21+
"start": "concurrently \"npm run build:css:watch -w @patternfly/chatbot\" \"npm run build:watch\" \"npx wait-on packages/module/dist/esm packages/module/dist/css/main.css && npm run docs:develop -w @patternfly/chatbot\"",
2222
"serve:docs": "npm run docs:serve -w @patternfly/chatbot",
2323
"clean": "npm run clean -w @patternfly/chatbot",
2424
"lint:js": "node --max-old-space-size=4096 node_modules/.bin/eslint packages --ext js,jsx,ts,tsx --cache",

packages/module/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",
77
"scripts": {
8-
"build": "sass src/main.scss dist/css/main.css && npm run build:index && npm run build:js && npm run build:esm && npm run build:fed:packages",
8+
"build": "npm run build:css && npm run build:index && npm run build:js && npm run build:esm && npm run build:fed:packages",
99
"build:watch": "npm run build:js && npm run build:esm -- --watch && npm run build:fed:packages -- --watch",
1010
"build:esm": "tsc --build --verbose ./tsconfig.json",
1111
"build:fed:packages": "node generate-fed-package-json.js",
1212
"build:js": "tsc -p tsconfig.cjs.json",
1313
"build:index": "node generate-index.js",
14+
"build:css": "sass src/main.scss dist/css/main.css",
15+
"build:css:watch": "sass src/main.scss dist/css/main.css --watch",
1416
"clean": "rimraf dist",
1517
"docs:develop": "pf-docs-framework start",
1618
"docs:build": "pf-docs-framework build all --output public",

0 commit comments

Comments
 (0)