0.1.1 • Published 7 years ago
adjective v0.1.1
Adjective
A blazing fast, dead simple, no-config build system.
Warning: under development — use at your own risk
Installation
npm install adjective --save-dev
Usage
adj build
API
config.js
module.exports = {
source: 'src', // folder from which files will be read
destination: 'build', // folder to which files will be written
ignore: /.*/, // regex or function applied to each file's path to determine if it's run through adjective. Matched files aren't watched; a transform should be used to filter out any source files that shouldn't be written to the destination
transforms: [ // array of transformations to be applied to each file
require('adjective-filter')()
]
};
transform
const transform = require('adjective/transform');
module.exports = transform(
'.js',
(file, callback) => {
// ...
}
);