Skip to content

Commit

Permalink
Merge pull request #6 from slackhq/coffee-js
Browse files Browse the repository at this point in the history
Compile coffeescript to javascript for npm
  • Loading branch information
grantmd committed Dec 16, 2014
2 parents 605768b + 6dbc77a commit 9eb2454
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
*.js
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.coffee
18 changes: 17 additions & 1 deletion Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-release'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-shell'
grunt.loadNpmTasks 'grunt-contrib-coffee'

grunt.initConfig
watch:
Expand All @@ -17,4 +18,19 @@ module.exports = (grunt) ->
command: 'npm test'
options:
stdout: true
stderr: true
stderr: true

coffee:
options:
bare: true
index:
files:
'index.js': 'index.coffee'
classes:
expand: true
cwd: 'src'
src: ['*.coffee']
dest: 'src'
ext: '.js'

grunt.registerTask 'prepublish', ['coffee']
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "slack-client",
"version": "1.2.0",
"version": "1.2.1",
"description": "A library for creating a full Slack client",
"main": "./index",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"prepublish": "grunt prepublish"
},
"keywords": [
"slack"
Expand All @@ -29,9 +30,10 @@
"log": "1.4.0"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-release": "~0.6.0",
"grunt": "^0.4.5",
"grunt-contrib-coffee": "^0.12.0",
"grunt-contrib-watch": "~0.5.3",
"grunt-release": "~0.6.0",
"grunt-shell": "~0.5.0"
},
"engines": {
Expand Down

0 comments on commit 9eb2454

Please sign in to comment.