Build
The build command will use Babel to transpile your cutting-edge Javascript code to versions NodeJS or browsers can execute.
You can also add the command to your package.json scripts to continue using the familiar hooks like npm run build.
Example
tramway build
Options
| Argument | Command Type | Type | Default | Required | Comments |
|---|---|---|---|---|---|
| watch | option | boolean | false | no | Automatically build upon changes |
| sourceMap | option | boolean | false | no | Generate a source map upon build |
Result
Once completed, the final executable code will be located in the dist folder.