This moves us one step closer to a normal source package. The sources are now unpacked and we run "make install". We still don't build since we don't have all the necessary tools. Also, most importantly, the source tarball now includes our actual sources in addition to the prebuilt binaries.
21 lines
553 B
JavaScript
Executable file
21 lines
553 B
JavaScript
Executable file
#!/usr/bin/env node
|
|
|
|
var path = require('path');
|
|
var fs = require('fs');
|
|
var process = require('process');
|
|
var webpack = require('webpack');
|
|
var config = require('./webpack.config.js');
|
|
|
|
webpack(config, function (err, stats) {
|
|
if (err) {
|
|
console.log(JSON.stringify(err));
|
|
process.exit(1);
|
|
return;
|
|
}
|
|
|
|
var inputs = [ ];
|
|
stats.compilation.fileDependencies.forEach(function(file) {
|
|
inputs.push(path.relative(process.cwd(), file));
|
|
});
|
|
fs.writeFileSync('webpack.inputs', inputs.join("\n") + "\n");
|
|
});
|