Giter Site home page Giter Site logo

jsmacro's People

Contributors

rlgomes avatar smartt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jsmacro's Issues

Any plans to implement @include?

Hi,

It would be nice to be able to pull in dependencies into a file before processing it. I just looked at the code, so I'm not sure how feasible this is.

Thanks!

Parsing minified files is slow

This, of course, needs a test case, and a definition of "slow". A quick look at crunching a yui-min.js field took:

  • 1.214 sec. using pypy 1.6
  • 5.032 sec. using python 2.6
  • 7.281 sec using python 3.2

I am surprised to see any one file taking over a second.

(For what it's worth, python2.6 is normally the fastest for me at running the test suite; and python3.2 is the slowest.)

Support for boolean operator for ifdef / ifndef

As far as I know, at the moment there is no way to enable a section of code if two or more variables are defined.

let's say I want to have a generic "DEBUG" compilation mode wich, if enabled, automatically "enable" the logs, enable some UI modifications, etc. I also want some more fine grained variables; something along the lines of ENABLE_LOGS, ENABLE_UI_NEXT etc...

At the moment I need to duplicate the code and do something like

...normal stuff...
//#ifdef DEBUG
console.log('log debug stuff');
//#endif
//#ifdef ENABLE_LOGS
console.log('log debug stuff');
//#endif
...normal stuff...

it would be neat, for me, to do something like

//#ifdef DEBUG or ENABLE_LOGS
console.log('log debug stuff');
//#endif

I have no specified sintax for the boolean combination, if "and" and "not" or "&&" and "||" or some variant are fine

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.