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