Using cjpm for Project Management
When your codebase grows and a single file no longer meets your needs, it's time to use cjpm (Cangjie Project Manager) to create a formal project. cjpm is Cangjie's official project management tool, responsible for dependency management, compilation builds, and version control.
Running cjpm init automatically generates a standard project structure: a cjpm.toml configuration file and a src/ source directory. The configuration file declares the module name, version, dependencies, and other information. cjpm automatically resolves and downloads dependencies.
Running cjpm run compiles and runs the program, cjpm build compiles without running, and cjpm test runs test cases. These commands automatically handle incremental compilation, only recompiling modified files.
The dependencies field in cjpm.toml can declare third-party dependencies, supporting both local paths and Git repositories as sources.
Try creating a real Cangjie project to experience the complete development workflow.