-
npm i -g penv
to install penv -
penv development
to generate thepackage.json
for development environment -
npm i
to install dependencies and to create symlink of plugin file in Sketch directory -
npm run watch
for local dev, pair with live reloading setting:defaults write ~/Library/Preferences/com.bohemiancoding.sketch3.plist AlwaysReloadScript -bool YES
- Install
sketch-dev-tools
- Use
console.log
as normal in JavaScript files
- Use
penv staging
to generate correctpackage.json
(instead ofdevelopment
) - Follow the same steps on Getting Started
- Run
penv production
to generate the correctpackage.json
- Use
skpm publish -h
to determine what options to use to match the new version
- Prevent plugins from being disabled when Sketch crashes (use with caution 😉):
defaults write com.bohemiancoding.sketch3.beta disableAutomaticSafeMode true