2021-02-02 20:47:09 +00:00
|
|
|
#!/usr/bin/env nix-shell
|
|
|
|
#! nix-shell -i bash -p nodePackages.node2nix
|
2019-10-06 19:57:15 +01:00
|
|
|
|
2021-05-06 19:23:51 +01:00
|
|
|
# Download package.json and package-lock.json from the v1.8.0 release
|
|
|
|
curl https://raw.githubusercontent.com/matrix-org/matrix-appservice-slack/1.8.0/package.json -o package.json
|
|
|
|
curl https://raw.githubusercontent.com/matrix-org/matrix-appservice-slack/1.8.0/package-lock.json -o package-lock.json
|
2019-10-06 19:57:15 +01:00
|
|
|
|
2021-02-02 20:47:09 +00:00
|
|
|
node2nix \
|
2020-02-21 13:23:53 +00:00
|
|
|
--nodejs-12 \
|
2019-10-06 19:57:15 +01:00
|
|
|
--node-env ../../../development/node-packages/node-env.nix \
|
|
|
|
--development \
|
|
|
|
--input package.json \
|
2021-02-02 20:47:09 +00:00
|
|
|
--lock package-lock.json \
|
2019-10-06 19:57:15 +01:00
|
|
|
--output node-packages.nix \
|
2021-02-02 20:47:09 +00:00
|
|
|
--composition node-composition.nix \
|
|
|
|
|
|
|
|
rm -f package.json package-lock.json
|