+2
-2
@@ -0,4 +1,4 @@ | ||
| sudo: false | ||
| language: node_js | ||
| node_js: | ||
| - 0.9 | ||
| - 0.10 | ||
| - 0.11 |
+6
-5
@@ -10,8 +10,9 @@ map = require 'map-stream' | ||
| gcson = (file, cb) -> | ||
| data = cson.parseSync file.contents.toString 'utf8', options | ||
| file.contents = new Buffer JSON.stringify data | ||
| file.path = rext file.path, '.json' | ||
| cson.parse file.contents.toString(), options, (err, data) -> | ||
| return cb err if err? | ||
| file.contents = new Buffer JSON.stringify data | ||
| file.path = rext file.path, '.json' | ||
| cb null, file | ||
| cb null, file | ||
| return map gcson | ||
| return map gcson |
+1
-2
@@ -1,3 +0,2 @@ | ||
| require('coffee-script'); | ||
| require('coffee-script/register'); | ||
| module.exports = require('./index.coffee'); | ||
| module.exports = require('./index.coffee'); |
+1
-1
@@ -1,2 +0,2 @@ | ||
| Copyright (c) 2014 Steve Lacy <me@slacy.me> http://slacy.me | ||
| Copyright (c) 2015 Steve Lacy <me@slacy.me> http://slacy.me | ||
@@ -3,0 +3,0 @@ Permission is hereby granted, free of charge, to any person obtaining |
+4
-4
| { | ||
| "name": "gulp-cson", | ||
| "description": "Parse cson with gulp", | ||
| "version": "0.0.1", | ||
| "version": "0.1.0", | ||
| "homepage": "http://github.com/stevelacy/gulp-cson", | ||
@@ -13,6 +13,6 @@ "repository": { | ||
| "dependencies": { | ||
| "coffee-script": "^1.9.0", | ||
| "cson": "^1.6.2", | ||
| "map-stream": "^0.1.0", | ||
| "coffee-script": "^1.7.1", | ||
| "replace-ext": "0.0.1", | ||
| "cson": "^1.4.5" | ||
| "replace-ext": "0.0.1" | ||
| }, | ||
@@ -19,0 +19,0 @@ "devDependencies": { |
+1
-1
@@ -54,3 +54,3 @@ #gulp-cson | ||
| Copyright (c) 2014 Steve Lacy <me@slacy.me> http://slacy.me | ||
| Copyright (c) 2015 Steve Lacy <me@slacy.me> http://slacy.me | ||
@@ -57,0 +57,0 @@ Permission is hereby granted, free of charge, to any person obtaining |
+1
-1
@@ -17,3 +17,3 @@ fs = require "fs" | ||
| contents: fs.readFileSync path.join __dirname, "/fixtures/normal.cson" | ||
| myFunction.once "data", (newFile) -> | ||
@@ -20,0 +20,0 @@ should.exist newFile |
5802
0.17%Updated
Updated