Skip to content
This repository has been archived by the owner on Dec 24, 2021. It is now read-only.

Commit

Permalink
Upgrade Project (#128)
Browse files Browse the repository at this point in the history
**- 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 ac87742
Show file tree
Hide file tree
Showing 6 changed files with 7,317 additions and 6,196 deletions.
8 changes: 5 additions & 3 deletions .babelrc
@@ -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"
]
}
21 changes: 3 additions & 18 deletions .eslintrc → .eslintrc.yml
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions gulpfile.babel.js
Expand Up @@ -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";
Expand All @@ -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())
));
Expand Down

0 comments on commit ac87742

Please sign in to comment.