Tram-One Express is a generator for building tram-one applications.
To use tram-one-express, install using npm, and then run the command with the name of the app you want to build:
$ npm install -g tram-one-express
$ tram-one-express app-name
This will create a directory in your current directory with the name that you pass into tram-one-express.
Below are a list of files and directories that are created after running tram-one-express
app-name/
├── README.md
├── elements
│ └── header.js
├── main.js
├── package.json
├── pages
│ ├── 404.js
│ └── home.js
├── public
│ ├── favicon.png
│ └── index.html
└── specs
├── header-spec.js
├── specs.js
├── testem.html
└── testem.yml
Below are a list of commands used for developement. The logic for all the commands are in the local package.json
npm run generate-example
- alias forexample-generate
npm run example-generate
- creates an example app and installs dependencies in the examplenpm run example-build
- runsnpm run build
in the example projectnpm run example-start
- runs the start script, which kicks off a webpack servernpm run example-start-and-kill
- runs the webpack server, and then runs jasmine tests against the server (verifying that the default pages load correctly)npm run example-check
- verifies default pages load correctly for a running instance of the example app (used in example-start-and-kill)npm run example-test
- runs the test suite for the example app