Giter Site home page Giter Site logo

assetgraph-builder-docker's People

Contributors

gustavnikolaj avatar

Watchers

 avatar  avatar

assetgraph-builder-docker's Issues

Specifying which version of node to use.

After landing #2 you'll need a version of the assetgraph-builder docker image with the correct version of node.js installed, if you have any binary optional dependencies.

Specifying which version of assetgraph-builder to use.

I talked to @papandreou today about this POC. We need a way to specify the version of the image that are used with this package.

Option 1:

Adding a version property to the "assetgraph-builder" value in package.json and allowing it to be specified as a commandline argument.

This forces us to move the pulling of the image from postinstall to runtime.

Option 2:

Release assetgraph-builder-docker when releasing assetgraph-builder itself. This means merging this repository to the assetgraph-builder repository.

Picking up on optional dependencies.

When running buildProduction from this package in a project using SystemJs, with a package.json containing the following:

{
  ...,
  "devDependency": {
    "systemjs-builder": "..."
  },
  "assetgraph-builder": {
    "outroot": "http-pub-production",
    "inputFile": "http-pub/index.html"
  }

The following error is thrown:

$ buildProduction
Guessing --root from input files: file:///app/http-pub/
 ✔ 0.000 secs: logEvents
 ✔ 0.001 secs: registerRequireJsConfig
 ✔ 0.002 secs: registerLabelsAsCustomProtocols
 ✔ 0.038 secs: loadAssets
 ✔ 0.074 secs: populate
 ✔ 0.029 secs: assumeRequireJsConfigHasBeenFound
 ✘ ERROR: Error: buildProduction transform: bundleSystemJs transform: The graph contains 2 top-level System.import calls, but systemjs-builder is not available. Please install systemjs-builder 0.14.9+ in the the containing project.
              at bundleSystemJs (/usr/local/lib/node_modules/assetgraph-builder/node_modules/assetgraph/lib/transforms/bundleSystemJs.js:549:19)
              at Object._onImmediate (/usr/local/lib/node_modules/assetgraph-builder/node_modules/assetgraph/lib/index.js:663:35)
              at processImmediate [as _immediateCallback] (timers.js:363:15)

This is because assetgraph-builder is installed at /usr/local/lib/node_modules/assetgraph-builder and thus won't pick up on the systemjs-builder present in /app/node_modules/systemjs-builder.

This could be solved by installing optionalDependencies in the image, but that is suboptimal, as you want it to use the version of less that you have installed in your project, not just some random version shipped with the image...

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.