format source
authorDan Allen <dan@opendevise.com>
Sat, 11 Apr 2020 09:28:56 +0000 (03:28 -0600)
committerDan Allen <dan@opendevise.com>
Sat, 11 Apr 2020 09:29:57 +0000 (03:29 -0600)
gulp.d/tasks/pack.js
gulpfile.js
src/js/02-on-this-page.js

index 46c03f6..a2f1957 100644 (file)
@@ -5,6 +5,4 @@ const zip = require('gulp-vinyl-zip')
 const path = require('path')
 
 module.exports = (src, dest, bundleName) => () =>
-  vfs
-    .src('**/*', { base: src, cwd: src })
-    .pipe(zip.dest(path.join(dest, `${bundleName}-bundle.zip`)))
+  vfs.src('**/*', { base: src, cwd: src }).pipe(zip.dest(path.join(dest, `${bundleName}-bundle.zip`)))
index a60bd19..adce4c4 100644 (file)
@@ -53,7 +53,11 @@ const formatTask = createTask({
 const buildTask = createTask({
   name: 'build',
   desc: 'Build and stage the UI assets for bundling',
-  call: task.build(srcDir, destDir, process.argv.slice(2).some((name) => name.startsWith('preview'))),
+  call: task.build(
+    srcDir,
+    destDir,
+    process.argv.slice(2).some((name) => name.startsWith('preview'))
+  ),
 })
 
 const bundleBuildTask = createTask({
index c568555..3946a5a 100644 (file)
       var lastIdx = headings.length - 1
       headings.forEach(function (heading, idx) {
         var fragment = '#' + heading.id
-        if (idx === lastIdx ||
-            heading.getBoundingClientRect().top + getStyleValueAsInt(heading, 'paddingTop') > targetPosition) {
+        if (
+          idx === lastIdx ||
+          heading.getBoundingClientRect().top + getStyleValueAsInt(heading, 'paddingTop') > targetPosition
+        ) {
           activeFragments.push(fragment)
           if (lastActiveFragment.indexOf(fragment) < 0) links[fragment].classList.add('is-active')
         } else if (~lastActiveFragment.indexOf(fragment)) {