/var/www/protarget.com.ua/www
Edit: /var/www/protarget.com.ua/www/README.md (1763B)
**Files for production:**
All files (styles, js, fonts) for production are in the public folder.
**Build tool instruction:**
1. Used sass/scss & bootstrap4.
2. The build tool is in folder resources/assets/_gulp-builder.
3. To work with the build tool, you need to install:
- nodeJS (we just have to install this to use npm correctly)
- gulp
- webpack
- sass (version higher than 3.7.4, if lower, then there will be errors in the bootstrap 4 syntaxes).
4. After installing all the tools, go to the folder resources/assets/_gulp-builder, where
- run ```npm i```, to install all the packages dependencies
- if we only need to rebuild the project, then run ```gulp build```
- if we need to watch the changes, run ```gulp watch```.
5. All JavaScript code is in the js directory resources/assets/_gulp-builder/js.
- all libraries, plugins, etc. are connected in the js/libs folder.
- in the js/main.js file, there is the initialization of all functions
- all the logic is in the js/ui.js file.
- the form is submitted via js Sendform script, for this, it is enough to import the Sendform class and call it.
6. All styles are in the sass directory resources/assets/_gulp-builder/sass:
- in sass/1_configs there are all fonts included.
- in sass/2_core we include reset css code.
- in sass/3_plugins all plugins, libraries, etc. are included
- in sass/4_common/blocks there are typical blocks styles
- in sass/4_common/elements there are typical elements styles ( e.g. buttons, headers, form elements, etc.).
- in /sass/base-style.scss file there are styles that are generated to quickly load the first screen.
- in /sass/style.scss file all the files are included.
- in /sass/variables.scss file all the variables are included (e.g. for the container and colors).