UNPKG

pp-parachute

Version:
80 lines (60 loc) 1.96 kB
//not working code import { Parachute, Typescript, Harness, Templates } from 'parachute'; import { PillpackDropship } from 'pillpack_dropship'; Parachute.StandardApplication('Docupack'); Parachute.Application('Docupack'); Dropship.Bundler('ppTypescript', Typescript({})); Parachute.Bundler('ppTypescript', function(ts, extend) { extend('typescript'); }); Parachute.Environment('dev', function(env, extend) { extend('base'); env.output('./dist'); env.serve('views/index', '/dev/'); env.use(AngularTemplates({ module: 'Templates' })); env.use(TypeScript({ skipParsing: ['**/angular.js'] })); env.use(Scss({})); env.use(Harness({})); env.onFailure(); env.onSuccess(); }); Parachute.DevEnvironment(); Parachute.TestEnvironment(); Parachute.ProductionEnvironment(); var ppTypescript = new ScriptBundler([]); module.exports = Parachute.Application('Docupack', function(app) { app.environment('base', function(env) { env.use(ppTypescript()); env.use(ppScss()); env.use(ppHaml()); // combines haml compilation w/ templates env.output('./dist'); }); app.environment('dev', function(env, extend) { extend('base'); env.serve('views/index', '/whatever'); //env.watched(true); -- served sets watched to true env.onSuccess(env.reload); //all we need for reload is to send message over websocket to refresh env.onFailure(env.showErrors); }); app.environment('unit', function(env, extend) { extend('base'); }); app.environment('production', function(env, extend) { extend('base'); env.output('some/rails/path'); env.exclude('**/_**'); }); }); //dropship unit //where do things go? //how are things processed? //what is excluded? //where are things served? //what html file to serve? //what happens on error? //live reload // extensions -- generator & stuff