Hmanrua siam rawh
Bootstrap-a npm script awmte hmanga kan documentation siam dan tur, source code compile dan tur, test kalpui dan tur leh thil dang tam tak hman dan zir rawh.
Bootstrap hian a build system atan NPM scripts a hmang thin. Kan package.json hian framework nena hnathawh dan awlsam tak tak a keng tel a, chung zingah chuan code compiling, test run leh a dangte pawh a tel.
Kan build system hmang tur leh kan documentation local taka run tur chuan Bootstrap source files leh Node copy i mamawh ang. Heng step te hi zawm la, rock turin i inpeih tur a ni:
- Kan dependency enkawl nan kan hmang thin Node.js download la, install rawh .
- Root
/bootstrapdirectory ah kal la, package.jsonnpm installa kan local dependencies tarlan te install turin run rawh . - Ruby install la , Bundler hmangin install la
gem install bundler, a tawpah run rawhbundle install. Hei hian Ruby dependency zawng zawng, Jekyll leh plugins te chu a install vek ang.- Windows hmangtute: Jekyll hi harsatna awm lovin a kalpui theih nan he guide hi chhiar la .
A zawh chuan command line atanga command hrang hrang pek te chu i run thei tawh ang.
Kan package.json ah hian a hnuaia command leh task te hi a awm a:
| Tihtur | Hrilhfiahna |
|---|---|
npm run dist |
npm run dist/distfile compiled te nen directory a siam thin . Sass , Autoprefixer leh UglifyJS te a hmang thin. |
npm test |
Same as npm run distplus local takin test a kalpui thin |
npm run docs |
Docs atan CSS leh JavaScript a siam a, a lint bawk. Chumi hnuah chuan documentation chu local-in npm run docs-serve. |
Run la npm run, npm script zawng zawng en rawh.
Bootstrap hian Autoprefixer (kan build process-a tel) hmangin build time-ah CSS property thenkhatah vendor prefix chu automatic-in a dah belh thin. Chutianga kan tih chuan kan CSS-a key parts te chu vawi khat ziah theihna a siamsak a, chutih rualin v3-a hmuh ang vendor mixin hman a ngai tawh lo.
Autoprefixer hmanga support browser list chu kan GitHub repository chhungah file hranah kan enkawl a. A chipchiar zawkna chu /package.json ah hian en theih a ni.
Kan documentation local-a kalpui tur chuan Jekyll hman a ngai a, chu chu decently flexible static site generator a ni a, chu chuan: basic includes, Markdown-based files, templates, leh thil dang tam tak min pe a ni. A bul tan dan tur chu hetiang hi a ni:
- A chunga tooling setup hmang hian Jekyll (the site builder) leh Ruby dependency dangte chu install turin run la
bundle install. - Root
/bootstrapdirectory atangnpm run docs-servechuan command line ah run rawh. - I browser ah khan hawng la
http://localhost:9001, voilà.
Jekyll hman dan tur chu a documentation chhiar la .
Dependency install-naah harsatna i tawh chuan a hmaa dependency version zawng zawng (global leh local) kha uninstall vek rawh. Tichuan, rerun npm installrawh .