GithubHelp home page GithubHelp logo

jarrett / ichiban Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 171 KB

A scriptable static-site compiler with the full power of Ruby.

License: MIT License

Ruby 89.94% CSS 0.30% JavaScript 0.61% Shell 0.13% ApacheConf 3.84% HTML 5.18%

ichiban's People

Contributors

jarrett avatar mirandagrace avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

ichiban's Issues

Require Ruby >= 2.1.0

Guard doesn't support 1.9.3. Although Guard suggests Ruby 2.2.2, most of Ichiban was developed on 2.1.0, and it still works there as far as we can tell. So Ichiban should either fail or warn if running on Ruby < 2.1.0.

Ungraceful failure when UglifyJS2 is not installed

Background: To compile JavaScript, we shell out to UglifyJS2.

Issue: If the UglifyJS2 executable is not in the $PATH, compilation fails ungracefully.

Solution: Check if UglifyJS2 exists based on exit status of:

type uglifyjs >/dev/null 2>&1

Then check that the version is at least 2.4.10:

uglifyjs --version

Watcher sometimes fails to create new directory

Steps to reproduce: Create an HTML file. mkdir and git mv HTML file to new directory. You should see a blue deletion message and a green compilation message. Instead, it's a blue deletion message and an error that the destination directory doesn't exist.

Copy original JS files into compiled folder for source mapping

Currently, Ichiban generates a source map and provide its URL in the minified JS file. However, Ichiban does not automatically copy the original files into the compiled folder. It should. This is necessary in order for the in-browser debugger to download the files identified in the source map. As it stands, source mapping is broken unless you manually copy the original JS files into compiled/js.

Split up AssetCompiler

AssetCompiler is built as if it will know how to compile all compilable assets, e.g. SCSS. Yet we do our EJS in a separate class. That's a mistake.

EJSCompiler is fairly complex. So it probably shouldn't be rolled into AssetCompiler. Thus, our policy should be that AssetCompiler only handles files that need no transformation. SCSS compilation would be moved to its own class.

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.