Setup
Setup
In order to set up a Tramway application, you'll need to follow a few steps:
- Install the CLI in your project dev dependencies.
npm i -D tramway
- Setup Tramway with Tramway's install command
./node_modules/.bin/tramway install
By this point, you will now have a basic application scaffold.
Build and Serve
To build and serve the application:
- Build the
src
using Tramway's build command which encapsulates the main but extendable Babel recipe.
./node_modules/.bin/tramway build
- Serve the application using Tramway's serve command. This will run the application on a separate thread with a watcher that restarts on file changes.
./node_modules/.bin/tramway start