Git Product home page Git Product logo

atom-coffee-autocompile's Introduction

coffee-autocompile package

Auto compile Coffee-script file on save.


Add the parameters on the first line (or the second line if the file contains a shebang) of the Coffee-script file.

  • out (string)1 2: path of JS file to create
  • bare (bool): pass the --bare option to the Coffee-script compiler
  • compress (bool): compress output JavaScript
  • sourcemap (bool): create a sourcemap
    • The sourcemap file will be saved in {outputFilePath}.map

1 If the compileIfNoOutSpecified setting is enabled, this may be omitted. The file will then be saved in the same directory as the source file. If the file has the .coffee extension it will be removed, and the .js extension will always be appended.

2 The output filename may contain $1 or $2, which will be replaced by the input basename and extension, respectively. So a file named in.coffee and is configured with # out: $1.$2.js will compile to in.coffee.js.

Coffee autocompile will check if Coffee-script is installed in the (parent) directory of the Coffee-script file and use that one to compile the file. If no local installation is found, it uses the bundled Coffee-script module.

Examples

Compile the CoffeeScript file to main.js in the same directory as the source file

# out: ./main.js

Compress the file and saves to the absolute path /path/to/main.min.js

# out: /path/to/main.min.js, compress: true

Save a sourcemap in the same directory as the output file (the parent directory of the source file)

# out: ../main.js, sourcemap: true

atom-coffee-autocompile's People

Contributors

olmokramer avatar paulpflug avatar gerasev-kirill avatar

Watchers

James Cloos avatar  avatar  avatar

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.