diff options
author | Jason Karns <jason.karns@gmail.com> | 2019-01-30 20:37:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-30 20:37:19 +0300 |
commit | d140a65044b2d6810381935ae7f0c94c7023c8c3 (patch) | |
tree | e1bd565bc21a4fe3bb906ae739b3c59ae27e52f4 | |
parent | 004e707638eedd62e0481e8cdc9223ad471f12ee (diff) | |
parent | c2c416856ce8f4b3c8a2f5d17dcdb064a6521eb7 (diff) |
Merge pull request #1 from jasonkarns/npm
Npm
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | .travis.yml | 10 | ||||
-rw-r--r-- | package.json | 27 | ||||
-rwxr-xr-x | script/install-bats.sh | 6 |
4 files changed, 33 insertions, 14 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..05f900c --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/node_modules +/package-lock.json +/yarn.lock +/bats-support-*.tgz diff --git a/.travis.yml b/.travis.yml index 75721f2..965fe2d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,3 @@ -language: bash -before_install: - - ./script/install-bats.sh -before_script: - - export PATH="${HOME}/.local/bin:${PATH}" -script: - - bats test +language: node_js +node_js: node +cache: npm diff --git a/package.json b/package.json index 192d16a..5015687 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,30 @@ { "name": "bats-support", "version": "0.3.0", - "private": true + "description": "Supporting library for Bats test helpers", + "homepage": "https://github.com/jasonkarns/bats-support", + "license": "CC0-1.0", + "author": "Zoltán Tömböl (https://github.com/ztombol)", + "contributors": [ + "Jason Karns <jason.karns@gmail.com> (http://jason.karns.name)" + ], + "repository": "github:jasonkarns/bats-support", + "bugs": "https://github.com/jasonkarns/bats-support/issues", + "directories": { + "lib": "src", + "test": "test" + }, + "files": [ + "load.bash", + "src" + ], + "scripts": { + "test": "bats ${CI+-t} test" + }, + "devDependencies": { + "bats": "^1" + }, + "peerDependencies": { + "bats": "0.4 || ^1" + } } diff --git a/script/install-bats.sh b/script/install-bats.sh deleted file mode 100755 index 4c3161a..0000000 --- a/script/install-bats.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -set -o errexit -set -o xtrace - -git clone --depth 1 https://github.com/sstephenson/bats -cd bats && ./install.sh "${HOME}/.local" && cd .. && rm -rf bats |