gitea node dependencies and generate script

main
Carsten Kragelund 2023-05-19 22:07:21 +02:00
parent d6bc971c25
commit 8a88e88121
Signed by: nyx
GPG Key ID: CADDADEEC9F753C0
5 changed files with 10136 additions and 3456 deletions

@ -2,7 +2,7 @@
{pkgs ? import <nixpkgs> {
inherit system;
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs_14"}:
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-14_x"}:
let
nodeEnv = import ./node-env.nix {

@ -0,0 +1,19 @@
#! /usr/bin/env nix-shell
#! nix-shell -i bash -p bash node2nix curl nodePackages.npm
set -euo pipefail
IFS=$'\n\t'
if [ -n "${DEBUG:-}" ]; then set -x; fi
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
VERSION=$(grep -Po 'version = "\K.+?(?=")' ../default.nix)
RAW_URL="https://gitea.pid1.sh/sanctureplicum/gitea/raw/tag/${VERSION}"
PACKAGES=("package.json" "package-lock.json")
for PACKAGE in ${PACKAGES[@]}; do
curl -sSLf "$RAW_URL/$PACKAGE" -o "$SCRIPT_DIR/$PACKAGE"
done
npm --prefix "$SCRIPT_DIR" i --lockfile-version 2 --package-lock-only
node2nix -d -i "$SCRIPT_DIR/package.json" -l "$SCRIPT_DIR/package-lock.json" -o "$SCRIPT_DIR/node-packages.nix" -c "$SCRIPT_DIR/default.nix" -e "$SCRIPT_DIR/node-env.nix"

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -4,70 +4,82 @@
"private": true,
"type": "module",
"engines": {
"node": ">= 14.0.0"
"node": ">= 16.0.0"
},
"dependencies": {
"@citation-js/core": "0.6.5",
"@citation-js/plugin-bibtex": "0.6.5",
"@citation-js/plugin-csl": "0.6.5",
"@citation-js/plugin-software-formats": "0.6.0",
"@citation-js/core": "0.6.8",
"@citation-js/plugin-bibtex": "0.6.8",
"@citation-js/plugin-csl": "0.6.8",
"@citation-js/plugin-software-formats": "0.6.1",
"@claviska/jquery-minicolors": "2.3.6",
"@github/markdown-toolbar-element": "2.1.1",
"@github/relative-time-element": "4.3.0",
"@github/text-expander-element": "2.3.0",
"@mcaptcha/vanilla-glue": "0.1.0-alpha-3",
"@primer/octicons": "17.10.2",
"@vue/compiler-sfc": "3.2.45",
"@webcomponents/custom-elements": "1.5.1",
"@primer/octicons": "19.1.0",
"@vue/compiler-sfc": "3.3.2",
"@webcomponents/custom-elements": "1.6.0",
"add-asset-webpack-plugin": "2.0.1",
"ansi-to-html": "0.7.2",
"asciinema-player": "3.0.1",
"asciinema-player": "3.3.0",
"clippie": "3.1.4",
"css-loader": "6.7.3",
"dropzone": "6.0.0-beta.2",
"easymde": "2.18.0",
"esbuild-loader": "2.21.0",
"esbuild-loader": "3.0.1",
"escape-goat": "4.0.0",
"fast-glob": "3.2.12",
"font-awesome": "4.7.0",
"jquery": "3.6.3",
"jquery": "3.7.0",
"jquery.are-you-sure": "1.9.0",
"katex": "0.16.4",
"katex": "0.16.7",
"license-checker-webpack-plugin": "0.2.1",
"mermaid": "10.0.2",
"mini-css-extract-plugin": "2.7.4",
"monaco-editor": "0.34.1",
"mermaid": "10.1.0",
"mini-css-extract-plugin": "2.7.5",
"minimatch": "9.0.0",
"monaco-editor": "0.38.0",
"monaco-editor-webpack-plugin": "7.0.1",
"pretty-ms": "8.0.0",
"sortablejs": "1.15.0",
"swagger-ui-dist": "4.15.5",
"swagger-ui-dist": "4.18.3",
"throttle-debounce": "5.0.0",
"tippy.js": "6.3.7",
"tributejs": "5.1.3",
"uint8-to-base64": "0.2.0",
"vue": "3.2.45",
"vue": "3.3.2",
"vue-bar-graph": "2.0.0",
"vue-loader": "17.0.1",
"vue3-calendar-heatmap": "2.0.0",
"webpack": "5.76.2",
"webpack-cli": "5.0.1",
"vue-loader": "17.1.1",
"vue3-calendar-heatmap": "2.0.5",
"webpack": "5.82.1",
"webpack-cli": "5.1.1",
"workbox-routing": "6.5.4",
"workbox-strategies": "6.5.4",
"worker-loader": "3.0.8",
"wrap-ansi": "8.0.1"
"wrap-ansi": "8.1.0"
},
"devDependencies": {
"@playwright/test": "1.29.2",
"@eslint-community/eslint-plugin-eslint-comments": "3.2.1",
"@playwright/test": "1.33.0",
"@rollup/pluginutils": "5.0.2",
"@stoplight/spectral-cli": "6.6.0",
"eslint": "8.32.0",
"@vitejs/plugin-vue": "4.2.3",
"eslint": "8.40.0",
"eslint-plugin-array-func": "3.1.8",
"eslint-plugin-custom-elements": "0.0.8",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-jquery": "1.5.1",
"eslint-plugin-sonarjs": "0.18.0",
"eslint-plugin-unicorn": "45.0.2",
"eslint-plugin-vue": "9.9.0",
"jsdom": "21.0.0",
"markdownlint-cli": "0.33.0",
"stylelint": "15.2.0",
"eslint-plugin-no-jquery": "2.7.0",
"eslint-plugin-no-use-extend-native": "0.5.0",
"eslint-plugin-regexp": "1.15.0",
"eslint-plugin-sonarjs": "0.19.0",
"eslint-plugin-unicorn": "47.0.0",
"eslint-plugin-vue": "9.12.0",
"eslint-plugin-wc": "1.5.0",
"jsdom": "22.0.0",
"markdownlint-cli": "0.34.0",
"stylelint": "15.6.1",
"stylelint-declaration-strict-value": "1.9.2",
"svgo": "3.0.2",
"updates": "13.2.7",
"vitest": "0.27.2"
"updates": "14.1.0",
"vitest": "0.31.0"
},
"browserslist": [
"defaults",