Add mocha and travis support

This commit is contained in:
Casper Warden
2017-12-18 21:04:21 +00:00
parent 9097bc07a2
commit b99742b1c8
4 changed files with 30 additions and 9 deletions

3
.gitignore vendored
View File

@@ -1,5 +1,6 @@
/.idea
/node_modules
/example/loginParameters.json
/example/npm-debug.log
/caspertech-node-metaverse-*.tgz
/npm-debug.log

View File

@@ -1 +1,9 @@
lib/
tsconfig.json
tslint.json
.travis.yml
lib/
tools/
example/
docs/
test/
.npmignore

8
.travis.yml Normal file
View File

@@ -0,0 +1,8 @@
language: node_js
before_script:
- npm run setup
- npm run build
after_success:
- npm pack

View File

@@ -5,25 +5,29 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"setup": "npm install",
"prepublish": "npm run build",
"test-only": "mocha test/",
"pretest": "npm run build",
"test": "npm run test-only",
"build": "tsc --removeComments",
"run": "node -r source-map-support/register example/testBot.js",
"test": "echo \"Error: no test specified\" && exit 1"
"run": "node -r source-map-support/register example/testBot.js"
},
"author": "CasperTech Ltd",
"license": "MIT",
"repository" : {
"type" : "git",
"url" : "https://github.com/CasperTech/node-metaverse.git"
"repository": {
"type": "git",
"url": "https://github.com/CasperTech/node-metaverse.git"
},
"devDependencies": {
"@types/mocha": "^2.2.44",
"@types/node": "^8.0.53",
"mocha": "^4.0.1",
"source-map-support": "^0.5.0",
"ts-node": "^3.3.0",
"tslint": "^5.8.0",
"tslint-eslint-rules": "^4.1.1",
"typescript": "^2.6.1",
"source-map-support": "^0.5.0"
"typescript": "^2.6.1"
},
"dependencies": {
"@types/long": "^3.0.32",