Facilitates developments on the it.rocks framework's source code within a single WebStorm project
npm install @itrocks/webstorm




Facilitates development on the it.rocks framework within a single WebStorm project.
These CLI tools allow you to work on @itrocks/* modules from sources inside a single app,
with Git checkout + local builds and a watcher that rebuilds dependencies as you edit.
- Node.js ≥ 18
- An application depending on one or more @itrocks/* packages under node_modules/@itrocks.
``bash`
npm i --save-dev @itrocks/webstorm
Run via npx, or declare project scripts.
Checks available major version updates for all @itrocks/* modules inside your project.
What it does:
- Scans installed @itrocks/* packages.
- Queries npm for newer major / minor / patch versions.
- Prints a summary:
``
module-a 1.x → 2.x available
module-b up-to-date
- If the upgrade argument is passed: upgrades version numbers, without installing anything.
Example:
`bash`
npx check-majors upgrade
Output will clearly show the changes:
``
module-a updated: 1.2.3 → 2.0.0
module-b updated: 3.4.1 → 3.6.0
module-c unchanged
The package.json files are modified to get the new version numbers.
Notes:
- Requires vcs-modules to be run first in order to update the source Git repositories.npx it-publish
- Does not install anything.
- Useful before and to make a mass upgrade.
- Works well together with and large Git commits directly from your WebStorm IDE.
Publishes local @itrocks/* packages whose local version is ahead of npm.
What it does:
- Compares local vs published version using:
- if the package is not found in the search index → treated as not yet published;
- if local version is greater than published → update will be published;
- otherwise → reported as unchanged.
- Runs npm publish (or npm publish --access public for packages not yet in the index) in each package directory.
At the end, it prints how many @itrocks packages were checked.
Dry-run: --dry
Add --dry to see exactly what would be published, without touching npm.
`bash`
npx it-publish --dry
In this mode, the command only prints the intended npm publish calls:
Notes
- Does not change any package.json.
- Does not build your modules.
- Uses the npm search index; very new publications might briefly appear as "not yet published" or "unchanged".
Replaces any @itrocks/* package installed from npm with its Git repository checkout,
builds it locally, and updates WebStorm configuration so the IDE recognises each module as a proper project.
What it does:
- Scans node_modules/@itrocks/* in your app..idea/vcs.xml
- Updates WebStorm configuration file that each @itrocks/* module appears
as a distinct Git root and project module inside WebStorm.
- For each module that’s not already a Git checkout,
removes the package folder and replaces it with the repository sources, so you can edit them.
- Runs the module’s build if a build script exists in its package.json.
- Builds modules in dependency order so shared libraries are ready before dependent ones.
Notes:
- Requires each @itrocks/* module to have a build script.
- Safe to run multiple times: it will only rebuild or update modules as needed.
- Intended for local development, not CI.
Watches all @itrocks/* modules for file changes and rebuild them automatically.
What it does:
- Watches all .ts and .scss source files under node_modules/@itrocks/**.npm run build
- On change: detects the modified module, runs its script.
Notes:
- Perfect for editing multiple @itrocks/* modules at once in a single environment.
- Your app rebuilds itself using the freshly compiled outputs.
- The build status is displayed in the console.
- Debounces rapid edits to avoid overlapping builds.
Add those commands to your package.json scripts for convenience:
`json`
{
"scripts": {
"itrocks:check": "check-majors",
"itrocks:publish": "it-publish",
"itrocks:setup": "vcs-modules",
"itrocks:watch": "wsbuild"
}
}
Then run:
`bash`
npm run itrocks:check
npm run itrocks:publish
npm run itrocks:setup
npm run itrocks:watch
| Symptom | Cause / Fix |
|----------------------------------|---------------------------------------------------------------|
| No build script for a module | Add "build": "tsc" (or similar) in its package.json. |wsbuild
| Changes don’t reflect in the app | Ensure is running and outputs are used by your app. |node_modules/@itrocks/
| Watcher does nothing | Edit files inside . |npm rebuild @itrocks/webstorm` to restore links. |
| Command not found | Run