Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.04 KB

File metadata and controls

40 lines (28 loc) · 1.04 KB

Advanced Usage

Customizing Templates

You can create custom project templates by adding them to scripts/project-templates/.

  1. Create a directory: scripts/project-templates/my-template.
  2. Add a install.sh script (optional) or just populate the directory with files.
  3. Use it: pem init my-project my-template.

Managed Environments

PEM creates centralized environments for IDEs in MANAGED_VENVS_DIR (Default: ~/.venvs).

  • Batch Creation: Run scripts/create-ide-envs.sh to create/update all managed environments.
  • Customization: Edit IDE_COMMON_PACKAGES in config.env to change what gets installed.

CI/CD Integration

PEM is designed to work in CI/CD pipelines.

GitHub Actions Example

steps:
  - uses: actions/checkout@v3
  - name: Install PEM
    run: make install
  - name: Initialize Project
    run: pem init my-app standard
  - name: Run Tests
    run: |
      cd my-app
      source .venv/bin/activate
      pytest

Troubleshooting

See TROUBLESHOOTING.md for common issues.