refactor: use aegir

This commit is contained in:
dignifiedquire 2016-04-15 20:01:53 +02:00
parent cabcc7106e
commit e91f738b65
6 changed files with 61 additions and 10 deletions

1
.gitignore vendored
View File

@ -2,5 +2,6 @@ node_modules
lib lib
dist dist
coverage
*.log *.log

7
.npmignore Normal file
View File

@ -0,0 +1,7 @@
node_modules
coverage
*.log
test

24
.travis.yml Normal file
View File

@ -0,0 +1,24 @@
sudo: false
language: node_js
node_js:
- 4
- 5
# Make sure we have new NPM.
before_install:
- npm install -g npm
script:
- npm run lint
- npm test
- npm run coverage
addons:
firefox: 'latest'
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
after_success:
- npm run coverage-publish

View File

@ -1,7 +1,12 @@
js-mafmt js-mafmt
======== ========
[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io) [![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs) [![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io)
[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)
> Javascript implementation of multiaddr validation [![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)
[![Coverage Status](https://coveralls.io/repos/github/whyrusleeping/js-mafmt/badge.svg?branch=master)](https://coveralls.io/github/whyrusleeping/js-mafmt?branch=master)
[![Travis CI](https://travis-ci.org/whyrusleeping/js-mafmt.svg?branch=master)](https://travis-ci.org/whyrusleeping/js-mafmt)
[![Circle CI](https://circleci.com/gh/whyrusleeping/js-mafmt.svg?style=svg)](https://circleci.com/gh/whyrusleeping/js-mafmt)
[![Dependency Status](https://david-dm.org/whyrusleeping/js-mafmt.svg?style=flat-square)](https://david-dm.org/whyrusleeping/js-mafmt) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)
> Javascript implementation of multiaddr validation

12
circle.yml Normal file
View File

@ -0,0 +1,12 @@
machine:
node:
version: stable
dependencies:
pre:
- google-chrome --version
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
- sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
- sudo apt-get update
- sudo apt-get --only-upgrade install google-chrome-stable
- google-chrome --version

View File

@ -5,12 +5,14 @@
"main": "lib/index.js", "main": "lib/index.js",
"jsnext:main": "src/index.js", "jsnext:main": "src/index.js",
"scripts": { "scripts": {
"lint": "dignified-lint", "lint": "aegir-lint",
"build": "dignified-build", "build": "aegir-build",
"test": "dignified-test", "test": "aegir-test",
"test:node": "dignified-test node", "test:node": "aegir-test node",
"test:browser": "dignified-test browser", "test:browser": "aegir-test browser",
"release": "dignified-release" "release": "aegir-release",
"coverage": "aegir-coverage",
"coverage-publish": "aegir-coverage publish"
}, },
"pre-commit": [ "pre-commit": [
"lint", "lint",
@ -30,8 +32,8 @@
}, },
"homepage": "https://github.com/whyrusleeping/js-mafmt#readme", "homepage": "https://github.com/whyrusleeping/js-mafmt#readme",
"devDependencies": { "devDependencies": {
"aegir": "^2.1.1",
"chai": "^3.5.0", "chai": "^3.5.0",
"dignified.js": "github:dignifiedquire/dignified.js",
"pre-commit": "^1.1.2" "pre-commit": "^1.1.2"
}, },
"dependencies": { "dependencies": {