F
F
fantazerno2016-08-14 15:37:32
JavaScript
fantazerno, 2016-08-14 15:37:32

How do you build your project?

Good afternoon!
As a frontender (layout) I assemble the project with a bunch of JADE-STYLUS-GULP-GITHUB (tasks for concatenation, compression with sourcemaps, sprites, image compression, and many other standard set)
But how to work with this if one of the WP BITRIX cms comes into play, etc. .
1. Part of the code goes into php wrappers. Style template locations change, etc. The simplest addition of one block with two lines of code leads to a new reassembly of all styles, the output is again clean html, which again needs to be wrapped in php.
2. A bunch of left files and a database, how to deal with all this when working with git. (set up an ignore list?)
I will be grateful in advance to your experience and practices in resolving such issues.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
M
merss, 2016-08-14
@merss

no way.
You can't bind your frontend template in cms.
It is done like this: first it is typeset in its frontend template, then ready-made html is taken and stretched for SMS.
If you need to remake css/js - remake it in your template.

A
Andrey Khokhlov, 2016-08-15
@andrhohlov

How to work with gulp + git if I'm typesetting, and another person is pulling on wordpress?

X
xmoonlight, 2016-08-14
@xmoonlight

The simplest addition of one block with two lines of code leads to a new reassembly of all styles, the output is again clean html, which again needs to be wrapped in php.

Use a single style file and form the template itself from several files loaded dynamically: includeHTML .

E
Evanre, 2016-08-18
@Evanre

It's simple, Gulp gives almost unlimited build possibilities. Just collect CMS templates directly. Here is a great example of integrating gallp in WordPress.

R
Roman Morenets, 2016-08-19
@romapad

If under wordpress, then you can use the sage development, from roots.io - essentially a starter template for wordpress, which already includes bower, gulp, sass and more. You can patch up the clean html code first, then add all the necessary php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question