Skip to main content

schematics

Use this skill when working with Spartacus schematics - Angular schematics for installing, configuring, and migrating Spartacus libraries. Trigger when the user mentions writing, debugging, or testing schematics, works with migration scripts or constructor/component deprecations, creates feature schematics configuration, adds new library installation schematics, tests schematics with verdaccio, or updates migrations.json or deprecation data files. Even if the user just mentions 'schematics', 'ng add', or 'ng update' in the context of Spartacus development, load this skill.

소스 정보

저장소
SAP/spartacus
최근 소스 활동
2026년 5월 25일 16:44
감지된 SKILL.md 언어
영어
스타
784
포크
418

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
schematics
description
Use this skill when working with Spartacus schematics - Angular schematics for installing, configuring, and migrating Spartacus libraries. Trigger when the user mentions writing, debugging, or testing schematics, works with migration scripts or constructor/component deprecations, creates feature schematics configuration, adds new library installation schematics, tests schematics with verdaccio, or updates migrations.json or deprecation data files. Even if the user just mentions 'schematics', 'ng add', or 'ng update' in the context of Spartacus development, load this skill.
# Spartacus Schematics Development This skill covers developing and testing Angular schematics for Spartacus library installation and migration. ## Directory Structure | Path | Purpose | |------|---------| | `core-libs/schematics/` | Main installation and migration schematics | | `core-libs/schematics/src/migrations/` | Version-specific migration scripts | | `core-libs/schematics/src/shared/` | Shared utilities | | `core-libs/schematics/src/shared/lib-configs/` | Feature schematics configurations | | `<lib>/schematics/` | Feature-specific installation schematics in each library | ## Testing Commands ```bash # Core Schematics lib cd core-libs/schematics && npm run test # All libs' schematics npm run test:all-schematics # Single library schematics (Jest) nx run <library-name>:test-jest # Specific test file nx run <library-name>:test-jest --testPathPatterns="<spec-filename>" ``` **Technical note**: During `build`/`test`, `feature-toggles.ts` is copied from `@spartacus/core` to `src/feature-toggles.copied-from-core-lib.ts` (git-ignored). This avoids direct dependency on `@spartacus/core`.
GitHub에서 보기