Part 1: Project Setup
1.1 Initialize the project
Section titled “1.1 Initialize the project”mkdir dp-mini-demo && cd dp-mini-demonpm init -yEdit package.json to set "type": "module" and "private": true:
{ "name": "dp-mini-demo", "version": "1.0.0", "type": "module", "private": true}1.2 Install dependencies
Section titled “1.2 Install dependencies”npm install @libar-dev/delivery-process@preadded 63 packages, and audited 64 packages in 4s
23 packages are looking for funding run `npm fund` for detailsnpm install -D typescript tsxadded 31 packages, and audited 95 packages in 3s
25 packages are looking for funding run `npm fund` for detailsPre-release note: The
@predist-tag installs the latest pre-release version (currently v1.0.0-pre.0). Once 1.0.0 stable ships, this becomesnpm install @libar-dev/delivery-process.
@libar-dev/delivery-process— the documentation generation enginetypescript— for type checkingtsx— for running TypeScript CLI tools directly
1.3 Create tsconfig.json
Section titled “1.3 Create tsconfig.json”{ "compilerOptions": { "target": "ES2022", "module": "NodeNext", "moduleResolution": "NodeNext", "strict": true, "esModuleInterop": true, "skipLibCheck": true, "outDir": "dist" }, "include": ["src/**/*.ts", "delivery-process.config.ts"]}1.4 Create folder structure
Section titled “1.4 Create folder structure”mkdir -p src/sample-sources src/specs src/stubsCheckpoint: Part 1
Section titled “Checkpoint: Part 1”package.jsonhas"type": "module"@libar-dev/delivery-processappears in dependenciestypescriptandtsxappear in devDependenciestsconfig.jsonexists- Empty folders:
src/sample-sources/,src/specs/,src/stubs/