Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
fix(naming): rename package to gulp-livescript
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchentw committed Jan 4, 2014
1 parent bebcab6 commit 6ea5ada
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions README.md
@@ -1,14 +1,14 @@
# gulp-LiveScript
# gulp-livescript

[![Build Status](https://secure.travis-ci.org/tomchentw/gulp-LiveScript.png)](http://travis-ci.org/tomchentw/gulp-LiveScript) [![Code Climate](https://codeclimate.com/github/tomchentw/gulp-LiveScript.png)](https://codeclimate.com/github/tomchentw/gulp-LiveScript)
[![Build Status](https://secure.travis-ci.org/tomchentw/gulp-livescript.png)](http://travis-ci.org/tomchentw/gulp-livescript) [![Code Climate](https://codeclimate.com/github/tomchentw/gulp-livescript.png)](https://codeclimate.com/github/tomchentw/gulp-livescript)

LiveScript plugin for gulp


## Usage

```javascript
var gulpLiveScript = require('gulp-LiveScript');
var gulpLiveScript = require('gulp-livescript');

gulp.task('ls', function() {
gulp.src('./src/*.ls')
Expand All @@ -20,9 +20,9 @@ gulp.task('ls', function() {

### Error Handling

`gulp-LiveScript` will emit an error for cases such as invalid LiveScript syntax. If uncaught, the error will crash gulp.
`gulp-livescript` will emit an error for cases such as invalid LiveScript syntax. If uncaught, the error will crash gulp.

You will need to attach a listener (i.e. .on('error')) for the error event emitted by gulp-LiveScript. Since .on(...) returns this, you can compact it as inline code (See [Usage](https://github.com/tomchentw/gulp-LiveScript/blob/master/README.md#Usage)).
You will need to attach a listener (i.e. .on('error')) for the error event emitted by gulp-livescript. Since .on(...) returns this, you can compact it as inline code (See [Usage](https://github.com/tomchentw/gulp-livescript/blob/master/README.md#Usage)).

### Options

Expand All @@ -31,7 +31,7 @@ The options object supports the same options as the standard LiveScript compiler

## Contributing

[![devDependency Status](https://david-dm.org/tomchentw/gulp-LiveScript/dev-status.png?branch=master)](https://david-dm.org/tomchentw/gulp-LiveScript#info=devDependencies)
[![devDependency Status](https://david-dm.org/tomchentw/gulp-livescript/dev-status.png?branch=master)](https://david-dm.org/tomchentw/gulp-livescript#info=devDependencies)

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
Expand Down
6 changes: 3 additions & 3 deletions gulpfile.ls
@@ -1,13 +1,13 @@
require! {
gulp
'gulp-LiveScript': './src'
'gulp-livescript': './src'
'gulp-mocha'
'gulp-clean'
}

gulp.task 'compile' ->
return gulp.src 'src/*.ls'
.pipe gulp-LiveScript!
.pipe gulp-livescript!
.pipe gulp.dest 'tmp/'

gulp.task 'clean' ->
Expand All @@ -20,5 +20,5 @@ gulp.task 'test' <[compile]> !->

gulp.task 'default' <[clean]> !->
gulp.src 'src/index.ls'
.pipe gulp-LiveScript!
.pipe gulp-livescript!
.pipe gulp.dest '.'
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -5,7 +5,7 @@
LiveScript = require('LiveScript');
gutil = require('gulp-util');
toPluginError = function(reason){
return new gutil.PluginError('gulp-LiveScript', reason);
return new gutil.PluginError('gulp-livescript', reason);
};
module.exports = function(options){
return eventStream.map(function(file, cb){
Expand Down
8 changes: 4 additions & 4 deletions package.json
@@ -1,5 +1,5 @@
{
"name": "gulp-LiveScript",
"name": "gulp-livescript",
"version": "0.0.2",
"description": "LiveScript plugin for gulp",
"main": "index.js",
Expand All @@ -10,7 +10,7 @@
},
"repository": {
"type": "git",
"url": "git://github.com/tomchentw/gulp-LiveScript.git"
"url": "git://github.com/tomchentw/gulp-livescript.git"
},
"keywords": [
"LiveScript",
Expand All @@ -26,9 +26,9 @@
"url": "http://tomchentw.mit-license.org/"
},
"bugs": {
"url": "https://github.com/tomchentw/gulp-LiveScript/issues"
"url": "https://github.com/tomchentw/gulp-livescript/issues"
},
"homepage": "https://github.com/tomchentw/gulp-LiveScript",
"homepage": "https://github.com/tomchentw/gulp-livescript",
"dependencies": {
"gulp-util": "*",
"LiveScript": "~1.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ls
Expand Up @@ -6,7 +6,7 @@ require! {
}

const toPluginError = (reason) ->
new gutil.PluginError 'gulp-LiveScript', reason
new gutil.PluginError 'gulp-livescript', reason

module.exports = (options) -> event-stream.map !(file, cb) ->
const done = !-> cb void, file
Expand Down
6 changes: 3 additions & 3 deletions src/spec.ls
@@ -1,20 +1,20 @@
require! {
fs
path.join
'gulp-LiveScript': './index'
'gulp-livescript': './index'
gutil: 'gulp-util'
mocha
should
}

(...) <-! describe 'gulp-LiveScript'
(...) <-! describe 'gulp-livescript'

it 'should compile ls into js' !(done) ->
expectEquals = !(left, right) -->
String(left.contents) .should.equal String(right.contents)
done!

const stream = gulp-LiveScript header: true
const stream = gulp-livescript header: true
stream.on 'error' done
stream.on 'data' !(compiled) ->
should.exist compiled
Expand Down

0 comments on commit 6ea5ada

Please sign in to comment.