[TASK] Move to v8 promies polyfill & eslint5

This commit is contained in:
Xaver Maierhofer 2018-06-25 20:36:21 +02:00
parent 3085c14c3b
commit ad89c910ab
No known key found for this signature in database
GPG Key ID: 7FDCE23FD2EC9FE8
4 changed files with 499 additions and 419 deletions

View File

@ -4,8 +4,10 @@ module.exports = function (gulp, plugins, config) {
.pipe(gulp.dest(config.build)); .pipe(gulp.dest(config.build));
gulp.src(['assets/logo.svg', 'service-worker.js']) gulp.src(['assets/logo.svg', 'service-worker.js'])
.pipe(gulp.dest(config.build)); .pipe(gulp.dest(config.build));
gulp.src(['node_modules/promise-polyfill/dist/promise.js', 'polyfill.js']) gulp.src(['polyfill.js'])
.pipe(gulp.dest(config.build + '/vendor')); .pipe(gulp.dest(config.build + '/vendor'));
gulp.src(['node_modules/promise-polyfill/dist/polyfill.js'])
.pipe(gulp.dest(config.build + '/vendor/promise'));
return gulp.src(['assets/fonts/*', 'assets/icons/fonts/*']) return gulp.src(['assets/fonts/*', 'assets/icons/fonts/*'])
.pipe(gulp.dest(config.build + '/fonts')); .pipe(gulp.dest(config.build + '/fonts'));
}; };

View File

@ -30,7 +30,7 @@
<!-- contents of html partials will be injected here --> <!-- contents of html partials will be injected here -->
<!-- endinject --> <!-- endinject -->
<script src="vendor/polyfill.js" inline></script> <script src="vendor/polyfill.js" inline></script>
<script src="vendor/promise.js" inline></script> <script src="vendor/promise/polyfill.js" inline></script>
<script src="app.js"></script> <script src="app.js"></script>
</head> </head>
<body> <body>

View File

@ -10,12 +10,12 @@
"url": "https://github.com/ffrgb/meshviewer/issues" "url": "https://github.com/ffrgb/meshviewer/issues"
}, },
"devDependencies": { "devDependencies": {
"babel-eslint": "^8.2.3", "babel-eslint": "^8.2.5",
"browser-sync": "^2.24.4", "browser-sync": "^2.24.5",
"eslint": "^4.18.2", "eslint": "^5.0.0",
"eslint-config-airbnb-es5": "^1.2.0", "eslint-config-airbnb-es5": "^1.2.0",
"eslint-config-defaults": "^9.0.0", "eslint-config-defaults": "^9.0.0",
"eslint-plugin-react": "^7.7.0", "eslint-plugin-react": "^7.10.0",
"gulp": "github:gulpjs/gulp#4.0", "gulp": "github:gulpjs/gulp#4.0",
"gulp-autoprefixer": "^5.0.0", "gulp-autoprefixer": "^5.0.0",
"gulp-cache-bust": "^1.3.0", "gulp-cache-bust": "^1.3.0",
@ -30,7 +30,7 @@
"gulp-real-favicon": "^0.3.0", "gulp-real-favicon": "^0.3.0",
"gulp-requirejs-optimize": "^1.3.0", "gulp-requirejs-optimize": "^1.3.0",
"gulp-sass": "^4.0.1", "gulp-sass": "^4.0.1",
"gulp-sass-lint": "^1.3.4", "gulp-sass-lint": "^1.4.0",
"gulp-sourcemaps": "^2.6.4", "gulp-sourcemaps": "^2.6.4",
"gulp-uglify": "^3.0.0" "gulp-uglify": "^3.0.0"
}, },
@ -49,10 +49,10 @@
"d3-selection": "^1.3.0", "d3-selection": "^1.3.0",
"d3-zoom": "^1.7.1", "d3-zoom": "^1.7.1",
"leaflet": "^1.3.1", "leaflet": "^1.3.1",
"moment": "^2.22.1", "moment": "^2.22.2",
"navigo": "^7.1.2", "navigo": "^7.1.2",
"node-polyglot": "^2.2.2", "node-polyglot": "^2.2.2",
"promise-polyfill": "^7.1.2", "promise-polyfill": "^8.0.0",
"rbush": "^2.0.2", "rbush": "^2.0.2",
"requirejs": "^2.3.5", "requirejs": "^2.3.5",
"snabbdom": "^0.7.1" "snabbdom": "^0.7.1"

898
yarn.lock

File diff suppressed because it is too large Load Diff