Code Monkey home page Code Monkey logo

Comments (5)

paulmillr avatar paulmillr commented on July 17, 2024

+10000, I hate js output in repositories, it's a trash and it's more hard to read commit changes, so doing this every time in 15+ my repos.

from chaplin.

paulmillr avatar paulmillr commented on July 17, 2024

We should also probably rename coffee to src because there will be no corresponding js then.

from chaplin.

molily avatar molily commented on July 17, 2024

This is not so easy. All Chaplin modules need to be loaded in order as CoffeeScripts so RequireJS does not try to load JS files because of the Chaplin module dependencies. But order!cs! does not work properly, it’s also disencouraged by the RequireJS documentation. RequireJS seems to use the right modules in the end, so the tests pass through, but it generates a lot of 404s. I optimized the load order to reduce them, but I cannot prevent them completely.

Of course we could run the tests against the one-file module, but I’d like to edit a Chaplin CS file and reload the tests in the browser to see the result instantly.

A complex CI watcher could handle these problems, compiling the CS files and running the suite in connected browsers again, but that’s too much overhead IMHO.

from chaplin.

molily avatar molily commented on July 17, 2024

Meh. Can’t make progress on this. Will probably fall back to compiling the CS for the tests, but the compiled files don’t need to be in the repo of course.

from chaplin.

molily avatar molily commented on July 17, 2024

See #73

from chaplin.

Related Issues (20)

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.