Permalink
Browse files

Reinstate coffeeify

  • Loading branch information...
1 parent 0e1c847 commit a3b4ef384b09621fa6620f2f86651305cf75015c @andreyvit andreyvit committed Jan 20, 2015
Showing with 21 additions and 23 deletions.
  1. +2 −1 .gitignore
  2. +18 −22 Gruntfile.js
  3. +1 −0 package.json
View
@@ -2,7 +2,8 @@ node_modules
LiveReload.safariextension/*.js
Chrome/LiveReload/*.js
Firefox/content/*.js
-lib/**.js
+lib/*.js
+lib/*/*.js
/dist
/update/McCoy
/Chrome/*.pem
View
@@ -3,36 +3,32 @@ module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
- coffee: {
- src: {
- expand: true,
- cwd: 'src',
- src: '**/*.coffee',
- dest: 'lib',
- ext: '.js'
- }
- },
-
browserify: {
+ options: {
+ transform: ['coffeeify'],
+ browserifyOptions: {
+ extensions: ['.coffee']
+ }
+ },
safari: {
files: {
- 'LiveReload.safariextension/global.js': ['lib/safari/global.js'],
- 'LiveReload.safariextension/injected.js': ['lib/safari/injected.js'],
- 'LiveReload.safariextension/livereload.js': ['lib/livereload-js.js']
+ 'LiveReload.safariextension/global.js': ['src/safari/global.coffee'],
+ 'LiveReload.safariextension/injected.js': ['src/safari/injected.coffee'],
+ 'LiveReload.safariextension/livereload.js': ['src/livereload-js.coffee']
}
},
chrome: {
files: {
- 'Chrome/LiveReload/global.js': ['lib/chrome/global.js'],
- 'Chrome/LiveReload/injected.js': ['lib/chrome/injected.js'],
- 'Chrome/LiveReload/devtools.js': ['lib/chrome/devtools.js'],
- 'Chrome/LiveReload/livereload.js': ['lib/livereload-js.js']
+ 'Chrome/LiveReload/global.js': ['src/chrome/global.coffee'],
+ 'Chrome/LiveReload/injected.js': ['src/chrome/injected.coffee'],
+ 'Chrome/LiveReload/devtools.js': ['src/chrome/devtools.coffee'],
+ 'Chrome/LiveReload/livereload.js': ['src/livereload-js.coffee']
}
},
firefox: {
files: {
- 'Firefox/content/firefox.js': ['lib/firefox/firefox.js'],
- 'Firefox/content/livereload.js': ['lib/livereload-js.js']
+ 'Firefox/content/firefox.js': ['src/firefox/firefox.coffee'],
+ 'Firefox/content/livereload.js': ['src/livereload-js.coffee']
}
}
},
@@ -66,11 +62,11 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-contrib-compress');
- grunt.registerTask('build', ['coffee', 'browserify']);
+ grunt.registerTask('build', ['browserify']);
grunt.registerTask('default', ['build']);
- grunt.registerTask('chrome', ['coffee', 'browserify:chrome', 'compress:chrome']);
- grunt.registerTask('firefox', ['coffee', 'browserify:firefox', 'compress:firefox']);
+ grunt.registerTask('chrome', ['browserify:chrome', 'compress:chrome']);
+ grunt.registerTask('firefox', ['browserify:firefox', 'compress:firefox']);
grunt.registerTask('all', ['chrome', 'firefox']);
};
View
@@ -12,6 +12,7 @@
"livereload-js": "^2.2.1"
},
"devDependencies": {
+ "coffeeify": "^1.0.0",
"grunt": "^0.4.5",
"grunt-browserify": "^3.3.0",
"grunt-contrib-coffee": "^0.12.0",

0 comments on commit a3b4ef3

Please sign in to comment.