use webpack for all builds
This commit is contained in:
3
packages/netlify-cms-lib-util/babel.config.js
Normal file
3
packages/netlify-cms-lib-util/babel.config.js
Normal file
@ -0,0 +1,3 @@
|
||||
const config = require('../../babel.config.js');
|
||||
|
||||
module.exports = config;
|
@ -2,23 +2,30 @@
|
||||
"name": "netlify-cms-lib-util",
|
||||
"description": "Shared utilities for Netlify CMS.",
|
||||
"version": "2.0.0-alpha.0",
|
||||
"main": "dist/netlify-cms-lib-util.js",
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
"netlify-cms"
|
||||
],
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"watch": "parcel watch src/*.js --out-dir . --no-cache",
|
||||
"build": "parcel build src/*.js --out-dir . --no-cache"
|
||||
"watch": "webpack -w",
|
||||
"build": "cross-env NODE_ENV=production webpack"
|
||||
},
|
||||
"dependencies": {
|
||||
"immutable": "^3.7.6",
|
||||
"localforage": "^1.4.2",
|
||||
"lodash": "^4.13.1"
|
||||
"localforage": "^1.4.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-cli": "^6.26.0",
|
||||
"babel-core": "^6.26.3",
|
||||
"parcel-bundler": "^1.9.4"
|
||||
"@babel/cli": "^7.0.0-beta.54",
|
||||
"@babel/core": "^7.0.0-beta.54",
|
||||
"cross-env": "^5.2.0",
|
||||
"rollup": "^0.63.2",
|
||||
"rollup-plugin-babel": "^4.0.0-beta.7",
|
||||
"webpack": "^4.16.1",
|
||||
"webpack-cli": "^3.1.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"immutable": "^3.7.6",
|
||||
"lodash": "^4.13.1"
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { fileExtensionWithSeparator, fileExtension } from '../pathHelper';
|
||||
import { fileExtensionWithSeparator, fileExtension } from '../path';
|
||||
|
||||
describe('fileExtensionWithSeparator', () => {
|
||||
it('should return the extension of a file', () => {
|
7
packages/netlify-cms-lib-util/src/index.js
Normal file
7
packages/netlify-cms-lib-util/src/index.js
Normal file
@ -0,0 +1,7 @@
|
||||
export APIError from './APIError';
|
||||
export Cursor, { CURSOR_COMPATIBILITY_SYMBOL } from './Cursor';
|
||||
export EditorialWorkflowError from './EditorialWorkflowError';
|
||||
export localForage from './localForage';
|
||||
export { resolvePath, basename, fileExtensionWithSeparator, fileExtension } from './path';
|
||||
export { filterPromises, resolvePromiseProperties, then } from './promise';
|
||||
export unsentRequest from './unsentRequest';
|
1
packages/netlify-cms-lib-util/webpack.config.js
Normal file
1
packages/netlify-cms-lib-util/webpack.config.js
Normal file
@ -0,0 +1 @@
|
||||
module.exports = require('../../webpack.config.js');
|
Reference in New Issue
Block a user