forked from guardian/scribe-plugin-curly-quotes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Plumbing.js
33 lines (30 loc) · 877 Bytes
/
Plumbing.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* Warning: shameless self-plug!
* Plumber is the Guardian’s tool of choice for build systems.
* https://github.com/plumberjs/plumber
*/
var all = require('plumber-all');
var glob = require('plumber-glob');
var requireJS = require('plumber-requirejs');
var uglifyJS = require('plumber-uglifyjs');
var write = require('plumber-write');
module.exports = function (pipelines) {
var toBuildDir = write('./build');
var writeBoth = all(
// Send the resource along these branches
[uglifyJS(), toBuildDir],
toBuildDir
);
pipelines['build'] = [
glob('src/scribe-plugin-curly-quotes.js'),
requireJS({
// FIXME: auto?
preserveLicenseComments: false,
paths: {
'scribe-common': '../bower_components/scribe-common',
'lodash-amd': '../bower_components/lodash-amd',
}
}),
writeBoth
];
};