Skip to content

Commit e188ef5

Browse files
committed
publish
1 parent e0ad17b commit e188ef5

File tree

3 files changed

+61
-64
lines changed

3 files changed

+61
-64
lines changed

.after-build.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,11 @@ then
1010
mv ./MarkdownPalettesBrowser.umd.js ./markdown-palettes.js
1111
mv ./MarkdownPalettesBrowser.css ./markdown-palettes.css
1212

13-
rm -rf ./MarkdownPalettesBrowser.common.*.js
1413
rm -rf ./MarkdownPalettesBrowser.common.js
15-
rm -rf ./MarkdownPalettesBrowser.umd.*.js
1614
fi
1715

1816
if test -e ./MarkdownPalettes.umd.js
1917
then
20-
rm -rf ./MarkdownPalettes.common.*.js
2118
rm -rf ./MarkdownPalettes.umd.js
2219
rm -rf ./MarkdownPalettes.umd.*.js
2320
fi

package.json

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
1-
{
2-
"name": "markdown-palettes",
3-
"description": "Markdown*Palettes: Markdown editor for the modern web.",
4-
"version": "0.4.8-alpha",
5-
"author": "Luogu Dev Team",
6-
"license": "MIT",
7-
"main": "dist/MarkdownPalettes.common.js",
8-
"style": "dist/MarkdownPalettes.css",
9-
"scripts": {
10-
"dev": "vue-cli-service serve --open",
11-
"prod-test": "vue-cli-service serve --open --mode production",
12-
"build": "vue-cli-service build --name MarkdownPalettes --target lib src/module.js && vue-cli-service build --name MarkdownPalettesBrowser --target lib src/browserModule.js --no-clean && ./.after-build.sh && cp demo.html dist/demo.html",
13-
"build-lib": "vue-cli-service build --name MarkdownPalettes --target lib src/module.js && ./.after-build.sh",
14-
"build-browser": "vue-cli-service build --name MarkdownPalettesBrowser --target lib src/browserModule.js && ./.after-build.sh",
15-
"build-dev": "vue-cli-service build --name MarkdownPalettes --target lib src/browserModule.js --mode development",
16-
"lint": "vue-cli-service lint",
17-
"lint-fix": "vue-cli-service lint --fix",
18-
"analyze": "vue-cli-service build --name MarkdownPalettes --target lib src/browserModule.js --report",
19-
"test-dist": "hs dist"
20-
},
21-
"dependencies": {
22-
"@fortawesome/fontawesome-free": "^5.1.0",
23-
"axios": "^0.18.0",
24-
"codemirror": "^5.39.0",
25-
"global": "^4.3.2",
26-
"katex": "^0.9.0",
27-
"lodash": "4.17.10",
28-
"markdown-it": "^8.4.2",
29-
"markdown-it-v": "^1.2.1",
30-
"markdown-it-v-codemirror-highlighter": "1.0.0",
31-
"markdown-it-v-katex": "^1.0.0-alpha.1",
32-
"vue": "^2.5.11"
33-
},
34-
"devDependencies": {
35-
"@babel/plugin-proposal-object-rest-spread": "7.3.1",
36-
"@babel/preset-env": "7.3.1",
37-
"@vue/cli-plugin-babel": "^3.4.0",
38-
"@vue/cli-plugin-eslint": "^3.1.5",
39-
"@vue/cli-service": "3.4.0",
40-
"@vue/eslint-config-standard": "^4.0.0",
41-
"babel-plugin-lodash": "^3.3.4",
42-
"http-server": "^0.11.1",
43-
"stylus": "^0.54.5",
44-
"stylus-loader": "^3.0.2",
45-
"vue-template-compiler": "^2.5.16"
46-
},
47-
"browserslist": [
48-
"Edge >= 15",
49-
"Firefox >= 53",
50-
"Chrome >= 55",
51-
"Opera >= 42",
52-
"Safari >= 10.1"
53-
]
54-
}
1+
{
2+
"name": "markdown-palettes",
3+
"description": "Markdown*Palettes: Markdown editor for the modern web.",
4+
"version": "0.4.10",
5+
"author": "Luogu Dev Team",
6+
"license": "MIT",
7+
"main": "dist/MarkdownPalettes.common.js",
8+
"style": "dist/MarkdownPalettes.css",
9+
"scripts": {
10+
"dev": "vue-cli-service serve --open",
11+
"prod-test": "vue-cli-service serve --open --mode production",
12+
"build": "vue-cli-service build --name MarkdownPalettes --target lib src/module.js && vue-cli-service build --name MarkdownPalettesBrowser --target lib src/browserModule.js --no-clean && ./.after-build.sh && cp demo.html dist/demo.html",
13+
"build-lib": "vue-cli-service build --name MarkdownPalettes --target lib src/module.js && ./.after-build.sh",
14+
"build-browser": "vue-cli-service build --name MarkdownPalettesBrowser --target lib src/browserModule.js && ./.after-build.sh",
15+
"build-dev": "vue-cli-service build --name MarkdownPalettes --target lib src/browserModule.js --mode development",
16+
"lint": "vue-cli-service lint",
17+
"lint-fix": "vue-cli-service lint --fix",
18+
"analyze": "vue-cli-service build --name MarkdownPalettes --target lib src/browserModule.js --report",
19+
"test-dist": "hs dist"
20+
},
21+
"dependencies": {
22+
"@fortawesome/fontawesome-free": "^5.1.0",
23+
"axios": "^0.18.0",
24+
"codemirror": "^5.39.0",
25+
"global": "^4.3.2",
26+
"katex": "^0.9.0",
27+
"lodash": "4.17.10",
28+
"markdown-it": "^8.4.2",
29+
"markdown-it-v": "^1.2.1",
30+
"markdown-it-v-codemirror-highlighter": "1.0.0",
31+
"markdown-it-v-katex": "^1.0.0-alpha.1",
32+
"vue": "^2.5.11"
33+
},
34+
"devDependencies": {
35+
"@babel/plugin-proposal-object-rest-spread": "7.3.1",
36+
"@babel/preset-env": "7.3.1",
37+
"@vue/cli-plugin-babel": "^3.4.0",
38+
"@vue/cli-plugin-eslint": "^3.1.5",
39+
"@vue/cli-service": "3.4.0",
40+
"@vue/eslint-config-standard": "^4.0.0",
41+
"babel-plugin-lodash": "^3.3.4",
42+
"http-server": "^0.11.1",
43+
"stylus": "^0.54.5",
44+
"stylus-loader": "^3.0.2",
45+
"vue-template-compiler": "^2.5.16"
46+
},
47+
"browserslist": [
48+
"Edge >= 15",
49+
"Firefox >= 53",
50+
"Chrome >= 55",
51+
"Opera >= 42",
52+
"Safari >= 10.1"
53+
]
54+
}

vue.config.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
const IgnorePlugin = require('webpack').IgnorePlugin
1+
const webpack = require('webpack')
2+
const IgnorePlugin = webpack.IgnorePlugin
23

34
module.exports = {
45
pages: {
@@ -10,12 +11,11 @@ module.exports = {
1011
},
1112
configureWebpack: {
1213
plugins: [
13-
new IgnorePlugin(/^css-tree$/)
14-
],
15-
output: {
16-
globalObject: `(typeof self !== 'undefined' ? self : this)`,
17-
libraryExport: 'default'
18-
}
14+
new IgnorePlugin(/^css-tree$/),
15+
new webpack.optimize.LimitChunkCountPlugin({
16+
maxChunks: 1,
17+
}),
18+
]
1919
},
2020
transpileDependencies: [
2121
],

0 commit comments

Comments
 (0)