Git Product home page Git Product logo

assembly's People

Contributors

ddgromit avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

assembly's Issues

javascript syntax error kills process

Whenever you save a javascript file with bad syntax it throws an exception and crashes the process. I believe this is happening when trying to read requires in one of the processors

readme

create a readme to explain the point of this project and how to use it

support nested js dir

Currently all javascripts are expected to start at the root of the source dir. Add an option to let javascripts start at a subdir within source.

update path for requires array

add ability to update paths of require array, for example:

require(["./app", "./nested/foo"], function(app, foo){}); 

should become

require(["app", "nested/foo"], function(app, foo){}); 

version assets

create an option to write out assets with its checksum to the file in order to version it. A require config will need to also be created in order to look up the proper assets

json compiler

create a compiler for json files to generate javascript configs. Use NODE_ENV to compile out the proper config sections (process.env.NODE_ENV) for example

// filename: assets/config.json

"development" : {
  "database" : "mongo://127.0.0.1:7000",
  "host" : "http://localhost"
},

"production" : {
  "database" : "mongo://db.production.com:7000",
  "host" : "http://www.production.com"
}

when running as NODE_ENV=production then compile out to:

// filename: js/config.js

define("js/config", [ "require", "module", "exports" ], function(require, module, exports) {
 module.exports = { "database" : "mongo://db.production.com:7000", "host" : "http://www.production.com"}
});

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.