Skip to content

Commit

Permalink
v2018.4.19-0
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter T Bosse II committed Apr 19, 2018
1 parent 83b1116 commit 98dea54
Show file tree
Hide file tree
Showing 17 changed files with 88 additions and 15 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"packages": [
"packages/*"
],
"version": "2018.4.18-3"
"version": "2018.4.19-0"
}
2 changes: 1 addition & 1 deletion packages/animated-transition/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
"build": "babel src --out-dir . --ignore __tests__",
"watch": "babel -w src --out-dir . --ignore __tests__"
},
"version": "2018.4.18-3"
"version": "2018.4.19-0"
}
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
"postinstall": "npx npm-run-all 'postinstall:*'",
"postinstall:merge": "find '.amory' -maxdepth 1 -name '*.json' -print0 | xargs -0 -I {} -n1 basename '{}' | xargs -I {} -n1 npx -p @ptb/merge-json -c 'merge-json ../../../{} .amory/{}'"
},
"version": "2018.4.18-3"
"version": "2018.4.19-0"
}
2 changes: 1 addition & 1 deletion packages/gatsby-image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@
"prepare": "cross-env NODE_ENV=production npm run build",
"watch": "babel -w src/index.js --out-file index.js --ignore __tests__"
},
"version": "2018.4.18-3"
"version": "2018.4.19-0"
}
2 changes: 1 addition & 1 deletion packages/gatsby-plugin-pug/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"postinstall:merge": "find '.amory' -maxdepth 1 -name '*.json' -print0 | xargs -0 -I {} -n1 basename '{}' | xargs -I {} -n1 npx -p @ptb/merge-json -c 'merge-json ../../../{} .amory/{}'",
"postinstall:setup": "find '.amory' -maxdepth 1 -not -name '.amory' -not -name '*.json' -exec cp -R '{}' '../../../' \\;"
},
"version": "2018.4.18-3"
"version": "2018.4.19-0"
}
2 changes: 1 addition & 1 deletion packages/gatsby-plugin-react-helmet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"postinstall:merge": "find '.amory' -maxdepth 1 -name '*.json' -print0 | xargs -0 -I {} -n1 basename '{}' | xargs -I {} -n1 npx -p @ptb/merge-json -c 'merge-json ../../../{} .amory/{}'",
"postinstall:setup": "find '.amory' -maxdepth 1 -not -name '.amory' -not -name '*.json' -exec cp -R '{}' '../../../' \\;"
},
"version": "2018.4.18-3"
"version": "2018.4.19-0"
}
2 changes: 1 addition & 1 deletion packages/gatsby-plugin-styletron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
"postinstall:merge": "find '.amory' -maxdepth 1 -name '*.json' -print0 | xargs -0 -I {} -n1 basename '{}' | xargs -I {} -n1 npx -p @ptb/merge-json -c 'merge-json ../../../{} .amory/{}'",
"postinstall:setup": "find '.amory' -maxdepth 1 -not -name '.amory' -not -name '*.json' -exec cp -R '{}' '../../../' \\;"
},
"version": "2018.4.18-3"
"version": "2018.4.19-0"
}
2 changes: 1 addition & 1 deletion packages/gatsby-source-filesystem/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@
"prepare": "cross-env NODE_ENV=production npm run build",
"watch": "babel -w src --out-dir . --ignore __tests__"
},
"version": "2018.4.18-3"
"version": "2018.4.19-0"
}
2 changes: 1 addition & 1 deletion packages/gatsby/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
"postinstall:merge": "find '.amory' -maxdepth 1 -name '*.json' -print0 | xargs -0 -I {} -n1 basename '{}' | xargs -I {} -n1 npx -p @ptb/merge-json -c 'merge-json ../../../{} .amory/{}'",
"postinstall:setup": "find '.amory' -maxdepth 1 -not -name '.amory' -not -name '*.json' -exec cp -R '{}' '../../../' \\;"
},
"version": "2018.4.18-3"
"version": "2018.4.19-0"
}
2 changes: 1 addition & 1 deletion packages/git-setup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"postinstall": "npx npm-run-all 'postinstall:*'",
"postinstall:setup": "source autokeep.command 0 && cd ../../../ && autokeep"
},
"version": "2018.4.18-3"
"version": "2018.4.19-0"
}
2 changes: 1 addition & 1 deletion packages/http-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
"postinstall": "npx npm-run-all 'postinstall:*'",
"postinstall:merge": "find '.amory' -maxdepth 1 -name '*.json' -print0 | xargs -0 -I {} -n1 basename '{}' | xargs -I {} -n1 npx -p @ptb/merge-json -c 'merge-json ../../../{} .amory/{}'"
},
"version": "2018.4.18-3"
"version": "2018.4.19-0"
}
2 changes: 1 addition & 1 deletion packages/merge-json/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
"access": "public"
},
"repository": "https://github.com/ptb/amory/tree/master/packages/merge-json",
"version": "2018.4.18-3"
"version": "2018.4.19-0"
}
2 changes: 1 addition & 1 deletion packages/prettier-eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
"postinstall": "npx npm-run-all 'postinstall:*'",
"postinstall:merge": "find '.amory' -maxdepth 1 -name '*.json' -print0 | xargs -0 -I {} -n1 basename '{}' | xargs -I {} -n1 npx -p @ptb/merge-json -c 'merge-json ../../../{} .amory/{}'"
},
"version": "2018.4.18-3"
"version": "2018.4.19-0"
}
58 changes: 58 additions & 0 deletions packages/queue/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
const chokidar = require ("chokidar")
const dir = require ("path").dirname
const Queue = require ("better-queue")

module.exports = (() => {
let queue
let ready = false

const q = () => {
queue =
queue ||
new Queue (
(result, done) => {
done (result)
},
{
"precondition": (done) => {
done (null, ready)
}
}
)
return queue
}

const watch = (opts, fn) => {
opts.ignored = Array.prototype
.concat (opts.ignored, "**/node_modules")
.filter (Boolean)

return chokidar
.watch (opts.src, opts)

.on ("add", (src) =>
q ().push ({ "evt": "add", "obj": "file", src }, fn))
.on ("change", (src) =>
q ().push ({ "evt": "mod", "obj": "file", src }, fn))
.on ("unlink", (src) =>
q ().push ({ "evt": "del", "obj": "file", src }, fn))

.on ("addDir", (src) =>
q ().push ({ "evt": "add", "obj": "dir", src }, fn))
.on ("add", (src) =>
q ().push ({ "evt": "mod", "obj": "dir", "src": dir (src) }, fn))
.on ("unlink", (src) =>
q ().push ({ "evt": "mod", "obj": "dir", "src": dir (src) }, fn))
.on ("unlinkDir", (src) =>
q ().push ({ "evt": "del", "obj": "dir", src }, fn))

.on ("ready", () => {
ready = true
})
}

return {
"queue": q (),
"watch": watch
}
}) ()
15 changes: 15 additions & 0 deletions packages/queue/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"author": "Peter T Bosse II <ptb@ioutime.com> (http://ptb2.me/)",
"dependencies": {
"better-queue": "^3",
"chokidar": "^1"
},
"license": "Apache-2.0",
"main": "index.js",
"name": "@ptb/queue",
"publishConfig": {
"access": "public"
},
"repository": "https://github.com/ptb/amory/tree/master/packages/queue",
"version": "2018.4.19-0"
}
2 changes: 1 addition & 1 deletion packages/sort-json/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
"postinstall": "npx npm-run-all 'postinstall:*'",
"postinstall:merge": "find '.amory' -maxdepth 1 -name '*.json' -print0 | xargs -0 -I {} -n1 basename '{}' | xargs -I {} -n1 npx -p @ptb/merge-json -c 'merge-json ../../../{} .amory/{}'"
},
"version": "2018.4.18-3"
"version": "2018.4.19-0"
}
2 changes: 1 addition & 1 deletion packages/uncssstyle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"access": "public"
},
"repository": "https://github.com/ptb/amory/tree/master/packages/uncssstyle",
"version": "2018.4.18-3"
"version": "2018.4.19-0"
}

0 comments on commit 98dea54

Please sign in to comment.