Closed mcaskill closed 2 years ago
Added:
config.js
loconfig.json
loconfig.local.json
Changed:
template.js
resolve<T>(input: T, data?: object): T
template()
resolveValue(input: string, data?: object): string
watch.js
Example:
// loconfig.json { "paths": { "url": "acme.test", "src": "./assets", "dest": "./www", "images": {/* … */}, "styles": {/* … */}, "scripts": {/* … */}, "svgs": {/* … */}, "views": {/* … */} }, "tasks": { } }
// loconfig.local.json { "paths": { "url": "dev.acme.test" }, "server": { "open": true, "https": { "key": "~/.config/valet/Certificates/{% paths.url %}.key", "cert": "~/.config/valet/Certificates/{% paths.url %}.crt" } } }
Added:
config.js
to mergeloconfig.json
(indexed) andloconfig.local.json
(ignored).Changed:
template.js
to process any template tags (in a string) in objects and arrays.resolve<T>(input: T, data?: object): T
to process objects and arrays.template()
toresolveValue(input: string, data?: object): string
.watch.js
to support customizing the development server (BrowserSync) fromloconfig.json
.Example: