Giter Site home page Giter Site logo

mkloubert / vscode-easy-coffeescript Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 1.25 MB

Visual Studio Code extension which compiles CoffeeScript files on save.

Home Page: https://marketplace.visualstudio.com/items?itemName=mkloubert.vscode-easy-coffeescript

License: GNU Lesser General Public License v3.0

TypeScript 100.00%
vscode-extension coffeescript autosave

vscode-easy-coffeescript's Introduction

vscode-easy-coffeescript

Share via Facebook Share via Twitter Share via Google+ Share via Pinterest Share via Reddit Share via LinkedIn Share via Wordpress Share via Email

Latest Release Installs Rating

Visual Studio Code extension, which compiles CoffeeScript files on save.

Table of contents

  1. Install
  2. How to use
  3. Support and contribute
  4. Related projects

Install []

Launch VS Code Quick Open (Ctrl + P), paste the following command, and press enter:

ext install vscode-easy-coffeescript

Or search for things like vscode-easy-coffeescript in your editor.

How to use []

Settings []

Open (or create) your settings.json in your .vscode subfolder of your workspace.

Add a coffeescript.compile section and one or more "watchers":

{
    "coffeescript.compile": {
    }
}
Name Description
bare (true) if output without the top-level function safety wrapper. Default: (false)
exclude One or more glob patterns of files to exclude.
files One or more glob patterns of files to include. Default: **/*.coffee
header (true) if output the Generated by CoffeeScript header. Default: (false)
inlineMap (true) if output the source map as a base64-encoded string in a comment at the bottom. Default: (false)
isActive (true) if extension is active. Default: (true)
options Additional options for the compiler.
sourceMap (true) to generate a source map. Default: (true)

Support and contribute []

If you like the extension, you can support the project by sending a donation via PayPal to me.

To contribute, you can open an issue and/or fork this repository.

To work with the code:

  • clone this repository
  • create and change to a new branch, like git checkout -b my_new_feature
  • run npm install from your project folder
  • open that project folder in Visual Studio Code
  • now you can edit and debug there
  • commit your changes to your new branch and sync it with your forked GitHub repo
  • make a pull request

Related projects []

vscode-helpers []

vscode-helpers is a NPM module, which you can use in your own VSCode extension and contains a lot of helpful classes and functions.

vscode-easy-coffeescript's People

Contributors

mkloubert avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

pal03377

vscode-easy-coffeescript's Issues

Source maps for multiple files not working

//# sourceURL=coffeescript`;

This line makes the sourceURL always be coffeescript which... doesn't really make sense in my eyes, as the sourceURL should be the coffeescript source file, right?

This causes my browser (Google Chrome) to think all my different coffeescript files compiled with your (by the way otherwise awesome) extension come from the same file. Because of this, I can't debug multiple coffeescript files at the same time. 😞

Function as Variable Init But no Def

Description

If I use a function, when it compiles to js, it init[s] the function name as a variable but never gives a value. So, when the script is run, you get an error because the variable (with the name of the function) was initialized and left at that. I assume it automatically creates a new variable when ever there is a "name = " and so it sees the "name = " in "name = ()" and just doesn't check if there are "()" after the " = ".

Code

var example;
example = function() {
//
//FUNCTION CODE
//
};

Error

ReferenceError: Can't find variable: example

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.