Simple JS plugin starter repository
With all necessary configuration to bootstrap your ideas and get rid of setting everything all over again.
-
Clone Repository
git clone [email protected]:michalsnik/js-plugin-starter.git your-plugin-name
-
Go to your-plugin name folder and install npm packages
cd your-plugin-name && npm install
-
If you change
plugin.js
orplugin.scss
name remember to change it insideplugin.json
file as well. Gulp tasks relies on those names in order to do its job correctly. -
Run gulp
gulp
-
Go to
http://localhost:3000/demo/
and now you're ready to roll
Starter uses browserify for bundling JS, so don't hesitate to require node modules and partition your code to make it more pleasant to work with.