Manage frontend dependencies and deployment effortlessly.
- Dependencies installation via Bower including HTML injection
- LiveReload webserver for instant browser updates
- Code and images minimization for
/dist
version - LessCSS syntax support automagically vendor-prefixed
Download this git and install it's dev dependencies:
git clone https://github.com/pwnjack/prime
cd prime
npm install
Install default packages (Bootstrap + jQuery + Modernizr):
bower install
Install your own packages:
bower install --save package-name
Start to develop your project:
gulp
When you are done, build for production:
gulp build
If you add more dependencies later on, run this command to inject their reference tags in your HTML
gulp inject
Restart the live-preview webserver (In case of post-injection or syntax errors in your code)
gulp serve
Simply use the gulp
command and work on the /app
folder while previewing it in your favorite browser, when ready to deploy just use the gulp build
command and you'll find your production-optimized webapp into the /dist
folder, ready to be published.