chore: add build-preview task for local build testing (#1539)
This commit is contained in:
parent
892c51ce86
commit
75a32f528b
@ -75,6 +75,16 @@ Runs the `clean` script and builds the CMS packages.
|
|||||||
yarn build
|
yarn build
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### `build-preview`
|
||||||
|
|
||||||
|
Runs the `build` and `build-preview` scripts in each package and serves the resulting build locally.
|
||||||
|
|
||||||
|
#### Usage
|
||||||
|
|
||||||
|
```sh
|
||||||
|
yarn build-preview
|
||||||
|
```
|
||||||
|
|
||||||
### `test`
|
### `test`
|
||||||
|
|
||||||
Runs all the CMS package tests.
|
Runs all the CMS package tests.
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
"start": "npm run bootstrap && npm run watch",
|
"start": "npm run bootstrap && npm run watch",
|
||||||
"watch": "lerna run watch --parallel",
|
"watch": "lerna run watch --parallel",
|
||||||
"build": "npm run clean && lerna run build",
|
"build": "npm run clean && lerna run build",
|
||||||
|
"build-preview": "npm run build && lerna run build-preview",
|
||||||
"clean": "rimraf packages/*/dist",
|
"clean": "rimraf packages/*/dist",
|
||||||
"reset": "npm run clean && lerna clean --yes",
|
"reset": "npm run clean && lerna clean --yes",
|
||||||
"test": "cross-env NODE_ENV=test jest --no-cache",
|
"test": "cross-env NODE_ENV=test jest --no-cache",
|
||||||
|
@ -8,7 +8,8 @@
|
|||||||
"main": "dist/netlify-cms.js",
|
"main": "dist/netlify-cms.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"watch": "webpack-dev-server --hot --open",
|
"watch": "webpack-dev-server --hot --open",
|
||||||
"build": "cross-env NODE_ENV=production webpack"
|
"build": "cross-env NODE_ENV=production webpack",
|
||||||
|
"build-preview": "cross-env NODE_ENV=production webpack-dev-server --open"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"netlify",
|
"netlify",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user