I'd like to run coffee lint and coffee compile on only the single file that I'm saving. There are hundreds of CoffeeScript files in my project, and compiling all of them takes too much time.
Here's my Gruntfile:
module.exports = (grunt) ->
…
I am trying to create a grunt task to compile coffeescript code spread across multiple files to .js files of the same name. I have the grunt coffeescript plugin and I am looking to use the "glob_to_multiple" spec that is given on this…
If you use string interpolation in Coffeescript...
# source.coffee
bar = "Bar"
console.log "Foo #{bar}"
It compiles to
# compiled.js
var bar = 'Bar';
console.log(`Foo ${bar}`);
What version of Coffeescript started started compiling string…
I am trying to write a grunt task to compile numerous .coffee files to corresponding .js files and .map files using grunt. I have the grunt coffee plugin, but there are some problems:
It compiles all files into one common destination folder instead…
I'm working on a really old project that used Grunt 0.3 and Coffee, and I need to update it to newer versions of both, but I'm not particularly familiar to Grunt. Previously, Grunt would compile the .js files to the exact same folder and name of…
I’m using grunt-contrib-coffee to compile the following:
src
coffee
test1.coffee
test2.coffee
test3.coffee
into:
dist
js
concated.js
concated.js.map
This works, but the problem is that a third file is generated in dist/js called…
I am using coffeescript with grunt and am trying to only include JS files file pattern "*.min.js". Somehow my test is failing though and all files get included. So my if statement always returns true. How do I make this work?
getJsDependencies = ->
…
I'm using grunt-contrib-coffee in an AngularJS project and I'm trying to set configuration options based on grunt's target. I have the following configuration file (using grunt-load-options):
'use strict';
module.exports = function(grunt) {
…
This question, I believe, can be applied to a variety of grunt tasks. I will use grunt-contrib-coffee in my example.
I have a dev directory with a complex file structure and a bunch of coffee files. When developing, I use this coffee task to copy…
I'm completely new to Grunt and I want to use it in my next project.
What I want to do is, for example, to have the file at src/server.coffee to be compiled to build/server.js and the file at src/public/assets/css/global.less to be compiled to…
I'm using grunt, karma (singleRun: false). My tests are written in coffeescript. Each time my coffee file changes I want my tests to run. The problem is that I don't know how to make both happens.
So far I discovered the watch task, I tried to add…
So, I have a project with a layout of
src
--library
----a.coffee
----b.coffee
----c.coffee
--demo
----main.coffee
I have grunt set up currently to compile coffeescript in src/library to intermediate/library, concat the results to…
I’m using grunt to build coffee script and less files in my project.
Now I want to move to gulp… but I’m facing some problems.
In my grunt file if a global object containing the paths to all my source and destination directories.
Each Tasks is using…
I'm setting up a Gruntfile in which I'm trying to:
Compile some coffeescript to javascript for client side.
Watch for changes to the coffeescript that is to be compiled to javascript for clientside.
Watch for changes to the backend (server)…