Skip to content

Commit 3d4443e

Browse files
committed
🚀Hello, github.
0 parents  commit 3d4443e

File tree

131 files changed

+7056
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+7056
-0
lines changed

.babelrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"presets": [
3+
["es2015"]
4+
]
5+
}

.editorconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
index_size = 2
7+
charset = utf-8
8+
end_of_line = lf
9+
indent_style = space
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
[*.md]
14+
trim_trailing_whitespace = false
15+
16+
[*.js]
17+
index_size = 4
18+
19+
[*.less]
20+
index_size = 2

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.DS_Store
2+
node_modules/
3+
npm-debug.log
4+
/.idea

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015-2016 YDCSS Inc.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# vue-ydui
2+
3+
> A Vue.js project
4+
5+
## Build Setup
6+
7+
``` bash
8+
# install dependencies
9+
npm install
10+
11+
# serve with hot reload at localhost:8080
12+
npm run dev
13+
14+
# build for production with minification
15+
npm run build
16+
```
17+
18+
For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader).

build/base.conf.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
module.exports = {
2+
module: {
3+
loaders: [
4+
{
5+
test: /\.vue$/,
6+
loader: 'vue',
7+
exclude: /node_modules/
8+
},
9+
{
10+
test: /\.js$/,
11+
loader: 'babel',
12+
exclude: /node_modules/
13+
},
14+
{
15+
test: /\.less$/,
16+
loader: 'style!css!less',
17+
exclude: /node_modules/
18+
},
19+
{
20+
test: /\.json$/,
21+
loader: 'json',
22+
exclude: /node_modules/
23+
}
24+
]
25+
},
26+
vue: {
27+
postcss: [
28+
require('autoprefixer')({
29+
browsers: ['Android >= 4', 'Explorer >= 10', 'iOS >= 6'], cascade: false
30+
})
31+
]
32+
}
33+
};

build/webpack.dev.conf.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const path = require('path');
2+
const webpack = require('webpack');
3+
const merge = require('webpack-merge');
4+
const baseWebpackConfig = require('./base.conf');
5+
6+
module.exports = merge(baseWebpackConfig, {
7+
entry: {
8+
main: './example/main.js',
9+
vendors: ['vue', 'vue-router']
10+
},
11+
output: {
12+
path: path.join(__dirname, './dist'),
13+
publicPath: '/dist/',
14+
filename: '[name].js'
15+
},
16+
plugins: [
17+
new webpack.optimize.CommonsChunkPlugin({name: 'vendor', filename: 'vendor.js'})
18+
]
19+
});

build/webpack.prod.conf.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
const path = require('path');
2+
const webpack = require('webpack');
3+
const merge = require('webpack-merge');
4+
const ExtractTextPlugin = require('extract-text-webpack-plugin');
5+
const baseWebpackConfig = require('./base.conf');
6+
const pkg = require('../package.json');
7+
8+
module.exports = merge(baseWebpackConfig, {
9+
entry: {
10+
main: './src/index.js'
11+
},
12+
output: {
13+
path: path.join(__dirname, '../dist'),
14+
publicPath: '/dist/',
15+
filename: 'ydui.js',
16+
library: 'ydui',
17+
libraryTarget: 'umd'
18+
},
19+
externals: {
20+
vue: 'Vue'
21+
},
22+
vue: {
23+
loaders: {
24+
less: ExtractTextPlugin.extract('css!less')
25+
}
26+
},
27+
plugins: [
28+
new webpack.BannerPlugin(pkg.name + ' v' + pkg.version + ' by YDCSS (c) ' + new Date().getFullYear() + ' Licensed ' + pkg.license),
29+
new ExtractTextPlugin('ydui.css'),
30+
new webpack.optimize.UglifyJsPlugin({compress: {warnings: false}}),
31+
new webpack.optimize.OccurenceOrderPlugin()
32+
]
33+
});

dist/ydui.css

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ydui.js

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)