diff --git a/gulp/content/asset.js b/gulp/content/asset.js index c4a31ba..7103f9a 100644 --- a/gulp/content/asset.js +++ b/gulp/content/asset.js @@ -4,7 +4,7 @@ const { pick } = require('lodash'); const actions = require('./actions'); const File = require('./file'); const { TYPE } = require('./resolve'); -const getImageDimensions = require('../lib/dimensions'); +const getImageDimensions = require('./lib/dimensions'); const getVideoDimensions = require('get-video-dimensions'); const RESOLUTIONS = [ 2048, 1024, 768, 576, 300, 100 ]; diff --git a/gulp/content/cache.js b/gulp/content/cache.js index c21de80..91fa7c6 100644 --- a/gulp/content/cache.js +++ b/gulp/content/cache.js @@ -4,7 +4,7 @@ const fs = require('fs-extra'); const { memoize: memoizeSync } = require('lodash'); const memoizeAsync = require('memoizepromise'); const { resolve, readFile } = require('./resolve'); -const { hasOwn, isFunction } = require('../lib/util'); +const { hasOwn, isFunction } = require('./lib/util'); const revHash = require('rev-hash'); const revPath = require('rev-path'); diff --git a/gulp/content/engines.js b/gulp/content/engines.js index cdbf80a..cf756a8 100644 --- a/gulp/content/engines.js +++ b/gulp/content/engines.js @@ -31,14 +31,14 @@ const markdownEngines = { permalinkSymbol: '', slugify, }) - .use(require('../lib/markdown-raw-html')), + .use(require('./lib/markdown-raw-html')), preview: markdownIt({ html: false, linkify: false, typographer: true, }) - .use(require('../lib/markdown-token-filter')), + .use(require('./lib/markdown-token-filter')), }; function markdown (mode, input, env) { diff --git a/gulp/lib/dimensions.js b/gulp/content/lib/dimensions.js similarity index 100% rename from gulp/lib/dimensions.js rename to gulp/content/lib/dimensions.js diff --git a/gulp/lib/glob.js b/gulp/content/lib/glob.js similarity index 100% rename from gulp/lib/glob.js rename to gulp/content/lib/glob.js diff --git a/gulp/lib/markdown-raw-html.js b/gulp/content/lib/markdown-raw-html.js similarity index 100% rename from gulp/lib/markdown-raw-html.js rename to gulp/content/lib/markdown-raw-html.js diff --git a/gulp/lib/markdown-token-filter.js b/gulp/content/lib/markdown-token-filter.js similarity index 100% rename from gulp/lib/markdown-token-filter.js rename to gulp/content/lib/markdown-token-filter.js diff --git a/gulp/lib/random.js b/gulp/content/lib/random.js similarity index 100% rename from gulp/lib/random.js rename to gulp/content/lib/random.js diff --git a/gulp/lib/tweetparse.js b/gulp/content/lib/tweetparse.js similarity index 100% rename from gulp/lib/tweetparse.js rename to gulp/content/lib/tweetparse.js diff --git a/gulp/lib/util.js b/gulp/content/lib/util.js similarity index 100% rename from gulp/lib/util.js rename to gulp/content/lib/util.js diff --git a/gulp/content/page-tweets.js b/gulp/content/page-tweets.js index e0dd8e7..a4b57a8 100644 --- a/gulp/content/page-tweets.js +++ b/gulp/content/page-tweets.js @@ -2,7 +2,7 @@ const { chunk, uniq, difference } = require('lodash'); const fs = require('fs-extra'); const { resolve } = require('./resolve'); const log = require('fancy-log'); -const tweetparse = require('../lib/tweetparse'); +const tweetparse = require('./lib/tweetparse'); const Twitter = require('twitter-lite'); diff --git a/gulp/content/page.js b/gulp/content/page.js index 119c346..79cc243 100644 --- a/gulp/content/page.js +++ b/gulp/content/page.js @@ -7,7 +7,7 @@ const File = require('./file'); const actions = require('./actions'); const { URL } = require('url'); const { resolve, readFile, isCleanUrl, ENGINE } = require('./resolve'); -const { isObject } = require('../lib/util'); +const { isObject } = require('./lib/util'); const pkg = require(resolve('package.json')); const frontmatter = require('front-matter'); diff --git a/gulp/content/public.js b/gulp/content/public.js index 6eff3b5..2be0ac8 100644 --- a/gulp/content/public.js +++ b/gulp/content/public.js @@ -1,4 +1,4 @@ -const glob = require('../lib/glob'); +const glob = require('./lib/glob'); const { groupBy, keyBy, filter, find, get, memoize } = require('lodash'); const { ROOT, kind, KIND } = require('./resolve'); const File = require('./file'); diff --git a/gulp/content/resolve.js b/gulp/content/resolve.js index a44072c..8dc5647 100644 --- a/gulp/content/resolve.js +++ b/gulp/content/resolve.js @@ -2,7 +2,7 @@ const path = require('path'); const ROOT = path.resolve(__dirname, '../..'); const fs = require('fs-extra'); -const { is: _is } = require('../lib/util'); +const { is: _is } = require('./lib/util'); function is (...args) { const fn = _is(...args); diff --git a/gulp/content/scripts.js b/gulp/content/scripts.js index 04d6210..51ddfd4 100644 --- a/gulp/content/scripts.js +++ b/gulp/content/scripts.js @@ -1,4 +1,4 @@ -const glob = require('../lib/glob'); +const glob = require('./lib/glob'); const { ROOT, readFile } = require('./resolve'); const actions = require('./actions'); const File = require('./file'); diff --git a/gulp/content/scss.js b/gulp/content/scss.js index 4802423..226604b 100644 --- a/gulp/content/scss.js +++ b/gulp/content/scss.js @@ -1,4 +1,4 @@ -const glob = require('../lib/glob'); +const glob = require('./lib/glob'); const { ROOT, readFile, resolve } = require('./resolve'); const actions = require('./actions'); const File = require('./file'); diff --git a/gulp/content/svg.js b/gulp/content/svg.js index 7da8eb7..6519488 100644 --- a/gulp/content/svg.js +++ b/gulp/content/svg.js @@ -1,4 +1,4 @@ -const glob = require('../lib/glob'); +const glob = require('./lib/glob'); const { ROOT } = require('./resolve'); const actions = require('./actions');