Coder Social home page Coder Social logo

asset-pipeline's People

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

asset-pipeline's Issues

subdirectories

check serving some/nested/file.js, might be a problem

views

this module should register itself as a template renderer

Wildcard support in path

This is useful package thanks for work! And I have a feature request.
Ruby on rails has the require_tree directive in assets pipeline which allows include all scripts in selected dir, without need to specify each separately.
So, your includes in tests

%script(src="<%- asset_uri('/js/jquery-1.7.1.min.js') %>")
%script(src="<%- asset_uri('/js/qunit-git.js') %>")
%script(src="<%- asset_uri('/js/async.min.js') %>")
%script(src="<%- asset_uri('/tests/run-all.js') %>")

will may become like this

<% asset_require_tree('/js/*.js').forEach(assetUri) { %>
%script(src="<%- assetUri %>")
<% }); %>
%script(src="<%- asset_uri('/tests/run-all.js') %>")

module name

consider using pipeline because it going to be used with views too

jade: include

doesn't work because there are no include paths in jade

directories structure

maybe we should write it like this:

./assets/ - base path
./assets/.build/ - temporary
./assets/.static/ - files to serve
./assets/images/
./assets/css/
./assets/js/
./assets/views/

first lookup in this folders and then in ./assets/

deleting a cache

  1. run tests
  2. delete cached files
  3. run tests

= fail - we should probably add some checks there

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.