@shadowgames/cs1-specifications
v1.2.7
Published
CS1 Project Specifications and Documentation
Maintainers
Readme
CS1 Specifications
NPM package containing all CS1 project specifications and documentation.
Description
This package provides programmatic access to the CS1 project specification documents, including process forms, models, user stories, and implementation tasks. It's designed to be consumed by the CS1 frontend application for the Development Tracker dashboard.
Installation
npm install @shadowgames/cs1-specificationsUsage
import {
specifications,
documentTree,
getDocument,
getPipelineStatus,
getFilteredDocumentTree
} from '@shadowgames/cs1-specifications';
// Get all specifications as an object
console.log(specifications);
// Get the document tree structure
const tree = getFilteredDocumentTree();
// Get a specific document
const content = getDocument('PIPELINE-STATUS.md');
// Get pipeline status
const status = getPipelineStatus();Development
Building the Package
The package automatically builds when installing dependencies:
npm installTo manually rebuild:
npm run buildThis will:
- Compile TypeScript files
- Read all specification files from
../.specifications/ - Generate
dist/specifications-data.jswith all content - Copy specification files to
specifications/directory
Publishing Updates
When specifications change:
# Increment version
npm version patch # or minor/major
# Build and publish
npm run build
npm publishIncluded Content
All directories and files from .specifications/ are included in the package:
0_unstructured- Original specifications1_structured- Structured process forms2_models- Data models3_stories- User stories4_tasks- Implementation tasks5_implemented- Completed implementations_archive- Archived documentsdev-tracker- Development tracker specificationsexamples- Example files and templatesscripts- Utility scripts
Structure
cs1-specifications/
├── src/
│ └── index.ts # Main TypeScript source
├── scripts/
│ └── build-specifications.js # Build script
├── dist/ # Compiled output (git ignored)
│ ├── index.js
│ ├── index.d.ts
│ └── specifications-data.js
└── specifications/ # Copy of spec files (git ignored)API
Types
DocumentNode- Tree node structure for documentsPipelineStatus- Pipeline status information
Functions
getDocument(path: string): string | undefined- Get document content by pathgetPipelineStatus(): PipelineStatus- Get current pipeline statusgetFilteredDocumentTree(): DocumentNode[]- Get filtered document tree
Exports
specifications: Record<string, string>- All specification filesdocumentTree: DocumentNode[]- Complete document tree structure
License
UNLICENSED - Private package for CAMA UNITED GmbH
Author
CAMA UNITED GmbH
