Skip to content

Commit

Permalink
add gulp
Browse files Browse the repository at this point in the history
  • Loading branch information
miya0001 committed Apr 11, 2016
1 parent 6d75e27 commit 90568b0
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
npm-debug.log
v1
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
language: node_js
node_js:
- '0.11'
- '0.10'
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Wapuu API

JSON API for Wapuus in the World.

## How to Add your Wapuu

1. Fork this repository.
2. Please add your Wapuu's information into [wapuu.csv](https://github.com/jawordpressorg/wapuu-api/blob/master/wapuu.csv).
3. Give us pull-request.


## Build

```
$ npm run build
```
13 changes: 13 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var gulp = require('gulp');
var csv2json = require('gulp-csv2json');
var rename = require('gulp-rename');

gulp.task('default', function () {

var csvParseOptions = {}; //based on options specified here : http://csv.adaltas.com/parse/

gulp.src('wapuu.csv')
.pipe(csv2json(csvParseOptions))
.pipe(rename({extname: '.json'}))
.pipe(gulp.dest('v1'));
});
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@
"description": "",
"main": "index.js",
"scripts": {
"build": "gulp",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "GPLv2"
"license": "GPLv2",
"dependencies": {
"gulp": "^3.9.1",
"gulp-csv2json": "^0.2.5",
"gulp-rename": "^1.2.2"
}
}
4 changes: 2 additions & 2 deletions wapuu.csv
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Name,GitHub Repository,URL,Author
Wapuu,https://github.com/jawordpressorg/wapuu,https://raw.githubusercontent.com/jawordpressorg/wapuu/gh-pages/wapuu-original/wapuu-original.png,WordPress Japanese Translation Team
id,name,github-url,wapuu-url,wapuu-mimetype,author,url
wapuu,Wapuu,https://github.com/jawordpressorg/wapuu,https://raw.githubusercontent.com/jawordpressorg/wapuu/gh-pages/wapuu-original/wapuu-original.png,image/png,WordPress Japanese Translation Team,https://ja.wordpress.org

0 comments on commit 90568b0

Please sign in to comment.