Skip to content

Commit e841225

Browse files
build: replace theme-specific NPM scripts with paragon CLI (#1447)
1 parent 6a81b4d commit e841225

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,18 @@
99
"scripts": {
1010
"build": "fedx-scripts webpack",
1111
"i18n_extract": "fedx-scripts formatjs extract --throws",
12-
"build:with-theme": "THEME=npm:@edx/brand-edx.org@latest npm run install-theme && fedx-scripts webpack",
12+
"build:with-theme": "paragon install-theme && fedx-scripts webpack && npm install",
1313
"check-types": "tsc --noemit",
1414
"eslint": "fedx-scripts eslint --ext .js --ext .jsx --ext .ts --ext .tsx .",
1515
"lint": "npm run eslint && npm run check-types",
1616
"lint:fix": "npm run eslint -- --fix",
1717
"precommit": "npm run lint",
1818
"prepublishOnly": "npm run build",
1919
"postinstall": "patch-package",
20-
"install-theme": "npm install \"@edx/brand@${THEME}\" --no-save",
2120
"start": "fedx-scripts webpack-dev-server --progress",
2221
"start:stage": "npm run start -- --config=webpack.dev-stage.config.js",
23-
"start:with-theme": "THEME=npm:@edx/brand-edx.org@latest npm run install-theme && npm run start",
24-
"start:stage:with-theme": "THEME=npm:@edx/brand-edx.org@latest npm run install-theme && npm run start:stage",
22+
"start:with-theme": "paragon install-theme && npm run start && npm install",
23+
"start:stage:with-theme": "paragon install-theme && npm run start:stage && npm install",
2524
"debug-test": "node --inspect-brk node_modules/.bin/jest --runInBand --coverage",
2625
"test": "TZ=UTC fedx-scripts jest --coverage --passWithNoTests --maxWorkers=50%",
2726
"test:watch": "npm run test -- --watch",

0 commit comments

Comments
 (0)