ams
Version:
ams - asset management system - plugin enabled build tool with jquery like API
39 lines (34 loc) • 737 B
JavaScript
var ams = require('ams');
var publ = __dirname + '/public',
src = __dirname + '/src',
host = 'http://localhost:8888';
// build all files except of require.js, because require shouldn't be wrapped into
// transport string in our case
ams.build
.create(src)
.find({
filter: /require\.js/
})
.process({
cssabspath: {
host: host
},
htmlabspath: {
host: host
},
texttransport: false
})
.combine({
js: 'main.js'
})
.write(publ)
.end();
ams.build
.create(src)
.add(src + '/require.js')
.process({
// don't wrap into transport string
jstransport: false
})
.write(publ)
.end();