foundation / foundation-sites

The most advanced responsive front-end framework in the world. Quickly create prototypes and production code for sites that work on any kind of device.
https://get.foundation
MIT License
29.65k stars 5.48k forks source link

using foundation CLI build #10177

Closed thatvideowebguy closed 6 years ago

thatvideowebguy commented 7 years ago

Hi, I'm using foundation to create a website and I'm new with the command line tool and functions.

For now I can Watch and compile all my files but I was wondering how at the end of the project I'll be able to Build (There's a function for that but nothing append, it's seems to have the same effect as Watch function) the project and get only the necessary files to upload on the production server.

Can you help me on this ?

Thanks

IamManchanda commented 7 years ago

Although this thread should be moved here https://github.com/zurb/foundation-zurb-template/

But you raised a very important question... current docs lack that!

IamManchanda commented 7 years ago

or wait http://foundation.zurb.com/sites/docs/starter-projects.html#zurb-template

The biggest difference between this and the basic template is the folder structure. In the ZURB Template, your project has a src/ folder which contains your source files, and a separate dist/ folder with your finished website. As you work on your project, Gulp continuously updates your dist/ folder with new versions of files. To compile a production build, run npm run build.

IamManchanda commented 7 years ago

@thatvideowebguy BTW the heart of the matter is you should be using npm run build

I hope your issue was resolved?

DanielRuf commented 6 years ago

What can we do better in the docs?

DanielRuf commented 6 years ago

Ping @IamManchanda

DanielRuf commented 6 years ago

The watch taks is for incremental builds while being in the development mode or a development environment.

@thatvideowebguy was your question answered and is now clear what each npm script and Gulp task does?

DanielRuf commented 6 years ago

@ncoden do you think that the initial question is answered or should we wait for feedback (if we get any)?