Upgrade Project (#128)

**- Summary**
- upgrade to babel 7
- upgrade to eslint 5 (removed invalid rules too)
- updated other dependencies

**- Description for the changelog**

build: update dependencies
This commit is contained in:
Sibiraj 2018-11-02 00:46:16 +05:30 committed by Shawn Erquhart
parent ccf569a43d
commit ac87742c7f
6 changed files with 7260 additions and 6139 deletions

View File

@ -1,7 +1,9 @@
{ {
"presets": ["env"], "presets": [
"@babel/preset-env"
],
"plugins": [ "plugins": [
"syntax-object-rest-spread", "@babel/plugin-syntax-object-rest-spread",
"transform-object-rest-spread" "@babel/plugin-proposal-object-rest-spread"
] ]
} }

View File

@ -3,25 +3,10 @@ env:
parser: babel-eslint parser: babel-eslint
plugins: [ "import" ] parserOptions:
ecmaVersion": 6
# enable ECMAScript features plugins: [ "import" ]
ecmaFeatures:
arrowFunctions: true
binaryLiterals: true
blockBindings: true
classes: true
defaultParams: true
destructuring: true
forOf: true
generators: true
jsx: true
modules: true
objectLiteralShorthandMethods: true
objectLiteralShorthandProperties: true
octalLiterals: true
spread: true
templateStrings: true
rules: rules:
# Possible Errors # Possible Errors

View File

@ -6,7 +6,7 @@ import pluginError from "plugin-error";
import flatten from "gulp-flatten"; import flatten from "gulp-flatten";
import postcss from "gulp-postcss"; import postcss from "gulp-postcss";
import cssImport from "postcss-import"; import cssImport from "postcss-import";
import cssnext from "postcss-cssnext"; import postcssPresetEnv from "postcss-preset-env";
import BrowserSync from "browser-sync"; import BrowserSync from "browser-sync";
import webpack from "webpack"; import webpack from "webpack";
import webpackConfig from "./webpack.conf"; import webpackConfig from "./webpack.conf";
@ -32,7 +32,7 @@ gulp.task("build-preview", ["css", "js", "fonts"], (cb) => buildSite(cb, hugoArg
// Compile CSS with PostCSS // Compile CSS with PostCSS
gulp.task("css", () => ( gulp.task("css", () => (
gulp.src("./src/css/*.css") gulp.src("./src/css/*.css")
.pipe(postcss([cssImport({from: "./src/css/main.css"}), cssnext()])) .pipe(postcss([cssImport({from: "./src/css/main.css"}), postcssPresetEnv()]))
.pipe(gulp.dest("./dist/css")) .pipe(gulp.dest("./dist/css"))
.pipe(browserSync.stream()) .pipe(browserSync.stream())
)); ));

8348
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -14,36 +14,36 @@
}, },
"author": "", "author": "",
"license": "MIT", "license": "MIT",
"dependencies": { "devDependencies": {
"babel-core": "^6.26.0", "@babel/core": "^7.1.2",
"babel-eslint": "^8.2.3", "@babel/plugin-proposal-class-properties": "^7.1.0",
"babel-loader": "^7.1.4", "@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"babel-plugin-syntax-object-rest-spread": "^6.13.0", "@babel/plugin-syntax-object-rest-spread": "^7.0.0",
"babel-plugin-transform-class-properties": "^6.10.2", "@babel/plugin-transform-object-assign": "^7.0.0",
"babel-plugin-transform-object-assign": "^6.8.0", "@babel/preset-env": "^7.1.0",
"babel-plugin-transform-object-rest-spread": "^6.8.0", "@babel/register": "^7.0.0",
"babel-preset-env": "^1.6.1", "babel-eslint": "^10.0.1",
"babel-register": "^6.11.6", "babel-loader": "^8.0.4",
"browser-sync": "^2.23.7", "browser-sync": "^2.26.3",
"css-loader": "^1.0.0", "css-loader": "^1.0.1",
"eslint": "^4.19.1", "eslint": "^5.8.0",
"eslint-plugin-import": "^2.11.0", "eslint-plugin-import": "^2.14.0",
"exports-loader": "^0.7.0", "exports-loader": "^0.7.0",
"fancy-log": "^1.3.2", "fancy-log": "^1.3.2",
"file-loader": "^2.0.0", "file-loader": "^2.0.0",
"gulp": "^3.9.1", "gulp": "^3.9.1",
"gulp-babel": "^7.0.1", "gulp-babel": "^8.0.0",
"gulp-flatten": "^0.4.0", "gulp-flatten": "^0.4.0",
"gulp-postcss": "^7.0.1", "gulp-postcss": "^8.0.0",
"gulp-watch": "^5.0.0", "gulp-watch": "^5.0.1",
"hugo-bin": "^0.30.0", "hugo-bin": "^0.37.0",
"imports-loader": "^0.8.0", "imports-loader": "^0.8.0",
"plugin-error": "^1.0.1", "plugin-error": "^1.0.1",
"postcss-cssnext": "^3.1.0", "postcss-preset-env": "^6.3.0",
"postcss-import": "^12.0.0", "postcss-import": "^12.0.1",
"url-loader": "^1.0.1", "url-loader": "^1.1.2",
"webpack": "4.17.1", "webpack": "4.23.1",
"whatwg-fetch": "^2.0.4" "whatwg-fetch": "^3.0.0"
}, },
"resolutions": { "resolutions": {
"natives": "1.1.3" "natives": "1.1.3"

4932
yarn.lock

File diff suppressed because it is too large Load Diff