/modul-typescript-template

Template to start a new project with Modul / Vuejs / Typescript

Primary LanguageTypeScriptApache License 2.0Apache-2.0

vuejs-typescript-template

Template to start a new project with Vuejs and Typescript

This project aims at kickstarting projects at University Laval but could also help others. Feel free to try it out and send us some feedback.

Getting started

  1. Install Git
  2. Install Node
  3. Update npm
  4. Clone this project
  5. Change the name and version in package.json
  6. Run npm install
  7. Run npm run dev

Editor

Visual Studio Code is the recommanded editor.

The following extensions are recommanded:

Supported commands

npm run clean

Deletes all generated files.

npm run dev

Runs the application development mode.

npm run build

Builds the application for production. All files are put in the 'dist' folder.

npm run prod

Runs the application from the 'dist' folder. The build needs to be done before.

npm run unit

Runs unit tests using PhantomJS with Karma + Jasmine.

npm run unitall

Runs unit tests using PhantomJS, Chrome and Firefox with Karma + Jasmine.

npm run e2e

Runs End-to-end tests using Nightwatch and Selenium.

npm run test

Runs all unit and e2e tests.

nom run tslint

Runs the Typescript linter using TSLint.