feat(setup/project-init): initialize TypeScript ESM project skeleton

- package.json with @alkdev/taskgraph, ESM primary, CJS compat exports
- tsconfig.json targeting Node 18+, strict mode, declaration output
- All production deps: graphology suite, @alkdev/typebox, yaml
- Dev deps: typescript, vitest, @types/node
- src/ skeleton: schema, graph, analysis, frontmatter, error modules
- test/ directory with 5 placeholder test files
- .gitignore and vitest.config.ts
This commit is contained in:
2026-04-27 09:54:01 +00:00
parent 131e3e929b
commit bd8a7b06d0
32 changed files with 2125 additions and 12 deletions

56
package.json Normal file
View File

@@ -0,0 +1,56 @@
{
"name": "@alkdev/taskgraph",
"version": "0.0.1",
"description": "Task graph library — directed acyclic graph analysis, risk scoring, and YAML frontmatter for task management",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"files": [
"dist"
],
"scripts": {
"build": "tsc",
"test": "vitest run",
"test:watch": "vitest",
"lint": "tsc --noEmit",
"prepublishOnly": "npm run build"
},
"keywords": [
"taskgraph",
"dag",
"critical-path",
"risk-analysis",
"graphology"
],
"license": "MIT",
"dependencies": {
"graphology": "^0.26.0",
"graphology-dag": "^0.4.1",
"graphology-metrics": "^2.4.0",
"graphology-components": "^1.5.4",
"graphology-operators": "^1.6.1",
"@alkdev/typebox": "^0.34.49",
"yaml": "^2.8.3"
},
"devDependencies": {
"typescript": "^5.7.0",
"vitest": "^3.1.0",
"@types/node": "^22.0.0"
},
"engines": {
"node": ">=18.0.0"
}
}