A generator for Yeoman that scaffolds a Bespoke.js theme.
The boilerplate plugin includes a Gulp build system with Browserify, Stylus, Normalize.css and Autoprefixer preconfigured.
Assuming you have Node.js, install generator-bespoketheme:
$ npm install -g generator-bespokethemeMake a new directory and cd into it:
$ mkdir bespoke-theme-mytheme
$ cd bespoke-theme-mythemeScaffold a new presentation:
$ yo bespokethemeAll source files for the theme reside in the lib directory.
Distributable versions of your theme are generated in the dist directory by the following gulp tasks:
Compile the project:
$ gulpRecompile your theme whenever source files change:
$ gulp devView the demo in a browser with LiveReload:
$ gulp demoCompile and deploy the demo to GitHub pages:
$ gulp deploy$ npm publishRegister theme with Bower:
$ bower register <my-theme-name> <git-endpoint>Bower uses Git tags for versioning.
To publish an update, first modify the version number in bower.json, then tag a new version and push to origin:
$ git add .
$ git commit -m "Bump to vX.X.X"
$ git tag -a vX.X.X -m "vX.X.X"
$ git push --tags origin master