2021-02-05 17:12:51 +00:00
|
|
|
#!/usr/bin/env nix-shell
|
|
|
|
#! nix-shell -i bash -p nodePackages.node2nix
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
# Download package.json and package-lock.json from the v1.4.0 release
|
|
|
|
curl https://raw.githubusercontent.com/matrix-org/matrix-appservice-slack/9462a75715ea9afba23b757ec90554f10f457a96/package.json -o package.json
|
|
|
|
curl https://raw.githubusercontent.com/matrix-org/matrix-appservice-slack/9462a75715ea9afba23b757ec90554f10f457a96/package-lock.json -o package-lock.json
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
node2nix \
|
2020-04-24 23:36:52 +00:00
|
|
|
--nodejs-12 \
|
|
|
|
--node-env ../../../development/node-packages/node-env.nix \
|
|
|
|
--development \
|
|
|
|
--input package.json \
|
2021-02-05 17:12:51 +00:00
|
|
|
--lock package-lock.json \
|
2020-04-24 23:36:52 +00:00
|
|
|
--output node-packages.nix \
|
2021-02-05 17:12:51 +00:00
|
|
|
--composition node-composition.nix \
|
|
|
|
|
|
|
|
rm -f package.json package-lock.json
|