mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update auto-organize
This commit is contained in:
parent
12bd0f2928
commit
ffb022d13c
29 changed files with 733 additions and 387 deletions
34
dashboard-ui/bower_components/native-promise-only/build.js
vendored
Normal file
34
dashboard-ui/bower_components/native-promise-only/build.js
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
var fs = require("fs"),
|
||||
path = require("path"),
|
||||
exec = require("child_process").exec,
|
||||
ugly = require("uglify-js"),
|
||||
|
||||
result
|
||||
;
|
||||
|
||||
console.log("*** Building ***");
|
||||
console.log("Minifying to npo.js.");
|
||||
|
||||
try {
|
||||
result = ugly.minify(path.join(__dirname,"lib","npo.src.js"),{
|
||||
mangle: true,
|
||||
compress: true,
|
||||
output: {
|
||||
comments: /^!/
|
||||
}
|
||||
});
|
||||
|
||||
fs.writeFileSync(
|
||||
path.join(__dirname,"npo.js"),
|
||||
result.code + "\n",
|
||||
{ encoding: "utf8" }
|
||||
);
|
||||
|
||||
console.log("Complete.");
|
||||
}
|
||||
catch (err) {
|
||||
console.error(err);
|
||||
process.exit(1);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue