mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-24 02:37:05 +02:00
Update some dependencies
This commit is contained in:
@@ -27,6 +27,7 @@ export default function (config) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
webpack: {
|
webpack: {
|
||||||
|
mode: 'development',
|
||||||
node: webpackConfig.node,
|
node: webpackConfig.node,
|
||||||
module: webpackConfig.module,
|
module: webpackConfig.module,
|
||||||
devtool: 'inline-source-map'
|
devtool: 'inline-source-map'
|
||||||
@@ -56,6 +57,6 @@ export default function (config) {
|
|||||||
|
|
||||||
// Continuous Integration mode
|
// Continuous Integration mode
|
||||||
// if true, Karma captures browsers, runs the tests and exits
|
// if true, Karma captures browsers, runs the tests and exits
|
||||||
singleRun: false
|
singleRun: true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
37
package.json
37
package.json
@@ -16,9 +16,9 @@
|
|||||||
"build": "webpack --progress --colors",
|
"build": "webpack --progress --colors",
|
||||||
"build:watch": "yarn build --watch",
|
"build:watch": "yarn build --watch",
|
||||||
"release": "yarn build -p --config webpack.config.prod.babel.js",
|
"release": "yarn build -p --config webpack.config.prod.babel.js",
|
||||||
"upgrade": "yarn-upgrade-all && yarn remove d3 && yarn add d3@3.5.17",
|
"upgrade": "yarn-upgrade-all && yarn remove d3 && yarn add d3@3.5.17 && yarn remove dagre-d3-renderer && yarn add dagre-d3-renderer@0.4.25 && yarn remove dagre-layout && yarn add dagre-layout@0.8.0 && yarn remove less && yarn add --dev less@2.7.3 && yarn remove puppeteer && yarn add --dev puppeteer@0.13.0 && yarn remove karma jasmine && yarn add --dev karma@1.7.1 jasmine@2.8.0",
|
||||||
"lint": "standard",
|
"lint": "standard",
|
||||||
"karma": "node -r babel-register node_modules/.bin/karma start karma.conf.js --single-run",
|
"karma": "node -r babel-register node_modules/.bin/karma start karma.conf.js",
|
||||||
"test": "yarn lint && yarn karma",
|
"test": "yarn lint && yarn karma",
|
||||||
"jison": "node -r babel-register node_modules/.bin/gulp jison",
|
"jison": "node -r babel-register node_modules/.bin/gulp jison",
|
||||||
"prepublishOnly": "yarn build && yarn release && yarn test"
|
"prepublishOnly": "yarn build && yarn release && yarn test"
|
||||||
@@ -37,41 +37,42 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"d3": "3.5.17",
|
"d3": "3.5.17",
|
||||||
"dagre-d3-renderer": "^0.4.25",
|
"dagre-d3-renderer": "0.4.25",
|
||||||
"dagre-layout": "^0.8.0",
|
"dagre-layout": "0.8.0",
|
||||||
"he": "^1.1.1",
|
"he": "^1.1.1",
|
||||||
"lodash": "^4.17.4",
|
"lodash": "^4.17.5",
|
||||||
"moment": "^2.20.1"
|
"moment": "^2.21.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-core": "^6.26.0",
|
"babel-core": "^6.26.0",
|
||||||
"babel-loader": "^7.1.2",
|
"babel-loader": "^7.1.3",
|
||||||
"babel-plugin-lodash": "^3.3.2",
|
"babel-plugin-lodash": "^3.3.2",
|
||||||
"babel-preset-env": "^1.6.1",
|
"babel-preset-env": "^1.6.1",
|
||||||
"codeclimate-test-reporter": "^0.5.0",
|
"codeclimate-test-reporter": "^0.5.0",
|
||||||
"css-loader": "^0.28.7",
|
"css-loader": "^0.28.10",
|
||||||
"css-to-string-loader": "^0.1.3",
|
"css-to-string-loader": "^0.1.3",
|
||||||
"extract-text-webpack-plugin": "^3.0.2",
|
"extract-text-webpack-plugin": "^3.0.2",
|
||||||
"gulp": "^3.9.1",
|
"gulp": "^3.9.1",
|
||||||
"gulp-filelog": "^0.4.1",
|
"gulp-filelog": "^0.4.1",
|
||||||
"gulp-jison": "^1.2.0",
|
"gulp-jison": "^1.2.0",
|
||||||
"inject-loader": "^3.0.1",
|
"inject-loader": "^3.0.1",
|
||||||
"jasmine": "^2.8.0",
|
"jasmine": "2.8.0",
|
||||||
"jasmine-es6": "^0.4.3",
|
"jasmine-es6": "^0.4.3",
|
||||||
"jison": "^0.4.18",
|
"jison": "^0.4.18",
|
||||||
"karma": "^1.7.1",
|
"karma": "1.7.1",
|
||||||
"karma-chrome-launcher": "^2.2.0",
|
"karma-chrome-launcher": "^2.2.0",
|
||||||
"karma-jasmine": "^1.1.1",
|
"karma-jasmine": "^1.1.1",
|
||||||
"karma-sourcemap-loader": "^0.3.7",
|
"karma-sourcemap-loader": "^0.3.7",
|
||||||
"karma-webpack": "^2.0.9",
|
"karma-webpack": "^2.0.13",
|
||||||
"less": "^2.7.3",
|
"less": "2.7.3",
|
||||||
"less-loader": "^4.0.5",
|
"less-loader": "^4.0.6",
|
||||||
"puppeteer": "^0.13.0",
|
"puppeteer": "0.13.0",
|
||||||
"standard": "^10.0.3",
|
"standard": "^11.0.0",
|
||||||
"style-loader": "^0.19.1",
|
"style-loader": "^0.20.2",
|
||||||
"webpack": "^3.10.0",
|
"webpack": "^4.1.0",
|
||||||
|
"webpack-cli": "^2.0.10",
|
||||||
"webpack-node-externals": "^1.6.0",
|
"webpack-node-externals": "^1.6.0",
|
||||||
"yarn-upgrade-all": "^0.2.0"
|
"yarn-upgrade-all": "^0.3.0"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
|
@@ -32,6 +32,7 @@ const lessRule = { // load less to string
|
|||||||
|
|
||||||
export const jsConfig = () => {
|
export const jsConfig = () => {
|
||||||
return {
|
return {
|
||||||
|
mode: 'development',
|
||||||
target: 'web',
|
target: 'web',
|
||||||
entry: {
|
entry: {
|
||||||
mermaid: './src/mermaid.js'
|
mermaid: './src/mermaid.js'
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
import { jsConfig } from './webpack.config.base'
|
import { jsConfig } from './webpack.config.base'
|
||||||
|
|
||||||
const minConfig = jsConfig()
|
const minConfig = jsConfig()
|
||||||
|
minConfig.mode = 'production'
|
||||||
minConfig.output.filename = '[name].min.js'
|
minConfig.output.filename = '[name].min.js'
|
||||||
|
|
||||||
export default [minConfig]
|
export default [minConfig]
|
||||||
|
Reference in New Issue
Block a user