[x] make initials.js commonjs-only, just one module.exports = initials, without checking for define, and the wrapper functions anymore. Rename file to index.js and make it the "main" in package.json
[x] add a local dev server that serves /demo and dynamically browserifies initials and serves it at /initials.js. beefy could be a simple option for that, the npm start task could look like beefy ./index.js --cwd=./demo
[x] add a build task, build into /dist. Add /dist to gitignore
[x] Add .npmignore (only coverage/ in it, so that /dist gets added to published pacakge)
[x] Add deploy task, which is 1. build, 2. copy build initials.js file to /demo, 3. gh-pages-deploy of /demo folder
[x] remove the release.branch setting in package.json
[x] remove branches setting in .travis.yml
That should be it :) @zoepage want to give this a go? Does it all make sense?
module.exports = initials
, without checking fordefine
, and the wrapper functions anymore. Rename file toindex.js
and make it the "main" in package.json/initials.js
. beefy could be a simple option for that, the npm start task could look likebeefy ./index.js --cwd=./demo
coverage/
in it, so that/dist
gets added to published pacakge)/demo
, 3. gh-pages-deploy of/demo
folderrelease.branch
setting in package.jsonbranches
setting in.travis.yml
That should be it :) @zoepage want to give this a go? Does it all make sense?