component description and usage
Images supporting the documentation or more extensive documentation should go
into the docs
folder.
Working example should go into the example
folder.
Tests go into the test
folder. Should just consist of main.test.js
. If you
need more, your component might be too big!
package.json
contains the development dependencies, such as testacular and
expect.js. Usually, npm install
runs bower install
on postinstall
.
component.json
contains all the client-side dependencies to make the code work.
N.B: sinon.js
is part of the bower dependencies as the npm version does
not work in the browser!
main.js
- component JavaScript code
style.css
- component.css. Should be the least amount of CSS to make the
component show on screen. Preferably no pre-processor should be used.
template.html
- template for the component
testacular.conf.js
- configuration for the testacular test runner. Should only
need amendment if the code structure is different from the blueprint