jsmom-table-form 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc +16 -0
- package/.editorconfig +9 -0
- package/.env.dev +1 -0
- package/.env.prod +1 -0
- package/.postcssrc.js +5 -0
- package/CHANGELOG.MD +5 -0
- package/LICENSE.txt +21 -0
- package/README.md +153 -0
- package/dist/main.js +43 -0
- package/index.html +6 -0
- package/package.json +46 -0
- package/webpack.config.js +89 -0
package/index.html
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "jsmom-table-form",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot --host 127.0.0.1",
|
|
6
|
+
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules"
|
|
7
|
+
},
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"author": "JSMOM",
|
|
10
|
+
"main": "dist/main.js",
|
|
11
|
+
"devDependencies": {
|
|
12
|
+
"@babel/cli": "^7.11.6",
|
|
13
|
+
"@babel/core": "^7.11.6",
|
|
14
|
+
"@babel/plugin-transform-runtime": "^7.11.5",
|
|
15
|
+
"@babel/preset-env": "^7.11.5",
|
|
16
|
+
"@babel/preset-stage-0": "^7.8.3",
|
|
17
|
+
"babel-loader": "^8.1.0",
|
|
18
|
+
"cross-env": "^7.0.2",
|
|
19
|
+
"css-loader": "^4.3.0",
|
|
20
|
+
"file-loader": "^6.1.0",
|
|
21
|
+
"sass": "^1.44.0",
|
|
22
|
+
"sass-loader": "~8",
|
|
23
|
+
"vue-loader": "^15.9.3",
|
|
24
|
+
"vue-template-compiler": "^2.6.12",
|
|
25
|
+
"webpack": "^4.44.2",
|
|
26
|
+
"webpack-cli": "^3.3.12",
|
|
27
|
+
"webpack-dev-server": "^3.11.0"
|
|
28
|
+
},
|
|
29
|
+
"description": "表格表单组件",
|
|
30
|
+
"keywords": [
|
|
31
|
+
"vue"
|
|
32
|
+
],
|
|
33
|
+
"browserslist": [
|
|
34
|
+
"> 1%",
|
|
35
|
+
"last 2 versions",
|
|
36
|
+
"not ie <= 8"
|
|
37
|
+
],
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"element-ui": "^2.15.6",
|
|
40
|
+
"jsmom-form": "^1.0.0",
|
|
41
|
+
"sortablejs": "^1.14.0",
|
|
42
|
+
"vue": "^2.6.12",
|
|
43
|
+
"vxe-table": "^3.4.11",
|
|
44
|
+
"xe-utils": "^3.4.3"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
var path = require("path");
|
|
2
|
+
var webpack = require("webpack");
|
|
3
|
+
const VueLoaderPlugin = require("vue-loader/lib/plugin");
|
|
4
|
+
|
|
5
|
+
const NODE_ENV = process.env.NODE_ENV;
|
|
6
|
+
|
|
7
|
+
module.exports = {
|
|
8
|
+
entry: NODE_ENV == "development" ? ["./src/dev.js"] : ["./src/prod.js"],
|
|
9
|
+
output: {
|
|
10
|
+
path: path.resolve(__dirname, "./dist"),
|
|
11
|
+
publicPath: "/dist/",
|
|
12
|
+
filename: "main.js",
|
|
13
|
+
library: "main",
|
|
14
|
+
libraryTarget: "umd",
|
|
15
|
+
umdNamedDefine: true,
|
|
16
|
+
globalObject: "this",
|
|
17
|
+
},
|
|
18
|
+
module: {
|
|
19
|
+
rules: [
|
|
20
|
+
{
|
|
21
|
+
test: /\.(css|scss)$/,
|
|
22
|
+
use: ["vue-style-loader", "css-loader", "sass-loader"],
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
test: /\.vue$/,
|
|
26
|
+
loader: "vue-loader",
|
|
27
|
+
options: {
|
|
28
|
+
loaders: {},
|
|
29
|
+
// other vue-loader options go here
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
test: /\.worker\.js$/,
|
|
34
|
+
loader: "worker-loader",
|
|
35
|
+
options: { inline: "no-fallback" },
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
test: /\.js$/,
|
|
39
|
+
loader: "babel-loader",
|
|
40
|
+
exclude: /node_modules/,
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
test: /\.(png|jpg|gif|svg)$/,
|
|
44
|
+
loader: "file-loader",
|
|
45
|
+
options: {
|
|
46
|
+
name: "[name].[ext]?[hash]",
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
},
|
|
51
|
+
plugins: [
|
|
52
|
+
// make sure to include the plugin for the magic
|
|
53
|
+
new VueLoaderPlugin(),
|
|
54
|
+
],
|
|
55
|
+
resolve: {
|
|
56
|
+
alias: {
|
|
57
|
+
vue$: "vue/dist/vue.esm.js",
|
|
58
|
+
},
|
|
59
|
+
extensions: ["*", ".js", ".vue", ".json"],
|
|
60
|
+
},
|
|
61
|
+
devServer: {
|
|
62
|
+
historyApiFallback: true,
|
|
63
|
+
noInfo: true,
|
|
64
|
+
overlay: true,
|
|
65
|
+
},
|
|
66
|
+
performance: {
|
|
67
|
+
hints: false,
|
|
68
|
+
},
|
|
69
|
+
devtool: "#eval-source-map",
|
|
70
|
+
mode: process.env.NODE_ENV === "production" ? "production" : "development",
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
if (process.env.NODE_ENV === "production") {
|
|
74
|
+
module.exports.devtool = "#source-map";
|
|
75
|
+
module.exports.optimization = {
|
|
76
|
+
minimize: true,
|
|
77
|
+
};
|
|
78
|
+
// http://vue-loader.vuejs.org/en/workflow/production.html
|
|
79
|
+
module.exports.plugins = (module.exports.plugins || []).concat([
|
|
80
|
+
new webpack.DefinePlugin({
|
|
81
|
+
"process.env": {
|
|
82
|
+
NODE_ENV: '"production"',
|
|
83
|
+
},
|
|
84
|
+
}),
|
|
85
|
+
new webpack.LoaderOptionsPlugin({
|
|
86
|
+
minimize: true,
|
|
87
|
+
}),
|
|
88
|
+
]);
|
|
89
|
+
}
|