package.jsonwith package name
$NAME_OF_PACKAGE.jsthe source code as literate code.
and then documentation, web-site, browser-bundle, npm module etc. is generated from this.
The steps I go though when creating a new project is:
- create github repository, and enable webpage from master branch.
travis setup npm, if I want to release it as a module.
- optionally add
Dockerfileand enable automatic build on hub.docker.com, if I want it to be installable on the server.
During development I just
yarn dev and
yarn release, and commit and push to github.
I have also simplified my server setup.
- CouchDB is my database of choice, – it is generic / easy to use from HTML5/apps, so you do not need additional server code to talk with it.
- A simple pubsub server that allows HTML5/apps to communicate with eachother (and signal webrtc-p2p connections).
- A simple service runner, that runs HTML5/apps as services, based on a dynamic configuration in CouchDB. This means that I have the same APIs, and developer experience, when making services as when I write apps.