Add mocha and travis support
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,5 +1,6 @@
|
||||
/.idea
|
||||
/node_modules
|
||||
/example/loginParameters.json
|
||||
|
||||
/example/npm-debug.log
|
||||
/caspertech-node-metaverse-*.tgz
|
||||
/npm-debug.log
|
||||
|
||||
10
.npmignore
10
.npmignore
@@ -1 +1,9 @@
|
||||
lib/
|
||||
tsconfig.json
|
||||
tslint.json
|
||||
.travis.yml
|
||||
lib/
|
||||
tools/
|
||||
example/
|
||||
docs/
|
||||
test/
|
||||
.npmignore
|
||||
8
.travis.yml
Normal file
8
.travis.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
language: node_js
|
||||
|
||||
before_script:
|
||||
- npm run setup
|
||||
- npm run build
|
||||
|
||||
after_success:
|
||||
- npm pack
|
||||
18
package.json
18
package.json
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user