Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 2ef326c

Browse files
committed
add travis
1 parent a364b04 commit 2ef326c

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
git:
2+
depth: 1
3+
language: node_js
4+
node_js:
5+
- '0.12'
6+
- '4'
7+
- '5'
8+
cache:
9+
directories:
10+
- node_modules

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ This plugin supports selecting a directory of `.json` files using a globbing pat
2020

2121
## Installation
2222

23+
```
2324
$ npm install metalsmith-metadata-directory --save-dev
25+
```
2426

2527
## CLI Usage
2628

@@ -39,8 +41,8 @@ Install the plugin using npm, and simply specify the directory you want to use,
3941
## Javascript Usage
4042

4143
```js
42-
var Metalsmith = require('metalsmith');
43-
var metadata = require('metalsmith-metadata-directory');
44+
var Metalsmith = require('metalsmith')
45+
var metadata = require('metalsmith-metadata-directory')
4446

4547
metalsmith.use(metadata({
4648
directory: '/src/data/**/*.json'

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
"version": "0.0.1",
44
"description": "A Metalsmith plugin to add a directory of JSON files for use in templates and pages",
55
"main": "lib/index.js",
6-
"scripts": {
7-
"test": "mocha"
8-
},
96
"repository": {
107
"type": "git",
118
"url": "git+https://github.com/fephil/metalsmith-metadata-directory.git"

0 commit comments

Comments
 (0)