Core of the rastrr editor client
- Create file
.npmrcin the root of the project with given contents:@rastrr-editor:registry=https://npm.pkg.github.com //npm.pkg.github.com/:_authToken=<PERSONAL ACCESS TOKEN WITH read:packages SCOPE> - Run
npm install @rastrr-editor/core - Add to your *.d.ts file:
/// <reference types="@rastrr-editor/core/global" />
Main classes
Interfaces
Base commands
npm inpm run serve
npm run serve- run server for example on localhost:4200npm run watch- run watcher for examplenpm run dev- build example in directory 'example'npm run format- format code using prettiernpm run format:check- check formatting errorsnpm run lint- lint code
- Open browser console
- Execute code:
localStorage.debug = '@rastrr-editor/core*'
- Login:
npm login --scope=@rastrr-editor --registry=https://npm.pkg.github.com. You need to use specific access token. - Execute the command:
npm publish
- Execute the command:
npm version patch|minor|major -m "Version description"
Sometimes you need to test package integration and make some changes in realtime.
- Create link to the package
npm link - Run command
npm build:watch - Go to the project and add package via link
npm link @rastrr-editor/core
P.s. if you are using vite, it must be run with force flag, i.e.: npx vite --force.


