Skip to content
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.

khuongduybui/newearth-combat-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

combat-simulator

This project is bootstrapped by aurelia-cli.

For more information, go to https://aurelia.io/docs/cli/cli-bundler

Gitpod Ready-to-Code

Run dev app

Run au run, then open http://localhost:9000

To open browser automatically, do au run --open.

To change dev server port, do au run --port 8888.

To change dev server host, do au run --host 127.0.0.1

To install new npm packages automatically, do au run --auto-install

PS: You could mix all the flags as well, au run --host 127.0.0.1 --port 7070 --open

Build for production

Run au build --env prod.

Unit tests

Run au test (or au jest).

To run in watch mode, au test --watch or au jest --watch.

Integration (e2e) tests

You need the app running for integration test.

First, run au run and keep it running.

Then run au cypress to run cypress in interactive mode.

To perform a test-run and reports the results, do au cypress --run.

To ask the cypress to start the application first and then start testing: au cypress --run --start

The two following flags are useful when using --start flag:

  • To change dev server port, do au cypress --start --port 8888.
  • To change dev server host, do au cypress --start --host 127.0.0.1

PS: It is also possible to mix the flags au cypress --run --start --port 7070 --host 127.0.0.1

Build for Docker

This is as simple as running a command:

yarn docker:build or npm run docker:build

if you want to bring up an instance on your machine run:

yarn docker:start or npm run docker:build

to stop the previously started instance:

yarn docker:stop or npm run docker:stop