Critical Manufacturing Schematics are meant to be a quick and easy way of getting started with CMF IoT Tasks and UI Customization projects, by providing a basic structure for the project and all the recommended tooling.
-
IoT Schematics - Schematics for getting started with IoT Tasks Projects.
-
UI Schematics - Schematics for getting started with UI Customization Projects.
-
Clone this repository into your repository root.
-
Run:
npm install
To test locally, install @criticalmanufacturing/ngx-iot-schematics globally and use the schematics command line tool. That tool acts the same as the generate command of the Angular CLI, but also has a debug mode.
Check the documentation with
schematics --helpnpm run test will run the unit tests, using Vitest as a runner and test framework.
- Update the root package.json version
- Build the packages:
npm run build
- Publish:
npm run publish [-- --dry-run]
- Add tags (optional):
npm run add-tags [-- tag1 tag2 ...] [-- --dry-run]
Examples:
npm run publish # Publish packages
npm run publish -- --dry-run # Test without publishing
npm run add-tags # Add auto-generated tag
npm run add-tags -- latest # Add 'latest' tag
npm run add-tags -- latest beta-100 # Add multiple tagsNote: When publishing via GitHub Actions workflow, a GitHub release is automatically created for final versions (e.g., 1.0.0), but not for pre-release versions (e.g., 1.0.0-beta).