Skip to content
Permalink
Browse files

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
  • Loading branch information
sibiraj-s authored and erquhart committed Nov 1, 2018
1 parent ccf569a commit ac87742c7f1af4de5fc21d84019b182ecb362027
Showing with 7,317 additions and 6,196 deletions.
  1. +5 −3 .babelrc
  2. +3 −18 .eslintrc → .eslintrc.yml
  3. +2 −2 gulpfile.babel.js
  4. +4,530 −3,986 package-lock.json
  5. +23 −23 package.json
  6. +2,754 −2,164 yarn.lock
@@ -1,7 +1,9 @@
{
"presets": ["env"],
"presets": [
"@babel/preset-env"
],
"plugins": [
"syntax-object-rest-spread",
"transform-object-rest-spread"
"@babel/plugin-syntax-object-rest-spread",
"@babel/plugin-proposal-object-rest-spread"
]
}
@@ -3,25 +3,10 @@ env:

parser: babel-eslint

plugins: [ "import" ]
parserOptions:
ecmaVersion": 6

# enable ECMAScript features
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
plugins: [ "import" ]

rules:
# Possible Errors
@@ -6,7 +6,7 @@ import pluginError from "plugin-error";
import flatten from "gulp-flatten";
import postcss from "gulp-postcss";
import cssImport from "postcss-import";
import cssnext from "postcss-cssnext";
import postcssPresetEnv from "postcss-preset-env";
import BrowserSync from "browser-sync";
import webpack from "webpack";
import webpackConfig from "./webpack.conf";
@@ -32,7 +32,7 @@ gulp.task("build-preview", ["css", "js", "fonts"], (cb) => buildSite(cb, hugoArg
// Compile CSS with PostCSS
gulp.task("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(browserSync.stream())
));

0 comments on commit ac87742

Please sign in to comment.
You can’t perform that action at this time.