Okufuna
Wano wefunire Bootstrap okufuna CSS ne JavaScript ezikung’aanyiziddwa, source code, oba okugiteekamu n’abaddukanya package bo abasinga okwagala nga npm, RubyGems, n’ebirala.
Wano wefunire code ekunganyiziddwa eyeetegefu okukozesebwa eya Bootstrap v4.1.3 okwanguyirwa okugwa mu pulojekiti yo, nga muno mulimu:
- Ebibinja bya CSS ebikuŋŋaanyiziddwa era ebikendeezeddwa (laba okugeraageranya fayiro za CSS ) .
- Ebiyungo bya JavaScript bikuŋŋaanyiziddwa era ne bikendeezebwa
Kino tekirimu biwandiiko, fayiro z'ensibuko, oba okwesigamizibwa kwonna okwa JavaScript okw'okwesalirawo (jQuery ne Popper.js).
Kuŋŋaanya Bootstrap ne payipu yo ey'eby'obugagga ng'owanula fayiro zaffe ez'ensibuko Sass, JavaScript, ne fayiro z'ebiwandiiko. Enkola eno yeetaaga ebikozesebwa ebirala:
- Sass compiler (Libsass oba Ruby Sass ewagirwa) olw'okukung'aanya CSS yo.
- Autoprefixer ku ntandikwa y'omutunzi wa CSS
Should you require build tools , ziteekebwamu okukola Bootstrap ne docs zaayo, naye ziyinza obutasaanira bigendererwa byo.
Buuka okuwanula ne jsDelivr okutuusa enkyusa eterekeddwa eya Bootstrap's compiled CSS ne JS ku pulojekiti yo.
Bw’oba okozesa JavaScript yaffe ekung’aanyiziddwa, tewerabira okussaamu enkyusa za CDN eza jQuery ne Popper.js nga tezinnabaawo.
Sika fayiro za Bootstrap ez'ensibuko kumpi mu pulojekiti yonna n'abamu ku baddukanya package abasinga okwettanirwa. Si nsonga muddukanya package, Bootstrap ejja kwetaaga Sass compiler ne Autoprefixer ku setup ekwatagana n'enkyusa zaffe entongole ezikung'aanyiziddwa.
Teeka Bootstrap mu pulogulaamu zo ezikozesa Node.js nga olina npm package :
require('bootstrap')
ejja kutikka byonna ebya Bootstrap ebya jQuery ku kintu kya jQuery. Module bootstrap
yennyini tefulumya kintu kyonna. Osobola okutikka mu ngalo ebikozesebwa bya Bootstrap ebya jQuery kinnoomu ng'otikka /js/*.js
fayiro wansi wa dayirekita y'omutendera ogw'oku ntikko ogw'ekipapula.
Bootstrap's package.json
erimu metadata endala wansi w'ebisumuluzo bino wammanga:
sass
- ekkubo erigenda mu fayiro enkulu eya Sass ensibuko ya Bootstrapstyle
- ekkubo erigenda ku CSS ya Bootstrap etakendeezeddwa ebadde ekuŋŋaanyiziddwa nga ekozesa ensengeka ezisookerwako (tewali kulongoosa)
Teeka Bootstrap mu pulogulaamu zo eza Ruby ng'okozesa Bundler ( esengekeddwa ) ne RubyGems ng'ogattako layini eno wammanga ku yo Gemfile
:
Ekirala, bw’oba tokozesa Bundler, osobola okuteeka gem ng’okola ekiragiro kino:
Laba README ya gem eno okumanya ebisingawo.
Osobola n'okuteeka n'okuddukanya Sass ne JavaScript za Bootstrap ng'okozesa Composer :
Bw’oba okulaakulanya mu .NET, osobola n’okuteeka n’okuddukanya CSS ya Bootstrap oba Sass ne JavaScript ng’okozesa NuGet :