#! /usr/bin/env node var sys = require("util"); var fs = require("fs"); var UglifyJS = require("../tools/node"); var files = process.argv.slice(2); var map = UglifyJS.SourceMap(); var output = UglifyJS.OutputStream({ beautify : false, source_map : map }); function do_file(file) { var code = fs.readFileSync(file, "utf8"); // parse var ast = UglifyJS.parse(code); // mangle ast.figure_out_scope(); ast.mangle_names(); // compress var compressor = UglifyJS.Compressor(); ast.squeeze(compressor); // generate source into the output stream // first reset the current file name in the source map. UglifyJS.time_it("generate", function(){ map.set_source(file); ast.print(output); }); }; files.forEach(do_file); fs.writeFileSync("/tmp/source-map.json", map, "utf8"); sys.print(output); ion> Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/tests/system.scm
AgeCommit message (Expand)Author
2021-08-29Migrate to the new 'targets' field of bootloader-configuration....The old 'target' field is deprecated; adjust the sources to use the new 'targets' one instead. * doc/guix-cookbook.texi<target>: Replace by 'targets'. * gnu/bootloader/grub.scm: Likewise. * gnu/installer/parted.scm: Likewise. * gnu/machine/digital-ocean.scm: Likewise. * gnu/system/examples/asus-c201.tmpl: Likewise * gnu/system/examples/bare-bones.tmpl: Likewise * gnu/system/examples/bare-hurd.tmpl: Likewise * gnu/system/examples/beaglebone-black.tmpl: Likewise * gnu/system/examples/desktop.tmpl: Likewise * gnu/system/examples/docker-image.tmpl: Likewise * gnu/system/examples/lightweight-desktop.tmpl: Likewise * gnu/system/examples/vm-image.tmpl: Likewise * gnu/system/examples/yggdrasil.tmpl: Likewise * gnu/system/hurd.scm: Likewise * gnu/system/images/hurd.scm: Likewise * gnu/system/images/novena.scm: Likewise * gnu/system/images/pine64.scm: Likewise * gnu/system/images/pinebook-pro.scm: Likewise * gnu/system/images/rock64.scm: Likewise * gnu/system/install.scm: Likewise * gnu/system/vm.scm: Likewise * gnu/tests.scm: Likewise * gnu/tests/ganeti.scm: Likewise * gnu/tests/install.scm: Likewise * gnu/tests/nfs.scm: Likewise * gnu/tests/telephony.scm: Likewise * tests/boot-parameters.scm: Likewise * tests/system.scm: Likewise Maxim Cournoyer