Skip to content

Commit

Permalink
update release
Browse files Browse the repository at this point in the history
  • Loading branch information
wuxingtao committed May 14, 2020
1 parent 590f67f commit 63a69a5
Show file tree
Hide file tree
Showing 44 changed files with 27 additions and 10 deletions.
Empty file modified .editorconfig
100644 → 100755
Empty file.
Empty file modified .eslintignore
100644 → 100755
Empty file.
Empty file modified .gitattributes
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified .travis.yml
100644 → 100755
Empty file.
Empty file modified .yo-rc.json
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified NOTE.md
100644 → 100755
Empty file.
Empty file modified __tests__/app.js
100644 → 100755
Empty file.
Empty file modified __tests__/app.js.rej
100644 → 100755
Empty file.
Empty file modified __tests__/app_backup.js
100644 → 100755
Empty file.
Empty file modified generators/app/config/index.js
100644 → 100755
Empty file.
Empty file modified generators/app/index.js
100644 → 100755
Empty file.
Empty file modified generators/app/index_default.js
100644 → 100755
Empty file.
Empty file modified generators/app/prompts.js
100644 → 100755
Empty file.
Empty file modified generators/app/templates/common/react_package.json
100644 → 100755
Empty file.
Empty file modified generators/app/templates/common/vue_package.json
100644 → 100755
Empty file.
Empty file modified generators/app/templates/dummyfile.txt
100644 → 100755
Empty file.
8 changes: 6 additions & 2 deletions generators/app/templates/react/.babelrc
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@
],
"@babel/preset-react"
],
"plugins": ["@babel/plugin-syntax-dynamic-import"],
"plugins": [
"@babel/plugin-syntax-dynamic-import",
["@babel/plugin-proposal-decorators",{ "legacy": true}],
"@babel/plugin-proposal-class-properties"
],
"env": {
"test": {}
}
}
}
9 changes: 9 additions & 0 deletions generators/app/templates/react/README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
# About

## babel dependence config
```js
// add for es6 class
"@babel/plugin-proposal-class-properties"
// add for es7 decorators
"@babel/plugin-proposal-decorators"
// add for import modules
"@babel/plugin-syntax-dynamic-import"
```
Empty file modified generators/app/templates/react/_.gitignore
100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions generators/app/templates/react/_package.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
},
"devDependencies": {
"@babel/core": "^7.6.2",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-decorators": "^7.8.3",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/plugin-transform-runtime": "^7.6.2",
"@babel/preset-env": "^7.6.2",
Expand Down
Empty file modified generators/app/templates/react/package.json
100644 → 100755
Empty file.
Empty file modified generators/app/templates/react/src/App.css
100644 → 100755
Empty file.
Empty file modified generators/app/templates/react/src/App.js
100644 → 100755
Empty file.
Empty file modified generators/app/templates/react/src/_App.js
100644 → 100755
Empty file.
Empty file modified generators/app/templates/react/src/index.html
100644 → 100755
Empty file.
Empty file modified generators/app/templates/react/src/redux/store/index.js
100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions generators/app/templates/react/webpack/build/webpack.base.conf.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ module.exports = {
module: {
rules: [
{
test: /\.jsx?$/,
test: /\.(js|jsx)?$/,
exclude: /node_modules/,
loader: 'babel-loader'
},
{
test: /\.scss$/,
loader: ['css-loader','sass-loader']
test: /\.(scss|sass)?$/,
loader: ['style-loader', 'css-loader', 'sass-loader']
},
{
test: /\.less$/,
Expand Down
5 changes: 3 additions & 2 deletions generators/app/templates/react/webpack/config/resolve.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ const path = require('path');

const resolveConfig = {
alias: {
'@src': path.resolve(__dirname, '../../src'),
'@': path.resolve(__dirname, '../../src'),
'@assets': path.resolve(__dirname, '../../ASSETS'),
'@build': path.resolve(__dirname, '../../build')
}
},
extensions:['.js','.jsx','.ts','.tsx','.json']
};

exports.getResolve = function () {
Expand Down
Empty file modified generators/app/templates/react/webpack/dist/index.html
100644 → 100755
Empty file.
Empty file modified generators/app/templates/vue/.babelrc
100644 → 100755
Empty file.
Empty file modified generators/app/templates/vue/_.gitignore
100644 → 100755
Empty file.
Empty file modified generators/app/templates/vue/_package.json
100644 → 100755
Empty file.
Empty file modified generators/app/templates/vue/package.json
100644 → 100755
Empty file.
Empty file modified generators/app/templates/vue/src/App.css
100644 → 100755
Empty file.
Empty file modified generators/app/templates/vue/src/App.vue
100644 → 100755
Empty file.
Empty file modified generators/app/templates/vue/src/index.html
100644 → 100755
Empty file.
Empty file modified generators/app/templates/vue/src/views/Home.vue
100644 → 100755
Empty file.
Empty file modified generators/app/templates/vue/src/vuex/modules/global.js
100644 → 100755
Empty file.
5 changes: 3 additions & 2 deletions generators/app/templates/vue/webpack/config/resolve.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ const path = require('path');

const resolveConfig = {
alias: {
'@src': path.resolve(__dirname, '../../src'),
'@': path.resolve(__dirname, '../../src'),
'@assets': path.resolve(__dirname, '../../ASSETS'),
'@build': path.resolve(__dirname, '../../build')
}
},
extensions:['.js','.jsx','.ts','.tsx','.json']
};

exports.getResolve = function () {
Expand Down
Empty file modified generators/app/templates/vue/webpack/dist/index.html
100644 → 100755
Empty file.
Empty file modified generators/app/utils.js
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion package-lock.json
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 63a69a5

Please sign in to comment.