Skip to content

Commit

Permalink
:trollface: Version: 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
VandeurenGlenn committed Jul 20, 2017
1 parent e6aade6 commit dff3495
Show file tree
Hide file tree
Showing 27 changed files with 23,745 additions and 12,385 deletions.
441 changes: 314 additions & 127 deletions bin/backed.js

Large diffs are not rendered by default.

18 changes: 12 additions & 6 deletions bin/workers/watcher-worker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

'use strict';
const webup = require('webup');
const builder = require('backed-builder');
const fs = require('backed-fs');
const logger = require('backed-logger');
Expand All @@ -8,13 +9,18 @@ process.on('message', message => {
const task = message.task;
switch (task) {
case 'build':
builder.build(config).then(() => {
process.send('reload');
});
if (config.fragments) {
webup(config).then(() => {
process.send('reload');
});
} else {
builder.build(config).then(() => {
process.send('reload');
});
}
break;
case 'copy':
case 'sources':
fs.copySources(config.sources).then(() => {
fs.copySources(config.copy).then(() => {
logger.succes(`${config.name}::copy finished`);
process.send('done');
});
Expand Down
2 changes: 1 addition & 1 deletion config/async-backed.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
}
}
],
"sources": [{
"copy": [{
"src": ["node_modules/babel-runtime/helpers/{classCallCheck,createClass,regenerator,asyncGenerator}*.js", "node_modules/babel-runtime/regenerator/*.js"],
"dest": "dist/node_modules"
}, {
Expand Down
2 changes: 1 addition & 1 deletion config/backed.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"format": "es",
"sourceMap": true,
"sources": {
"copy": {
"src": ["*/templates/*"],
"dest": "dist/templates"
},
Expand Down
2 changes: 1 addition & 1 deletion config/next-backed.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}
}
],
"sources": [
"copy": [
{
"src": [
"src/html/{behaviors,components,sources,styles}/**/**/*",
Expand Down
Loading

0 comments on commit dff3495

Please sign in to comment.