Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7714505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:08:41+00:00 2026-06-01T02:08:41+00:00

I am working in CoffeeScript (writing a Cakefile). I would like to compile some

  • 0

I am working in CoffeeScript (writing a Cakefile). I would like to compile some other CoffeeScript files, à la

coffee -o lib -c src

I could launch the above command in a child process, but this approach has cross-platform issues and makes error handling difficult. I’d much rather use an API.

I’d be happy to use the exact functions from command.coffee, but I can’t work out how.

Addendum: I see require('coffee-script').compile, which compiles a string to another string. That would still leave me to do the grunt work of looping over files and subfolders and writing the output.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T02:08:43+00:00Added an answer on June 1, 2026 at 2:08 am

    The API you’re looking for is in coffee-script.coffee. It exports a compile function that does what it says on the tin.

    To use command.coffee’s run function directly you’d have to first overwrite process.argv with the options you would have passed on the command line.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on upgrading a library that looks something like this (in coffeescript for
I have a working coffeescript/backbone idiom that looks like this: SidebarWidgets = ((() ->
It's not working for some reason (in coffeescript) afunction = () -> window.clearTimeout(timeoutID) $(.x).text(#{message}).addClass(y)
I'm setting up a Cakefile that will compile and minify my CoffeeScript and minify
Working with python interactively, it's sometimes necessary to display a result which is some
Working with TCL and I'd like to implement something like the Strategy Pattern .
I was able to get jQuery autocomplete working in CoffeeScript just fine, but when
I am working on a CoffeeScript game engine for Html5 canvas. I came up
Working on rewriting the front-end of my site in Coffeescript. I understand how to
I'm trying to get the nodeunit module working within a coffeescript project but can't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.