diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..6bcf0c2 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,10 @@ +git: + depth: 1 +language: node_js +node_js: + - '0.12' + - '4' + - '5' +cache: + directories: + - node_modules diff --git a/README.md b/README.md index 0657e3c..b448f73 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,9 @@ This plugin supports selecting a directory of `.json` files using a globbing pat ## Installation +``` $ npm install metalsmith-metadata-directory --save-dev +``` ## CLI Usage @@ -39,8 +41,8 @@ Install the plugin using npm, and simply specify the directory you want to use, ## Javascript Usage ```js -var Metalsmith = require('metalsmith'); -var metadata = require('metalsmith-metadata-directory'); +var Metalsmith = require('metalsmith') +var metadata = require('metalsmith-metadata-directory') metalsmith.use(metadata({ directory: '/src/data/**/*.json' diff --git a/package.json b/package.json index 25223f4..be87eff 100644 --- a/package.json +++ b/package.json @@ -3,9 +3,6 @@ "version": "0.0.1", "description": "A Metalsmith plugin to add a directory of JSON files for use in templates and pages", "main": "lib/index.js", - "scripts": { - "test": "mocha" - }, "repository": { "type": "git", "url": "git+https://github.com/fephil/metalsmith-metadata-directory.git"