tianheng-ui 0.0.3 → 0.0.7

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/package.json CHANGED
@@ -1,18 +1,15 @@
1
1
  {
2
2
  "name": "tianheng-ui",
3
3
  "description": "A Vue.js project",
4
- "version": "0.0.3",
4
+ "version": "0.0.7",
5
5
  "author": "shu lang <403732931@qq.com>",
6
6
  "license": "MIT",
7
7
  "private": false,
8
- "main": "dist/tianheng-ui.js",
8
+ "main": "./dist/tianheng-ui.js",
9
9
  "scripts": {
10
10
  "dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot",
11
11
  "build": "cross-env NODE_ENV=production webpack --progress --hide-modules"
12
12
  },
13
- "directories": {
14
- "dist": "dist"
15
- },
16
13
  "dependencies": {
17
14
  "element-ui": "^2.15.6",
18
15
  "vue": "^2.5.11"
@@ -39,8 +36,16 @@
39
36
  "webpack": "^3.6.0",
40
37
  "webpack-dev-server": "^2.9.1"
41
38
  },
39
+ "files": [
40
+ "dist",
41
+ "lib",
42
+ "packages",
43
+ "src"
44
+ ],
45
+ "homepage": "http://element.eleme.io",
42
46
  "keywords": [
43
- "element",
47
+ "tianheng",
44
48
  "prompt"
45
- ]
49
+ ],
50
+ "style": "lib/theme-chalk/index.css"
46
51
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/src/App.vue CHANGED
@@ -9,7 +9,7 @@
9
9
  </template>
10
10
 
11
11
  <script>
12
- import ThCell from "./component/cell/index.vue";
12
+ import ThCell from "../packages/cell/index.vue";
13
13
  export default {
14
14
  name: "app",
15
15
  components: { ThCell },
package/src/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import Cell from "./component/cell/index.js";
2
- import Icons from "./component/icons/index.js";
3
- import Table from "./component/table/index.js";
1
+ import Cell from "../packages/cell/index.js";
2
+ import Icons from "../packages/icons/index.js";
3
+ import Table from "../packages/table/index.js";
4
4
 
5
5
  const components = [Cell, Icons, Table];
6
6
 
@@ -15,7 +15,7 @@ if (typeof window !== "undefined" && window.Vue) {
15
15
  }
16
16
 
17
17
  export default {
18
- version: "0.0.3",
18
+ version: "0.0.7",
19
19
  install,
20
20
  ...components
21
21
  };
package/.babelrc DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "presets": [
3
- ["env", { "modules": false }],
4
- "stage-3"
5
- ]
6
- }
package/.editorconfig DELETED
@@ -1,9 +0,0 @@
1
- root = true
2
-
3
- [*]
4
- charset = utf-8
5
- indent_style = space
6
- indent_size = 2
7
- end_of_line = lf
8
- insert_final_newline = true
9
- trim_trailing_whitespace = true
package/index.html DELETED
@@ -1,11 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <title>tianheng-ui</title>
6
- </head>
7
- <body>
8
- <div id="app"></div>
9
- <script src="/dist/tianheng-ui.js"></script>
10
- </body>
11
- </html>
package/webpack.config.js DELETED
@@ -1,97 +0,0 @@
1
- var path = require("path");
2
- var webpack = require("webpack");
3
-
4
- module.exports = {
5
- // entry: './src/main.js',
6
- entry: "./src/index.js",
7
- output: {
8
- path: path.resolve(__dirname, "./dist"),
9
- publicPath: "/dist/",
10
- filename: "tianheng-ui.js",
11
- library: "tianheng-ui",
12
- libraryTarget: "umd",
13
- umdNamedDefine: true
14
- },
15
- module: {
16
- rules: [
17
- {
18
- test: /\.css$/,
19
- use: ["vue-style-loader", "css-loader"]
20
- },
21
- {
22
- test: /\.scss$/,
23
- use: ["vue-style-loader", "css-loader", "sass-loader"]
24
- },
25
- {
26
- test: /\.sass$/,
27
- use: ["vue-style-loader", "css-loader", "sass-loader?indentedSyntax"]
28
- },
29
- {
30
- test: /\.vue$/,
31
- loader: "vue-loader",
32
- options: {
33
- loaders: {
34
- // Since sass-loader (weirdly) has SCSS as its default parse mode, we map
35
- // the "scss" and "sass" values for the lang attribute to the right configs here.
36
- // other preprocessors should work out of the box, no loader config like this necessary.
37
- scss: ["vue-style-loader", "css-loader", "sass-loader"],
38
- sass: [
39
- "vue-style-loader",
40
- "css-loader",
41
- "sass-loader?indentedSyntax"
42
- ]
43
- }
44
- // other vue-loader options go here
45
- }
46
- },
47
- {
48
- test: /\.js$/,
49
- loader: "babel-loader",
50
- exclude: /node_modules/
51
- },
52
- {
53
- test: /\.(png|jpg|gif|svg|woff|ttf)$/,
54
- loader: "file-loader",
55
- options: {
56
- name: "[name].[ext]?[hash]"
57
- }
58
- },
59
- ]
60
- },
61
- resolve: {
62
- alias: {
63
- vue$: "vue/dist/vue.esm.js"
64
- },
65
- extensions: ["*", ".js", ".vue", ".json"]
66
- },
67
- devServer: {
68
- historyApiFallback: true,
69
- noInfo: true,
70
- overlay: true
71
- },
72
- performance: {
73
- hints: false
74
- },
75
- devtool: "#eval-source-map"
76
- };
77
-
78
- if (process.env.NODE_ENV === "production") {
79
- module.exports.devtool = "#source-map";
80
- // http://vue-loader.vuejs.org/en/workflow/production.html
81
- module.exports.plugins = (module.exports.plugins || []).concat([
82
- new webpack.DefinePlugin({
83
- "process.env": {
84
- NODE_ENV: '"production"'
85
- }
86
- }),
87
- new webpack.optimize.UglifyJsPlugin({
88
- sourceMap: true,
89
- compress: {
90
- warnings: false
91
- }
92
- }),
93
- new webpack.LoaderOptionsPlugin({
94
- minimize: true
95
- })
96
- ]);
97
- }