Supersonic HTML5 app development on Steroids. The CSS library is forked from Ionic with love.
AppGyver Steroids provides a wonderful layer for integrating your HTML5 application with native device capabilities. What we found from developing applications on Steroids is that you need more. Supersonic delivers the missing pieces: you'll be able to write HTML using default CSS components that are delightful to look at, use Web Components that map your HTML to fully native interfaces, and access native APIs with more ease than ever.
Supersonic is framework agnostic. It's a library consisting of CSS, Javascript and Web Components, which you can use with your framework of choice. However, Supersonic comes with a bundle that integrates with Angular.js by Google for even more awesomeness.
Supersonic ships with compiled Javascript, CSS and Web Component assets, along with a great icon pack. Supersonic is built to work with AppGyver's native wrapper, so most of the APIs will not function in a vanilla Cordova app or a mobile website.
To get going with Supersonic, please follow the First Mile tutorial!
supersonic.core.js
contains the Supersonic APIs, without the Angular.js parts. If you are not using AngularJS in your project, you can use supersonic.core.js
instead of supersonic.js
.
Installing dependencies:
npm install
npm install grunt-cli -g
bundle install
Running tests:
grunt test
For a test-and-watch-for-changes loop, use:
grunt dev
For a build-and-watch-for-changes loop, use:
grunt build watch:build
Running testApp and testSpecApp requires steroids
- Clone steroids repo, install its dependencies (npm install) and run
npm link
.
Installing dependencies:
bower install
Supersonic documentation is generated in a two-step process. A grunt task extracts metadata from source files. The docs are then presented along with the metadata by a jekyll server.
bundle install
grunt compile-docs
cd docs
jekyll serve
open http://localhost:4000
For a build-and-watch-for-changes loop, use:
grunt watch:docs
This repository is set up with Travis CI. On each push to a branch that has passing unit tests, the continuous integration server will prepare a bower distributable version. That distributable will be deployed to supersonic-bower in an identically named branch, where it is installable via bower.
In other words, publishing is automatic. You don't need to do anything.
What the publication process doesn't do yet, is handle semver updates and tagging. This is done manually for the source repo like this.
Update CHANGELOG.md
Update version tags in:
package.json
bower.json
Tag git version:
git commit -m "x.y.z" && git tag "vx.y.z"
Publish:
git push origin master --tags
After Travis runs its course, the new version will be available on Bower with the version tag you entered.