Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
fix(builder): chain builds
Browse files Browse the repository at this point in the history
  • Loading branch information
cdaringe committed Oct 28, 2017
1 parent 8292f8c commit aa43390
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,10 @@ module.exports = {
},
async styleguideServer () {
await this.build()
const recompileCss = debounce(async path => {
var compileChain = Promise.resolve() // poor mains queueing
const recompileCss = debounce(path => {
console.log(`${path} changed`)
this.buildSemantic()
compileChain = compileChain.then(() => this.buildSemantic())
}, 1000)
const watcher = chokidar.watch(this.twSuiThemeSrcPath)
watcher.on('ready', () => {
Expand Down

0 comments on commit aa43390

Please sign in to comment.