-
npm i -g penvto install penv -
penv developmentto generate thepackage.jsonfor development environment -
npm ito install dependencies and to create symlink of plugin file in Sketch directory -
npm run watchfor local dev, pair with live reloading setting:defaults write ~/Library/Preferences/com.bohemiancoding.sketch3.plist AlwaysReloadScript -bool YES
- Install
sketch-dev-tools - Use
console.logas normal in JavaScript files
- Use
penv stagingto generate correctpackage.json(instead ofdevelopment) - Follow the same steps on Getting Started
- Run
penv productionto generate the correctpackage.json - Use
skpm publish -hto 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