Merge pull request #1439 from GDFaber/feature/build_and_publish_dev_and_prod_code

Build development and production code in one go and include it into the repository
This commit is contained in:
Knut Sveidqvist 2020-06-02 18:59:28 +02:00 committed by GitHub
commit 22b0ddfb42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 89119 additions and 6 deletions

3
.gitignore vendored
View File

@ -4,9 +4,6 @@ node_modules/
coverage/
.idea/
dist/*.js
dist/*.map
yarn-error.log
.npmrc
token

21705
dist/mermaid.core.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/mermaid.core.js.map vendored Normal file

File diff suppressed because one or more lines are too long

67364
dist/mermaid.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/mermaid.js.map vendored Normal file

File diff suppressed because one or more lines are too long

42
dist/mermaid.min.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/mermaid.min.js.map vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -13,11 +13,13 @@
"git graph"
],
"scripts": {
"build": "webpack --progress --colors -p",
"build:development": "webpack --progress --colors",
"build:production": "yarn build:development -p --config webpack.config.prod.babel.js",
"build": "yarn build:development && yarn build:production",
"postbuild": "documentation build src/mermaidAPI.js --shallow -f md --markdown-toc false -o docs/mermaidAPI.md",
"build:watch": "yarn build --watch",
"minify": "minify ./dist/mermaid.js > ./dist/mermaid.min.js",
"release": "yarn build -p --config webpack.config.prod.babel.js",
"release": "yarn build",
"lint": "eslint src",
"e2e:depr": "yarn lint && jest e2e --config e2e/jest.config.js",
"cypress": "percy exec -- cypress run",
@ -26,7 +28,7 @@
"dev": "webpack-dev-server --config webpack.config.e2e.js",
"test": "yarn lint && jest src/.*",
"test:watch": "jest --watch src",
"prepublishOnly": "yarn build && yarn release && yarn test && yarn e2e",
"prepublishOnly": "yarn build && yarn test && yarn e2e",
"prepush": "yarn test",
"prepare": "yarn build"
},