Yeoman generator for Safari Extensions inspired by Chrome Extension generator
- First make a new directory, and
cd
into it:mkdir my-new-safari-extension && cd $_
- Install the generator:
npm install -g generator-safari-extension
- Run:
yo safari-extension
Need more information about Safari Extension? Please visit Safari Extensions Development Guide
$ grunt debug
$ grunt
--skip-install
Skips the automatic execution of bower
and npm
after
scaffolding has finished.
--test-framework=[framework]
Defaults to mocha
. Can be switched for
another supported testing framework like jasmine
.
--coffee
Add support for CoffeeScript.
--compass
Add support for Compass.
WARN, Compiled files that generated by coffee or compass will be remained if your extension is running on with
grunt debug
. You should remove or ignore that files if you don't want to commit to repo.