Source

Zimba ebikozesebwa

Yiga engeri y'okukozesaamu Bootstrap's included npm scripts okuzimba ebiwandiiko byaffe, okukung'aanya source code, okuddukanya ebigezo, n'ebirala.

Okuteekawo ebikozesebwa

Bootstrap ekozesa scripts za npm ku nkola yaayo ey'okuzimba. Package.json yaffe erimu enkola ennyangu ez'okukola ne framework, omuli okukung'aanya code, okuddukanya okugezesebwa, n'ebirala.

Okukozesa enkola yaffe ey'okuzimba n'okuddukanya ebiwandiiko byaffe mu kitundu, ojja kwetaaga kkopi ya fayiro z'ensibuko ya Bootstrap ne Node. Goberera emitendera gino era olina okuba nga weetegese okukankana:

  1. Wano wefunire era oteekeko Node.js , gye tukozesa okuddukanya ebintu bye twesigamyeko.
  2. Genda ku root /bootstrapdirectory era odduke npm installokuteeka ebisinziirwako byaffe eby'omu kitundu ebiragiddwa mu package.json .
  3. Teeka Ruby , teeka Bundler ne gem install bundler, era okusembayo okudduka bundle install. Kino kijja kuteekawo byonna ebisinziira ku Ruby, nga Jekyll ne plugins.
    • Abakozesa Windows: Soma ekitabo kino okufuna Jekyll okutandika okukola awatali buzibu.

Bw’omala, ojja kusobola okuddukanya ebiragiro eby’enjawulo ebiweereddwa okuva ku layini y’ebiragiro.

Okukozesa ebiwandiiko bya npm

Package.json yaffe erimu ebiragiro n'emirimu gino wammanga:

Ekigezo Okunnyonnyola
npm run dist npm run distekola /dist/dayirekita nga erimu fayiro ezikung’aanyiziddwa. Ekozesa Sass , Autoprefixer , ne UglifyJS .
npm test Same as npm run distplus ekola ebigezo mu kitundu
npm run docs Azimba era akola lints CSS ne JavaScript ku docs. Olwo osobola okuddukanya ebiwandiiko mu kitundu ng'oyita mu npm run docs-serve.

Dduka npm runolabe scripts zonna eza npm.

Entandikwa y’okwefuga

Bootstrap ekozesa Autoprefixer (erimu mu nkola yaffe ey’okuzimba) okwongera mu ngeri ey’otoma entandikwa z’abatunzi ku bintu ebimu ebya CSS mu kiseera ky’okuzimba. Okukola ekyo kituwonya obudde ne code nga kitusobozesa okuwandiika ebitundu ebikulu ebya CSS yaffe omulundi gumu ate nga kimalawo obwetaavu bwa vendor mixins nga ezo ezisangibwa mu v3.

Tukuuma olukalala lwa browser eziwagirwa okuyita mu Autoprefixer mu fayiro ey’enjawulo munda mu tterekero lyaffe erya GitHub. Laba .browserslistrc okumanya ebisingawo.

Ebiwandiiko by’ekitundu

Okuddukanya ebiwandiiko byaffe mu kitundu kyetaagisa okukozesa Jekyll, ekikola omukutu ogukyukakyuka mu ngeri ey’ekitiibwa ekituwa: ebikulu mulimu, fayiro ezesigamiziddwa ku Markdown, ebikozesebwa, n’ebirala. Laba engeri gy'oyinza okugitandika:

  1. Dduka okuyita mu nteekateeka y'ebikozesebwa waggulu okuteeka Jekyll (omuzimbi w'omukutu) n'ebintu ebirala ebisinziira ku Ruby ne bundle install.
  2. Okuva mu ndagiriro y'ekikolo /bootstrap, dduka npm run docs-servemu layini y'ekiragiro.
  3. Ggulawo http://localhost:9001mu browser yo, era voilà.

Manya ebisingawo ku nkozesa ya Jekyll ng'osoma ebiwandiiko byayo .

Okugonjoola ebizibu

Singa osanga obuzibu mu kuteeka ebisinziirako, ggyawo enkyusa zonna ez'okwesigamizibwa ezaaliwo emabega (ensi yonna n'ey'omu kitundu). Oluvannyuma, ddamu okudduka npm install.