зеркало из https://github.com/mozilla/seasponge.git
1.4 KiB
1.4 KiB
SeaSponge Developer Guidelines
Dependencies & Building
See the Readme for an overview of the dependencies you need and basic usage of app locally
Directory Overview
- /app Where the main Angular application lives
- /app/images Any static images the app uses
- /app/scripts Any coffeescripts for the app including controllers, stencils and services
- /app/styles Any Sass for the app
- /app/views Any Angular HTML views
- /test Where the test files for the Karma test suite live
Common Tasks
Creating Angular stuff (Controllers, routes, etc.)
We recommend you use the sub-generators provided by generator-angular.
Creating a Stencil
- Inside of /app/scripts/stencils Create a
stencilName.coffee
file in the appropriate category folder - Specify a new stencil's class name and what base stencil it extends. Don't forget to provide a name and an image. See process.coffee for an example
- Add your new stencil to /app/scripts/stencils/stencils.coffee
- Add the name of the corresponding compiled js to app/index.html. Example
<script src="scripts/stencils/process/process.js"></script>