Skip to content

Commit

Permalink
Merge branch 'release/1.6.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
levimcg committed May 29, 2019
2 parents 57307ff + 8f218b4 commit a59c7b9
Show file tree
Hide file tree
Showing 32 changed files with 3,535 additions and 1,937 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ aliases:
# Cache Management
- &restore-node-modules
keys:
- v1-node-modules-{{ checksum "package.json" }}
- v2-node-modules-{{ checksum "package.json" }}

- &save-node-modules
paths:
- node_modules
key: v1-node-modules-{{ checksum "package.json" }}
key: v2-node-modules-{{ checksum "package.json" }}

# Branch Filtering
- &filter-only-master
Expand All @@ -40,7 +40,7 @@ aliases:
defaults: &defaults
working_directory: ~/rivet-source
docker:
- image: circleci/node:7.10
- image: circleci/node:10

jobs:
build:
Expand Down
18 changes: 0 additions & 18 deletions .eslintrc

This file was deleted.

3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
'extends': 'eslint-config-rivet'
}
15 changes: 13 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,19 @@ function prefixReleaseCSS() {
* JS tasks
*/

function lintJS() {
function lintJSWatch() {
return src(["src/js/**/*.js", "!node_modules/**", "!src/js/vendor.js"])
.pipe(eslint())
.pipe(eslint.format());
}

function lintJSBuild() {
return src(["src/js/**/*.js", "!node_modules/**", "!src/js/vendor.js"])
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError());
}

function concatJS() {
return src([
"src/js/polyfills/closest.js",
Expand All @@ -132,7 +139,7 @@ function vendorJS() {
}

function watchJS(callback) {
watch("src/js/**/*.js", { ignoreInitial: false }, series(concatJS, vendorJS));
watch("src/js/**/*.js", { ignoreInitial: false }, series(lintJSWatch, concatJS, vendorJS));
callback();
}

Expand Down Expand Up @@ -214,6 +221,7 @@ function example(callback) {

exports.release = series(
compileSass,
lintJSBuild,
concatJS,
compileCSS,
prefixReleaseCSS,
Expand All @@ -229,6 +237,7 @@ exports.release = series(

exports.build = series(
compileSass,
lintJSBuild,
concatJS,
vendorJS,
fractalBuild,
Expand All @@ -239,6 +248,7 @@ exports.fractalBuild = fractalBuild;

exports.headless = series(compileSass,
lintSass,
lintJSWatch,
concatJS,
fractalHeadless,
watchSass,
Expand All @@ -248,6 +258,7 @@ exports.headless = series(compileSass,
exports.default = series(
compileSass,
lintSass,
lintJSWatch,
concatJS,
fractalStart,
watchSass,
Expand Down
Loading

0 comments on commit a59c7b9

Please sign in to comment.