chore: fix local development
This commit is contained in:
parent
7378e18b29
commit
00a176b34a
1
.gitignore
vendored
1
.gitignore
vendored
@ -11,6 +11,7 @@ manifest.yml
|
||||
.imdone/
|
||||
website/data/contributors.json
|
||||
cypress/videos
|
||||
cypress/screenshots
|
||||
/coverage/
|
||||
.cache
|
||||
*.log
|
||||
|
@ -1,15 +1,15 @@
|
||||
{
|
||||
"scripts": {
|
||||
"bootstrap": "lerna bootstrap",
|
||||
"start": "run-s bootstrap develop",
|
||||
"start": "run-s clean bootstrap develop",
|
||||
"watch": "lerna run watch --parallel",
|
||||
"develop": "lerna run develop --parallel",
|
||||
"develop": "lerna run --parallel develop",
|
||||
"build": "run-s clean build:esm build:lerna",
|
||||
"build:lerna": "lerna run build",
|
||||
"build:esm": "lerna run build:esm",
|
||||
"build-preview": "run-s build build-preview:lerna",
|
||||
"build-preview:lerna": "lerna run build-preview",
|
||||
"clean": "rimraf packages/*/dist dev-test/*.js",
|
||||
"clean": "rimraf packages/*/dist dev-test/dist",
|
||||
"clean:lerna": "lerna clean --yes",
|
||||
"reset": "run-s clean clean:lerna",
|
||||
"cache-ci": "node scripts/cache.js",
|
||||
|
@ -11,6 +11,7 @@
|
||||
"dist/"
|
||||
],
|
||||
"scripts": {
|
||||
"develop": "webpack -w",
|
||||
"build": "cross-env NODE_ENV=production webpack",
|
||||
"build:esm": "cross-env NODE_ENV=esm babel src --out-dir dist/esm --ignore src/**/__tests__/* --root-mode upward"
|
||||
},
|
||||
|
@ -9,4 +9,3 @@ const Widget = (opts = {}) => ({
|
||||
});
|
||||
|
||||
export const NetlifyCmsWidgetDate = { Widget, controlComponent, previewComponent };
|
||||
export { Widget as default, controlComponent, previewComponent };
|
||||
|
@ -9,4 +9,3 @@ const Widget = (opts = {}) => ({
|
||||
});
|
||||
|
||||
export const NetlifyCmsWidgetDatetime = { Widget, controlComponent, previewComponent };
|
||||
export { Widget as default, controlComponent, previewComponent };
|
||||
|
@ -7,7 +7,6 @@
|
||||
"bugs": "https://github.com/netlify/netlify-cms/issues",
|
||||
"main": "dist/netlify-cms.js",
|
||||
"scripts": {
|
||||
"watch": "webpack -w",
|
||||
"build": "cross-env NODE_ENV=production webpack",
|
||||
"build-preview": "cross-env NODE_ENV=production webpack-dev-server --open",
|
||||
"develop": "webpack-dev-server --hot"
|
||||
|
@ -11,8 +11,8 @@ import * as NetlifyCmsWidgetObject from 'netlify-cms-widget-object';
|
||||
import * as NetlifyCmsWidgetRelation from 'netlify-cms-widget-relation';
|
||||
import * as NetlifyCmsWidgetBoolean from 'netlify-cms-widget-boolean';
|
||||
import * as NetlifyCmsWidgetMap from 'netlify-cms-widget-map';
|
||||
import DateWidget from 'netlify-cms-widget-date';
|
||||
import DateTimeWidget from 'netlify-cms-widget-datetime';
|
||||
import * as NetlifyCmsWidgetDate from 'netlify-cms-widget-date';
|
||||
import * as NetlifyCmsWidgetDateTime from 'netlify-cms-widget-datetime';
|
||||
|
||||
registerWidget(
|
||||
'string',
|
||||
@ -66,4 +66,4 @@ registerWidget(
|
||||
);
|
||||
registerWidget('boolean', NetlifyCmsWidgetBoolean.controlComponent);
|
||||
registerWidget('map', NetlifyCmsWidgetMap.controlComponent, NetlifyCmsWidgetMap.previewComponent);
|
||||
registerWidget([DateWidget(), DateTimeWidget()]);
|
||||
registerWidget([NetlifyCmsWidgetDate.Widget(), NetlifyCmsWidgetDateTime.Widget()]);
|
||||
|
@ -31,6 +31,7 @@ const baseConfig = {
|
||||
devServer: {
|
||||
contentBase: '../../dev-test',
|
||||
watchContentBase: true,
|
||||
publicPath: '/dist/',
|
||||
quiet: true,
|
||||
host: 'localhost',
|
||||
port: 8080,
|
||||
|
Loading…
x
Reference in New Issue
Block a user