Package Exports
- patternplate-legacy-defaults
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (patternplate-legacy-defaults) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
patternplate-legacy-defaults
Legacy defaults for patternplate projects migrating from 0.x.
Rationale
patternplate-server dropped default configurations
for .transforms
and .patterns
with the update from 0.18
to 1.0
.
To make migrating from 0.18
easier the former defaults moved to this project.
Installation
Grab it from npm
npm install --save patternplate-legacy-defaults
Usage
Merge legacy transforms default configuration
// configuration/patternplate-server/transforms.js
const defaults = require('patternplate-legacy-defaults');
const merge = require('lodash.merge');
module.exports = merge({}, defaults.transforms, {});
Merge legacy patterns default configuration
// configuration/patternplate-server/patterns.js
const defaults = require('patternplate-legacy-defaults');
const merge = require('lodash.merge');
module.exports = merge({}, defaults.patterns, {});
Released under the MIT License