Moved the lib folder into content

This commit is contained in:
Jocelyn Badgley (Twipped) 2020-02-28 10:31:13 -08:00
parent 823f662743
commit e80428ec2b
17 changed files with 11 additions and 11 deletions

View File

@ -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 ];

View File

@ -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');

View File

@ -31,14 +31,14 @@ const markdownEngines = {
permalinkSymbol: '<img src="/images/svg/paragraph.svg">',
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) {

View File

@ -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');

View File

@ -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');

View File

@ -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');

View File

@ -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);

View File

@ -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');

View File

@ -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');

View File

@ -1,4 +1,4 @@
const glob = require('../lib/glob');
const glob = require('./lib/glob');
const { ROOT } = require('./resolve');
const actions = require('./actions');