refactor: remove mock-fs from dev dependency

This commit is contained in:
harttle
2019-02-19 22:28:27 +08:00
parent f432aade6a
commit 852c6ad453
70 changed files with 711 additions and 795 deletions
+1 -4
View File
@@ -1,4 +1,3 @@
import { assign } from 'src/util/underscore'
import html from './html'
import str from './string'
import math from './math'
@@ -7,6 +6,4 @@ import array from './array'
import date from './date'
import obj from './object'
const filters = assign({}, html, str, math, url, date, obj, array)
export default filters
export default { ...html, ...str, ...math, ...url, ...date, ...obj, ...array }
+1 -1
View File
@@ -45,7 +45,7 @@ export default {
if (this.with) {
hash[filepath] = evalValue(this.with, scope)
}
const templates = await this.liquid.getTemplate(filepath, scope.opts.root)
const templates = await this.liquid.getTemplate(filepath, scope.opts)
scope.push(hash)
const html = await this.liquid.renderer.renderTemplates(templates, scope)
scope.pop(hash)
+1 -1
View File
@@ -31,7 +31,7 @@ export default {
if (scope.blocks[''] === undefined) {
scope.blocks[''] = html
}
const templates = await this.liquid.getTemplate(layout, scope.opts.root)
const templates = await this.liquid.getTemplate(layout, scope.opts)
scope.push(hash)
scope.blockMode = BlockMode.OUTPUT
const partial = await this.liquid.renderer.renderTemplates(templates, scope)