remove some of the preinstalled dependencies (code_mirror, prettier)

This commit is contained in:
Tasia Iso 2024-03-22 01:57:17 +01:00
parent 474e39c9c3
commit 3bd827a9f7
5 changed files with 16 additions and 36 deletions

3
.gitignore vendored
View File

@ -8,3 +8,6 @@ out
*.swo
*.swp
.zsign_cache/
deps/codemirror/cm6.js
deps/prettier/standalone.mjs

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,8 @@
{
"name": "tildefriends",
"scripts": {
"prettier": "prettier . --check --cache --write"
"prettier": "prettier . --check --cache --write",
"postinstall": "sh tools/install_dependencies.sh"
},
"author": "Cory McWilliams",
"license": "MIT",

View File

@ -0,0 +1,11 @@
#! /bin/sh
cp node_modules/prettier/standalone.mjs deps/prettier
wget -O deps/lit/lit-all.min.js https://cdn.jsdelivr.net/gh/lit/dist@3.1.2/all/lit-all.min.js
wget -O deps/lit/lit-all.min.js.map https://cdn.jsdelivr.net/gh/lit/dist@3.1.2/all/lit-all.min.js.map
cd deps/codemirror_src
npm i
npm run build
cd ../..