Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions .babelrc

This file was deleted.

3 changes: 3 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
> 1%
last 2 versions
not ie <= 8
2 changes: 2 additions & 0 deletions .env.library
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NODE_ENV = production
BUILD_LIB = lib
3 changes: 1 addition & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/build/
/config/
/examples/dist/
/*.js
/test/unit/coverage/
/test/coverage/
29 changes: 11 additions & 18 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,23 @@
// https://eslint.org/docs/user-guide/configuring

module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint'
},
env: {
browser: true,
browser: true
},
extends: [
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
'plugin:vue/essential',
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
'standard'
],
// required to lint *.vue files
plugins: [
'vue'
'extends': [
'plugin:vue/essential',
'@vue/standard'
],
// add your custom rules here
parserOptions: {
parser: 'babel-eslint'
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
// allow async-await
'generator-star-spacing': 'off',
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-unused-expressions': 0
'no-unused-expressions': 0,
'no-tabs': 'off',
'vue/no-side-effects-in-computed-properties': 'off'
}
}
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ $ npm run deploy
- lib:打包后生成的文件
- packages:组件目录,每个组件是一个目录
- src:主文件`index.js`以及一些公用的`mixins`和`utils`
- test:测试用例
- tests:测试用例

### 开发

Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
/test/unit/coverage/
/test/coverage/
.nyc_output

# Editor directories and files
.idea
Expand Down
16 changes: 16 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
presets: [
'@vue/app'
],
plugins: ['transform-vue-jsx', '@babel/plugin-transform-runtime',
['@babel/plugin-transform-modules-commonjs', {
'allowTopLevelThis': true
}] // 用于设置commonjs与es6模块共存
],
env: {
'test': {
'presets': ['@vue/app'],
'plugins': ['transform-vue-jsx', 'istanbul']
}
}
}
2 changes: 1 addition & 1 deletion build/bin/delete.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const files = {
page_file: `examples/pages/${componentname}.vue`,
md_file: `examples/docs/${componentname}.md`,
css_file: `packages/vui-css/src/${componentname}.css`,
test_file: `test/unit/specs/${componentname}.spec.js`
test_file: `tests/unit/specs/${componentname}.spec.js`
}

prompt([{
Expand Down
5 changes: 2 additions & 3 deletions build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ const rm = require('rimraf')
const path = require('path')
const chalk = require('chalk')
const webpack = require('webpack')
const config = require('../config')
const webpackConfig = require('./webpack.build.min')
const webpackConfig = require('../node_modules/@vue/cli-service/webpack.config.js')

const spinner = ora('building for production...')
spinner.start()

rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
rm(path.join(path.resolve(__dirname, '../dist'), 'static'), err => {
if (err) throw err
webpack(webpackConfig, (err, stats) => {
spinner.stop()
Expand Down
100 changes: 0 additions & 100 deletions build/utils.js

This file was deleted.

22 changes: 0 additions & 22 deletions build/vue-loader.conf.js

This file was deleted.

Loading