Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add wireit for build scripts #60

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ debugging
.vscode
vscode*
table-generation/generated
.wireit
109 changes: 52 additions & 57 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"dependencies": {
"@types/color": "^3.0.4",
"@types/cssesc": "^3.0.0",
"@types/glob": "^8.1.0",
"@types/text-table": "^0.2.2",
"camelcase": "^8.0.0",
"chalk": "^5.3.0",
Expand All @@ -62,7 +63,9 @@
"unist-util-position": "^4.0.4",
"vfile-reporter-json": "^3.2.0",
"vfile-reporter-position": "^0.1.7",
"vfile-reporter-pretty": "^6.1.0"
"vfile-reporter-pretty": "^6.1.0",
"vite-node": "^0.34.6",
"wireit": "^0.14.1"
},
"name": "unified-latex"
}
2 changes: 1 addition & 1 deletion packages/structured-clone/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { isCjsPackage } from "../../scripts/esbuild-module-check.mjs";
const explicitDeps = Object.keys(packageJson.dependencies || {});

const commonConfig = {
entryPoints: ["./index.ts"],
entryPoints: ["./src/index.ts"],
outfile: "./dist/index.js",
bundle: true,
minify: false,
Expand Down
10 changes: 9 additions & 1 deletion packages/structured-clone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,17 @@
"scripts": {
"build": "npm run clean && mkdirp ./dist && npm run compile",
"clean": "rm -rf ./dist && rm -rf tsconfig.tsbuildinfo",
"compile": "tsc -b tsconfig.json & node build.js & for job in `jobs -p`; do wait ${job}; done",
"compile": "wireit",
"compile:types": "tsc -b tsconfig.json",
"compile:js": "node build.js",
"test": "vitest"
},
"wireit": {
"compile": {
"dependencies": ["compile:types", "compile:js"],
"files": ["src/**/*.ts", "index.ts", "tsconfig.json"]
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/siefkenj/unified-latex.git"
Expand Down
2 changes: 1 addition & 1 deletion packages/structured-clone/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../tsconfig.build.json",
"compilerOptions": {
"outDir": "./dist/",
"rootDir": "."
"rootDir": "./src"
},
"include": ["./**/*.ts"],
"references": [{ "path": "../unified-latex-types" }]
Expand Down
20 changes: 17 additions & 3 deletions packages/support-tables/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
"scripts": {
"build": "npm run clean && mkdirp ./dist && npm run compile",
"clean": "rm -rf ./dist && rm -rf tsconfig.tsbuildinfo",
"compile": "tsc -b tsconfig.json & node build.js & for job in `jobs -p`; do wait ${job}; done",
"compile": "wireit",
"compile:js": "node build.js",
"compile:types": "tsc -b tsconfig.json",
"package": "node ../../scripts/make-package.mjs",
"publish": "cd dist && npm publish"
},
Expand All @@ -46,5 +48,17 @@
"url": "https://github.com/siefkenj/unified-latex/issues"
},
"homepage": "https://github.com/siefkenj/unified-latex#readme",
"private": true
}
"private": true,
"wireit": {
"compile": {
"dependencies": [
"compile:types",
"compile:js"
],
"files": [
"src/**/*.ts",
"tsconfig.json"
]
}
}
}
20 changes: 17 additions & 3 deletions packages/unified-latex-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
"scripts": {
"build": "npm run clean && mkdirp ./dist && npm run compile",
"clean": "rm -rf ./dist && rm -rf tsconfig.tsbuildinfo",
"compile": "tsc -b tsconfig.json & node build.js & for job in `jobs -p`; do wait ${job}; done",
"compile": "wireit",
"compile:js": "node build.js",
"compile:types": "tsc -b tsconfig.json",
"package": "node ../../scripts/make-package.mjs",
"publish": "cd dist && npm publish"
},
Expand All @@ -49,5 +51,17 @@
"url": "https://github.com/siefkenj/unified-latex/issues"
},
"homepage": "https://github.com/siefkenj/unified-latex#readme",
"private": true
}
"private": true,
"wireit": {
"compile": {
"dependencies": [
"compile:types",
"compile:js"
],
"files": [
"src/**/*.ts",
"tsconfig.json"
]
}
}
}
22 changes: 18 additions & 4 deletions packages/unified-latex-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@
"scripts": {
"build": "npm run clean && mkdirp ./dist && npm run compile",
"clean": "rm -rf ./dist && rm -rf tsconfig.tsbuildinfo",
"compile": "tsc -b tsconfig.json & node build.js & for job in `jobs -p`; do wait ${job}; done",
"compile": "wireit",
"compile:js": "node build.js",
"compile:types": "tsc -b tsconfig.json",
"package": "node ../../scripts/make-package.mjs",
"test": "vitest",
"publish": "cd dist && npm publish"
"publish": "cd dist && npm publish",
"test": "vitest"
},
"repository": {
"type": "git",
Expand All @@ -78,5 +80,17 @@
"private": true,
"devDependencies": {
"source-map-support": "^0.5.21"
},
"wireit": {
"compile": {
"dependencies": [
"compile:types",
"compile:js"
],
"files": [
"src/**/*.ts",
"tsconfig.json"
]
}
}
}
}
24 changes: 19 additions & 5 deletions packages/unified-latex-ctan/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@
"scripts": {
"build": "npm run clean && mkdirp ./dist && npm run compile",
"clean": "rm -rf ./dist && rm -rf tsconfig.tsbuildinfo",
"compile": "tsc -b tsconfig.json & node build.js & for job in `jobs -p`; do wait ${job}; done",
"test": "vitest",
"compile": "wireit",
"compile:js": "node build.js",
"compile:types": "tsc -b tsconfig.json",
"package": "node ../../scripts/make-package.mjs",
"publish": "cd dist && npm publish"
"publish": "cd dist && npm publish",
"test": "vitest"
},
"repository": {
"type": "git",
Expand All @@ -75,5 +77,17 @@
"url": "https://github.com/siefkenj/unified-latex/issues"
},
"homepage": "https://github.com/siefkenj/unified-latex#readme",
"private": true
}
"private": true,
"wireit": {
"compile": {
"dependencies": [
"compile:types",
"compile:js"
],
"files": [
"src/**/*.ts",
"tsconfig.json"
]
}
}
}
20 changes: 17 additions & 3 deletions packages/unified-latex-lint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@
"scripts": {
"build": "npm run clean && mkdirp ./dist && npm run compile",
"clean": "rm -rf ./dist && rm -rf tsconfig.tsbuildinfo",
"compile": "tsc -b tsconfig.json & node build.js & for job in `jobs -p`; do wait ${job}; done",
"compile": "wireit",
"compile:js": "node build.js",
"compile:types": "tsc -b tsconfig.json",
"package": "node ../../scripts/make-package.mjs",
"publish": "cd dist && npm publish"
},
Expand All @@ -72,5 +74,17 @@
"url": "https://github.com/siefkenj/unified-latex/issues"
},
"homepage": "https://github.com/siefkenj/unified-latex#readme",
"private": true
}
"private": true,
"wireit": {
"compile": {
"dependencies": [
"compile:types",
"compile:js"
],
"files": [
"src/**/*.ts",
"tsconfig.json"
]
}
}
}
24 changes: 19 additions & 5 deletions packages/unified-latex-prettier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@
"scripts": {
"build": "npm run clean && mkdirp ./dist && npm run compile",
"clean": "rm -rf ./dist && rm -rf tsconfig.tsbuildinfo",
"compile": "tsc -b tsconfig.json & node build.js & for job in `jobs -p`; do wait ${job}; done",
"test": "vitest",
"compile": "wireit",
"compile:js": "node build.js",
"compile:types": "tsc -b tsconfig.json",
"package": "node ../../scripts/make-package.mjs",
"publish": "cd dist && npm publish"
"publish": "cd dist && npm publish",
"test": "vitest"
},
"repository": {
"type": "git",
Expand All @@ -59,5 +61,17 @@
"url": "https://github.com/siefkenj/unified-latex/issues"
},
"homepage": "https://github.com/siefkenj/unified-latex#readme",
"private": true
}
"private": true,
"wireit": {
"compile": {
"dependencies": [
"compile:types",
"compile:js"
],
"files": [
"src/**/*.ts",
"tsconfig.json"
]
}
}
}
24 changes: 19 additions & 5 deletions packages/unified-latex-to-hast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,13 @@
},
"scripts": {
"build": "npm run clean && mkdirp ./dist && npm run compile",
"test": "vitest",
"clean": "rm -rf ./dist && rm -rf tsconfig.tsbuildinfo",
"compile": "tsc -b tsconfig.json & node build.js & for job in `jobs -p`; do wait ${job}; done",
"compile": "wireit",
"compile:js": "node build.js",
"compile:types": "tsc -b tsconfig.json",
"package": "node ../../scripts/make-package.mjs",
"publish": "cd dist && npm publish"
"publish": "cd dist && npm publish",
"test": "vitest"
},
"repository": {
"type": "git",
Expand All @@ -75,5 +77,17 @@
"url": "https://github.com/siefkenj/unified-latex/issues"
},
"homepage": "https://github.com/siefkenj/unified-latex#readme",
"private": true
}
"private": true,
"wireit": {
"compile": {
"dependencies": [
"compile:types",
"compile:js"
],
"files": [
"src/**/*.ts",
"tsconfig.json"
]
}
}
}
24 changes: 19 additions & 5 deletions packages/unified-latex-to-mdast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,13 @@
},
"scripts": {
"build": "npm run clean && mkdirp ./dist && npm run compile",
"test": "vitest",
"clean": "rm -rf ./dist && rm -rf tsconfig.tsbuildinfo",
"compile": "tsc -b tsconfig.json & node build.js & for job in `jobs -p`; do wait ${job}; done",
"compile": "wireit",
"compile:js": "node build.js",
"compile:types": "tsc -b tsconfig.json",
"package": "node ../../scripts/make-package.mjs",
"publish": "cd dist && npm publish"
"publish": "cd dist && npm publish",
"test": "vitest"
},
"repository": {
"type": "git",
Expand All @@ -62,5 +64,17 @@
"url": "https://github.com/siefkenj/unified-latex/issues"
},
"homepage": "https://github.com/siefkenj/unified-latex#readme",
"private": true
}
"private": true,
"wireit": {
"compile": {
"dependencies": [
"compile:types",
"compile:js"
],
"files": [
"src/**/*.ts",
"tsconfig.json"
]
}
}
}
20 changes: 17 additions & 3 deletions packages/unified-latex-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
"scripts": {
"build": "npm run clean && npm run compile",
"clean": "rm -rf ./dist && rm -rf tsconfig.tsbuildinfo",
"compile": "tsc -b tsconfig.json & node build.js & for job in `jobs -p`; do wait ${job}; done",
"compile": "wireit",
"compile:js": "node build.js",
"compile:types": "tsc -b tsconfig.json",
"package": "node ../../scripts/make-package.mjs",
"publish": "cd dist && npm publish"
},
Expand All @@ -40,5 +42,17 @@
"url": "https://github.com/siefkenj/unified-latex/issues"
},
"homepage": "https://github.com/siefkenj/unified-latex#readme",
"private": true
}
"private": true,
"wireit": {
"compile": {
"dependencies": [
"compile:types",
"compile:js"
],
"files": [
"src/**/*.ts",
"tsconfig.json"
]
}
}
}
Loading