项目作者: bradyhouse

项目描述 :
Puzzle 16
高级语言: TypeScript
项目地址: git://github.com/bradyhouse/16.git
创建时间: 2017-04-16T20:26:23Z
项目社区:https://github.com/bradyhouse/16

开源协议:MIT License

下载


Puzzle 16

Icon

Build Status
Stories in Progress
dependencies Status
devDependencies Status
MIT license
Greenkeeper badge

Puzzle 16 is a game inspired by Eni Puzzle. The web-based version is currently published
on github => http://bradyhouse.github.io/sixteen. The android and iOS versions of the
app are currently under construction.

Table of Contents

Prerequisites

Note you should have node v6.5.0 or higher and npm 3.10.3 or higher.

  • To run the NativeScript app:
  1. npm install -g nativescript
  2. npm install -g typescript

How to start

  1. # install the project's dependencies
  2. $ npm install
  3. # fast install (via Yarn, https://yarnpkg.com)
  4. $ yarn install # or yarn
  5. # watches your files and uses livereload by default
  6. $ npm start
  7. # api document for the app
  8. # npm run build.docs
  9. # generate api documentation
  10. $ npm run compodoc
  11. $ npm run serve.compodoc
  12. # to start deving with livereload site and coverage as well as continuous testing
  13. $ npm run start.deving
  14. # dev build
  15. $ npm run build.dev
  16. # prod build
  17. $ npm run build.prod

Running tests

  1. $ npm test
  2. # Development. Your app will be watched by karma
  3. # on each change all your specs will be executed.
  4. $ npm run test.watch
  5. # NB: The command above might fail with a "EMFILE: too many open files" error.
  6. # Some OS have a small limit of opened file descriptors (256) by default
  7. # and will result in the EMFILE error.
  8. # You can raise the maximum of file descriptors by running the command below:
  9. $ ulimit -n 10480
  10. # code coverage (istanbul)
  11. # auto-generated at the end of `npm test`
  12. # view coverage report:
  13. $ npm run serve.coverage
  14. # e2e (aka. end-to-end, integration) - In three different shell windows
  15. # Make sure you don't have a global instance of Protractor
  16. # npm install webdriver-manager <- Install this first for e2e testing
  17. # npm run webdriver-update <- You will need to run this the first time
  18. $ npm run webdriver-start
  19. $ npm run serve.e2e
  20. $ npm run e2e
  21. # e2e live mode - Protractor interactive mode
  22. # Instead of last command above, you can use:
  23. $ npm run e2e.live

You can learn more about Protractor Interactive Mode here