From 1d2306188338132f9a85a2bccdb1d60f9ac86390 Mon Sep 17 00:00:00 2001 From: Nathan Faubion Date: Sun, 24 Jul 2016 15:36:44 -0500 Subject: [PATCH] Updates for 0.9 (#1) --- .travis.yml | 7 +++--- bower.json | 6 ++--- gulpfile.js | 59 ---------------------------------------------- package.json | 27 ++++++++++----------- src/Text/Chalky.js | 2 -- 5 files changed, 18 insertions(+), 83 deletions(-) delete mode 100644 gulpfile.js diff --git a/.travis.yml b/.travis.yml index 799ff71..e8b4281 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,8 @@ language: node_js node_js: - - 0.10 + - 5 install: - - npm install bower gulp -g + - npm install bower -g - npm install && bower install script: - - gulp - - node test.js \ No newline at end of file + - npm test diff --git a/bower.json b/bower.json index 3df5e6d..5977ed2 100644 --- a/bower.json +++ b/bower.json @@ -20,8 +20,8 @@ "tests" ], "devDependencies": { - "purescript-prelude": "^0.1.3", - "purescript-console": "^0.1.1", - "purescript-eff": "^0.1.1" + "purescript-prelude": "^1.0.0", + "purescript-console": "^1.0.0", + "purescript-eff": "^1.0.0" } } diff --git a/gulpfile.js b/gulpfile.js deleted file mode 100644 index df5cc64..0000000 --- a/gulpfile.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict" - -var gulp = require("gulp"), - purescript = require("gulp-purescript"); - - -var sources = [ - 'src/**/*.purs', - 'bower_components/purescript-*/src/**/*.purs' -]; - -var foreigns = [ - 'src/**/*.js', - 'bower_components/purescript-*/src/**/*.js' -]; - -var testSources = [ - 'test/**/*.purs' -]; - -var testForeigns = [ - 'test/**/*.js' -]; - - -gulp.task('docs', function() { - return purescript.pscDocs({ - src: sources, - docgen: { - "Text.Chalky": "docs/Text/Chalky.md" - } - }); -}); - - - -gulp.task('make', function() { - return purescript.psc({ - src: sources, - ffi: foreigns - }); -}); - -gulp.task('test-make', function() { - return purescript.psc({ - src: sources.concat(testSources), - ffi: foreigns.concat(testForeigns) - }); -}); - -gulp.task('test-bundle', ['test-make'], function() { - return purescript.pscBundle({ - src: 'output/**/*.js', - main: 'Test.Main', - output: 'test.js' - }); -}); - -gulp.task("default", ["test-bundle"]); diff --git a/package.json b/package.json index ff27774..6e2f691 100644 --- a/package.json +++ b/package.json @@ -1,20 +1,17 @@ { - "name": "purescript-chalky", - "description": "PureScript bindings to chalk library", - "repository": { - "type": "git", - "url": "https://github.com/slamdata/purescript-chalky.git" + "private": true, + "scripts": { + "clean": "rimraf output", + "build": "pulp build --censor-lib --strict", + "test": "pulp test" }, - "author": "Maxim Zimaliev ", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/slamdata/purescript-chalky/issues" - }, - "homepage": "https://github.com/slamdata/purescript-chalky", "dependencies": { - "chalk": "^1.1.1", - "gulp": "^3.9.0", - "gulp-purescript": "^0.7.0", - "purescript": "^0.7.5-rc.2" + "chalk": "^1.1.1" + }, + "devDependencies": { + "pulp": "^9.0.1", + "purescript": "^0.9.1", + "purescript-psa": "^0.3.9", + "rimraf": "^2.5.2" } } diff --git a/src/Text/Chalky.js b/src/Text/Chalky.js index 1257723..b6ca6ae 100644 --- a/src/Text/Chalky.js +++ b/src/Text/Chalky.js @@ -1,5 +1,3 @@ -// module Text.Chalky - var chalk = require("chalk"); exports.reset = chalk.reset;