mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
Compare commits
No commits in common. "86ad883d1fdfd9ea52171809d077a6137e542d6c" and "2daf5f1b054413c3bfce464961b853f9a9f38d7e" have entirely different histories.
86ad883d1f
...
2daf5f1b05
8 changed files with 1035 additions and 2349 deletions
|
@ -1,10 +0,0 @@
|
||||||
extends: eslint-config-dmitmel/presets/node
|
|
||||||
parserOptions:
|
|
||||||
sourceType: module
|
|
||||||
rules:
|
|
||||||
no-unused-expressions: off
|
|
||||||
node/shebang: off
|
|
||||||
node/no-unsupported-features/es-syntax:
|
|
||||||
- error
|
|
||||||
- ignores:
|
|
||||||
- modules
|
|
|
@ -1 +0,0 @@
|
||||||
module.exports = require('eslint-config-dmitmel/prettier.config.js');
|
|
|
@ -1,28 +0,0 @@
|
||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
import * as fs from 'fs';
|
|
||||||
import { $ } from 'zx';
|
|
||||||
import argparse from 'argparse';
|
|
||||||
|
|
||||||
let parser = new argparse.ArgumentParser();
|
|
||||||
|
|
||||||
parser.add_argument('INPUT_FILE', {
|
|
||||||
help: 'Path to .mrpack file',
|
|
||||||
});
|
|
||||||
|
|
||||||
let args = parser.parse_args();
|
|
||||||
|
|
||||||
$.sync`unzip -o ${args.INPUT_FILE} -d output`;
|
|
||||||
$.sync`chmod 755 output/modrinth.index.json`;
|
|
||||||
|
|
||||||
let index = JSON.parse(fs.readFileSync("output/modrinth.index.json").toString());
|
|
||||||
for (const mod of index.files) {
|
|
||||||
/** @type {string} */
|
|
||||||
let download = mod.downloads[0];
|
|
||||||
let modId = download.match(/data\/(.+?)\//)[1];
|
|
||||||
|
|
||||||
$({sync: true, verbose: true})`ferium add ${modId}`
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
fs.rmSync("output", {recursive: true, force: true})
|
|
|
@ -1,21 +0,0 @@
|
||||||
{
|
|
||||||
"private": true,
|
|
||||||
"type": "module",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=20.2.0"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@types/argparse": "^2.0.16",
|
|
||||||
"@types/yauzl": "^2.10.3",
|
|
||||||
"eslint": "^8.36.0",
|
|
||||||
"eslint-config-dmitmel": "dmitmel/eslint-config-dmitmel",
|
|
||||||
"eslint-config-prettier": "^8.10.0",
|
|
||||||
"eslint-plugin-node": "^11.1.0",
|
|
||||||
"eslint-plugin-prettier": "^4.2.1"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"argparse": "^2.0.1",
|
|
||||||
"yauzl": "^3.1.3",
|
|
||||||
"zx": "^8.1.4"
|
|
||||||
}
|
|
||||||
}
|
|
1023
script-resources/ferium-mrpack/pnpm-lock.yaml
generated
1023
script-resources/ferium-mrpack/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
1265
script-resources/markdown2htmldoc/pnpm-lock.yaml
generated
1265
script-resources/markdown2htmldoc/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
1035
script-resources/markdown2htmldoc/yarn.lock
Normal file
1035
script-resources/markdown2htmldoc/yarn.lock
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1 +0,0 @@
|
||||||
../script-resources/ferium-mrpack/main.js
|
|
Loading…
Add table
Add a link
Reference in a new issue