uglify-js: remove remaining aliases, entry from nodePackages
This commit is contained in:
parent
d5491008d9
commit
2040dfa812
@ -1,7 +1,7 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, python3Packages
|
, python3Packages
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, nodePackages
|
, uglify-js
|
||||||
}:
|
}:
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
@ -20,7 +20,7 @@ python3Packages.buildPythonApplication rec {
|
|||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
python3Packages.doit
|
python3Packages.doit
|
||||||
python3Packages.pyscss
|
python3Packages.pyscss
|
||||||
nodePackages.uglify-js
|
uglify-js
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [
|
propagatedBuildInputs = with python3Packages; [
|
||||||
|
@ -485,7 +485,7 @@ rec {
|
|||||||
# returns an executable
|
# returns an executable
|
||||||
#
|
#
|
||||||
# Example:
|
# Example:
|
||||||
# writeJS "example" { libraries = [ pkgs.nodePackages.uglify-js ]; } ''
|
# writeJS "example" { libraries = [ pkgs.uglify-js ]; } ''
|
||||||
# var UglifyJS = require("uglify-js");
|
# var UglifyJS = require("uglify-js");
|
||||||
# var code = "function add(first, second) { return first + second; }";
|
# var code = "function add(first, second) { return first + second; }";
|
||||||
# var result = UglifyJS.minify(code);
|
# var result = UglifyJS.minify(code);
|
||||||
|
18
pkgs/development/node-packages/node-packages.nix
generated
18
pkgs/development/node-packages/node-packages.nix
generated
@ -90192,24 +90192,6 @@ in
|
|||||||
bypassCache = true;
|
bypassCache = true;
|
||||||
reconstructLock = true;
|
reconstructLock = true;
|
||||||
};
|
};
|
||||||
uglify-js = nodeEnv.buildNodePackage {
|
|
||||||
name = "uglify-js";
|
|
||||||
packageName = "uglify-js";
|
|
||||||
version = "3.18.0";
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://registry.npmjs.org/uglify-js/-/uglify-js-3.18.0.tgz";
|
|
||||||
sha512 = "SyVVbcNBCk0dzr9XL/R/ySrmYf0s372K6/hFklzgcp2lBFyXtw4I7BOdDjlLhE1aVqaI/SHWXWmYdlZxuyF38A==";
|
|
||||||
};
|
|
||||||
buildInputs = globalBuildInputs;
|
|
||||||
meta = {
|
|
||||||
description = "JavaScript parser, mangler/compressor and beautifier toolkit";
|
|
||||||
homepage = "https://github.com/mishoo/UglifyJS#readme";
|
|
||||||
license = "BSD-2-Clause";
|
|
||||||
};
|
|
||||||
production = true;
|
|
||||||
bypassCache = true;
|
|
||||||
reconstructLock = true;
|
|
||||||
};
|
|
||||||
undollar = nodeEnv.buildNodePackage {
|
undollar = nodeEnv.buildNodePackage {
|
||||||
name = "undollar";
|
name = "undollar";
|
||||||
packageName = "undollar";
|
packageName = "undollar";
|
||||||
|
@ -41,6 +41,7 @@
|
|||||||
, jq
|
, jq
|
||||||
, moreutils
|
, moreutils
|
||||||
, terser
|
, terser
|
||||||
|
, uglify-js
|
||||||
|
|
||||||
, plugins ? []
|
, plugins ? []
|
||||||
}@args:
|
}@args:
|
||||||
@ -214,7 +215,7 @@ let
|
|||||||
nativeBuildInputs = runtimeDeps ++ [
|
nativeBuildInputs = runtimeDeps ++ [
|
||||||
postgresql
|
postgresql
|
||||||
redis
|
redis
|
||||||
nodePackages.uglify-js
|
uglify-js
|
||||||
terser
|
terser
|
||||||
yarn
|
yarn
|
||||||
jq
|
jq
|
||||||
|
Loading…
Reference in New Issue
Block a user