mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-26 09:03:48 +08:00
babel 6 -> 7
This commit is contained in:
parent
379d012b1f
commit
26c507398f
4 changed files with 1159 additions and 1368 deletions
7
Makefile
7
Makefile
|
@ -57,6 +57,13 @@ rl-build:
|
|||
rl-build-pro:
|
||||
@docker-compose run --no-deps --rm node gulp all --pro
|
||||
|
||||
yarn-install:
|
||||
@docker-compose run --no-deps --rm node yarn install
|
||||
yarn-outdated:
|
||||
@docker-compose run --no-deps --rm node yarn outdated
|
||||
yarn-upgrade:
|
||||
@docker-compose run --no-deps --rm node yarn upgrade-interactive --exact --latest
|
||||
|
||||
gpg:
|
||||
docker run -it --rm -w=/var/www \
|
||||
-v $(shell pwd)/.docker/.cache/.gnupg:/root/.gnupg \
|
||||
|
|
30
package.json
30
package.json
|
@ -49,27 +49,27 @@
|
|||
"firefox esr"
|
||||
],
|
||||
"devDependencies": {
|
||||
"autolinker": "1.7.0",
|
||||
"babel-core": "6.26.3",
|
||||
"babel-eslint": "8.2.6",
|
||||
"babel-loader": "7.1.5",
|
||||
"babel-plugin-transform-decorators-legacy": "1.3.5",
|
||||
"babel-plugin-transform-runtime": "6.23.0",
|
||||
"babel-preset-env": "1.7.0",
|
||||
"babel-preset-stage-0": "6.24.1",
|
||||
"babel-runtime": "6.26.0",
|
||||
"@babel/core": "7.1.0",
|
||||
"@babel/plugin-proposal-class-properties": "7.1.0",
|
||||
"@babel/plugin-proposal-decorators": "7.1.0",
|
||||
"@babel/plugin-transform-runtime": "7.1.0",
|
||||
"@babel/preset-env": "7.1.0",
|
||||
"@babel/runtime-corejs2": "7.0.0",
|
||||
"autolinker": "1.7.1",
|
||||
"babel-eslint": "9.0.0",
|
||||
"babel-loader": "8.0.2",
|
||||
"classnames": "2.2.6",
|
||||
"copy-webpack-plugin": "4.5.2",
|
||||
"element-dataset": "2.2.6",
|
||||
"emailjs-addressparser": "2.0.2",
|
||||
"es6-object-assign": "1.1.0",
|
||||
"es6-promise-polyfill": "1.2.0",
|
||||
"eslint": "5.2.0",
|
||||
"eslint": "5.6.0",
|
||||
"gulp": "3.9.1",
|
||||
"gulp-autoprefixer": "5.0.0",
|
||||
"gulp-autoprefixer": "6.0.0",
|
||||
"gulp-cached": "1.1.1",
|
||||
"gulp-chmod": "2.0.0",
|
||||
"gulp-clean-css": "3.9.4",
|
||||
"gulp-clean-css": "3.10.0",
|
||||
"gulp-concat-util": "0.5.5",
|
||||
"gulp-eol": "0.2.0",
|
||||
"gulp-eslint": "5.0.0",
|
||||
|
@ -78,7 +78,7 @@
|
|||
"gulp-header": "2.0.5",
|
||||
"gulp-if": "2.0.2",
|
||||
"gulp-less": "4.0.1",
|
||||
"gulp-livereload": "3.8.1",
|
||||
"gulp-livereload": "4.0.0",
|
||||
"gulp-notify": "3.2.0",
|
||||
"gulp-plumber": "1.2.0",
|
||||
"gulp-rename": "1.4.0",
|
||||
|
@ -116,9 +116,9 @@
|
|||
"rimraf": "2.6.2",
|
||||
"run-sequence": "2.2.1",
|
||||
"simplestatemanager": "4.1.1",
|
||||
"style-loader": "0.21.0",
|
||||
"style-loader": "0.23.0",
|
||||
"underscore": "1.9.1",
|
||||
"webpack": "4.16.3",
|
||||
"webpack": "4.19.1",
|
||||
"webpack-notifier": "1.6.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,8 +21,11 @@ module.exports = function(publicPath, pro) {
|
|||
filename: '[name].js',
|
||||
publicPath: publicPath || 'rainloop/v/0.0.0/static/'
|
||||
},
|
||||
optimization: {
|
||||
concatenateModules: false,
|
||||
minimize: false
|
||||
},
|
||||
plugins: [
|
||||
// new webpack.optimize.ModuleConcatenationPlugin(),
|
||||
new webpack.DefinePlugin({
|
||||
'RL_COMMUNITY': !pro,
|
||||
'process.env': {
|
||||
|
@ -46,19 +49,29 @@ module.exports = function(publicPath, pro) {
|
|||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.js$/,
|
||||
test: /\.(js|ts)$/,
|
||||
loader: 'babel-loader',
|
||||
include: [devPath],
|
||||
options: {
|
||||
cacheDirectory: true,
|
||||
presets: [['env', {
|
||||
loose: loose,
|
||||
modules: false,
|
||||
targets: {
|
||||
browsers: ['last 3 versions', 'ie >= 9', 'firefox esr']
|
||||
}
|
||||
}], 'stage-0'],
|
||||
plugins: ['transform-runtime', 'transform-decorators-legacy']
|
||||
presets: [
|
||||
['@babel/preset-env', {
|
||||
loose: loose,
|
||||
modules: false,
|
||||
targets: {
|
||||
browsers: ['last 3 versions', 'ie >= 9', 'firefox esr']
|
||||
}
|
||||
}]
|
||||
],
|
||||
plugins: [
|
||||
['@babel/plugin-transform-runtime', {
|
||||
corejs: 2
|
||||
}],
|
||||
['@babel/plugin-proposal-decorators', {
|
||||
legacy: true
|
||||
}],
|
||||
'@babel/plugin-proposal-class-properties'
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue