-
Install dependencies:
npm install
-
Start development mode:
npm start
This will:
- Create the development build in
dev-build/ - Start watching for file changes automatically with nodemon
- Rebuild automatically when any
.js,.json, or.pngfiles change insrc/
- Create the development build in
- Start development mode:
This will:
make dev
- Create the development build in
dev-build/ - Show instructions for loading in Chrome
- Start watching for file changes automatically
- Create the development build in
- Open Chrome and go to
chrome://extensions/ - Enable "Developer mode" (toggle in top right)
- Click "Load unpacked"
- Select the
dev-buildfolder
- Make changes to files in
src/ - The watcher will automatically rebuild
dev-build/ - In Chrome extensions page, click the refresh button on your extension
- Press Ctrl+C to stop the watcher when done
npm run dev:clean
# or
make dev-cleannpm start- Start development mode (build + watch)npm run dev- Same as npm startnpm run dev:build- Create development build only (no watch)npm run dev:watch- Start watching for changes (if build exists)npm run dev:clean- Clean development buildnpm test- Run testsnpm run lint- Check code stylenpm run format- Format code
make dev- Create development build and start watching (recommended)make dev-build- Create development build only (no watch)make dev-watch- Start watching for changes (if build exists)make dev-clean- Clean development buildmake help- Show all available targets
Run tests with:
npm testThe __tests__ folder is automatically excluded from the development build.