1.0.2 • Published 8 years ago
taco-bell-starter v1.0.2
taco-bell-starter
Demo package for use of taco-bell. Clone and use as a template for your project.
This package contains an example project structure when working with taco-bell. The application's function is trivial and is only intended to demonstrate an opinionated design pattern.
- dist -- compiled files are copied here
- src
- client -- files bundled and sent to the browser
- App.ts -- class for creating the browser application.
- Model.ts -- class representing the application state
- main.ts -- startup script which instantiates a singleton model and a singleton App.
- server -- files are NOT sent to browser
- server.ts -- server configuration. This is the script executed when running the server with
grunt serve
- server.ts -- server configuration. This is the script executed when running the server with
- static -- contains web resources served to the browser
- models.ts -- script shared by client and server
- client -- files bundled and sent to the browser
- tst
- AppPage.ts -- selenium style page model
- end-to-end.ts -- end to end test script executed with
grunt end-to-end
. Depends on server.ts
Install
npm install -g grunt-cli
npm install
Clean
grunt clean
Build
grunt
Serve
grunt serve
End to end tests
These tests are configured to run in a local headless Chrome browser.
First update the tst.browserLocation
environment variable in Gruntfile.coffee to point to the location of
your chrome installation.
# first start the server
grunt serve
# then in a different shell run the tests
grunt end-to-end