gustavnikolaj / assetgraph-builder-docker Goto Github PK
View Code? Open in Web Editor NEWA wrapper around the assetgraph-builder docker container.
A wrapper around the assetgraph-builder docker container.
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.
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.
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.
Release assetgraph-builder-docker when releasing assetgraph-builder itself. This means merging this repository to the assetgraph-builder repository.
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...
A warning about an error in a less file didn't cause the build to fail, even with stoponwarning enabled.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.