H

html-builder

HTML builder sample project

police
Анар authored
14e89d93
Name Last commit Last update
analyst police
assa police
css Initial commit
dist Initial commit
images Initial commit
js Initial commit
node_modules node modules removed from git
police police
ubbuk ubbuk htnl
webfonts Initial commit
.gitignore ubbuk modified by default
README.md readme file added
gulpfile.js Initial commit
html-builder.iml police
index.html ubbuk modified by default
package-lock.json police
package.json police

Ажиллах орчин

Ажиллах орчинг бүрдүүлэхийн тулд заавал nodejs , gulp-cli хэрэг болно.

nodejs суулгах

apt install  nodejs

gulp-cli суулгах

npm install gulp-cli --global

Суулгах

Веб өрөх гэж буй орчиндоо энэ хавтасан доторхыг бүрэн хуулж байршуулан

npm install хийж сангуудыг суулгана

npm install
gulp build

Хэрэглэх

html өрж эхлэхдээ энэ коммандыг ажиллуулна ингэснээр browser өөрөө нээгдэж html, css болон js файлууд дээр өөрчлөлт ороход browser шинэчлэгдэн destPath дотор js болон css автоматаар хураангуй байдалтай орно.

gulp serve

pack-css комманд нь gulpfile.js дээр заасан css функц доторх src хэмээн заасан бүх css файлуудыг эмхэтгэн destPath руу хуулна

gulp pack-css

pack-js комманд нь gulpfile.js дээр заасан js функц доторх src хэмээн заасан бүх js файлуудыг эмхэтгэн destPath руу хуулна

gulp pack-js

build комманд нь gulpfile.js дээр заасан js, css нэгтгэсэн хувилбар

gulp build