Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I just created an HTML 5 Boilerplate project in WebStorm. Is there a standard command for compiling the "dist" folder?

I'm getting started with WebStorm 9. I created an HTML 5 Boilerplate project and I noticed a src and a dist folder.

Is there a standard command to compile the content of the src folder into the dist folder?

This is how my project looks like:

enter image description here

like image 450
André Pena Avatar asked Feb 05 '15 00:02

André Pena


2 Answers

It looks like HTML5 Boilerplate comes with a gulpfile.js file, so it looks like it wants to use Gulp to build assets from src into dist.

If you have Gulp installed, you can run gulp build in your project directory.

If you don't have Gulp installed, you should install it with npm. HTML5 Boilerplate has a package.json file that includes Gulp, so install npm and then run npm install in your project directory, and that should install everything that HTML5 Boilerplate expects.

like image 155
MattDiamant Avatar answered Nov 04 '22 01:11

MattDiamant


If you are using webStorm: just right click the package.json, you will find something like run npm install. It will do everything for you. After this right click the gulpfile.js file, and choose show Gulp tasks. Then you will find what you can do in Gulp window.

like image 3
YuF Avatar answered Nov 04 '22 02:11

YuF