Source

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.

Tooling siam dan tur

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:

  1. Kan dependency enkawl nan kan hmang thin Node.js download la, install rawh .
  2. Root /bootstrapdirectory ah kal la, package.jsonnpm install a kan local dependencies tarlan te install turin run rawh .
  3. Ruby install la , Bundler hmangin install la gem install bundler, a tawpah run rawh bundle 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.

NPM script hmangin

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.

Autoprefixer hmanga siam a ni

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.

Tualchhung documentation siam 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:

  1. A chunga tooling setup hmang hian Jekyll (the site builder) leh Ruby dependency dangte chu install turin run la bundle install.
  2. Root /bootstrapdirectory atang npm run docs-servechuan command line ah run rawh.
  3. I browser ah khan hawng la http://localhost:9001, voilà.

Jekyll hman dan tur chu a documentation chhiar la .

Harsatna chinfel dan

Dependency install-naah harsatna i tawh chuan a hmaa dependency version zawng zawng (global leh local) kha uninstall vek rawh. Tichuan, rerun npm installrawh .