Skip to content
This repository was archived by the owner on Jun 24, 2020. It is now read-only.

Commit

Permalink
Tests (#2)
Browse files Browse the repository at this point in the history
* Installation command changed to ci

* Jasmine-node changed to Jasmine

* Updated installation command

* Added warning about npm version
  • Loading branch information
Vitalii authored Feb 10, 2019
1 parent baddbc1 commit d817c92
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 141 deletions.
12 changes: 9 additions & 3 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,22 @@ It includes:
* Dummy API to start with
* Karma and Jasmine for testing purposes

## Prerequisite

Please, make sure you are using **npm 5.7.0 or higher**. If no, you need to change *npm ci* command to *npm install*

## Install

```cmd
git clone https://github.com/Drag13/typescript-browserify-template
npm i
npm install:all
npm ci
npm run install:all
```

## Start

```cmd
npm start
```
```

That's it! Your client and server is running now. Give it a try!
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"client": "cd client && npm start",
"server": "cd server && npm start",
"install:all": "cd server && npm install && cd ../client && npm install",
"install:all": "cd server && npm ci && cd ../client && npm ci",
"test": "cd server && npm test && cd ../client && npm test",
"start": "npm-run-all --parallel client server"
},
Expand Down
140 changes: 15 additions & 125 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"description": "",
"scripts": {
"start": "npm-run-all build run",
"build": "./node_modules/.bin/gulp buildAll",
"run": "./node_modules/.bin/gulp run",
"test:run":"./node_modules/.bin/jasmine-node tests",
"test:build" :"./node_modules/.bin/tsc -p ./tests",
"test": "npm-run-all test:build test:run"
"build": "gulp buildAll",
"run": "gulp run",
"test:run": "jasmine tests/*",
"test:build": "./node_modules/.bin/tsc -p ./tests",
"test": "npm-run-all test:run"
},
"author": "drag13",
"license": "MIT",
Expand Down Expand Up @@ -36,7 +36,7 @@
"gulp": "3.9.1",
"gulp-nodemon": "2.4.2",
"gulp-tsb": "2.0.5",
"jasmine-node": "^2.0.1",
"jasmine": "3.3.1",
"marked": "0.6.0",
"nodemon": "1.18.9",
"typescript": "3.2.4",
Expand Down
6 changes: 0 additions & 6 deletions server/tests/testSpec.js

This file was deleted.

0 comments on commit d817c92

Please sign in to comment.