Ka telesarize
Bootstrap telesarse walasa ka CSS ni JavaScript lajɛlenw sɔrɔ, source code, walima k’a don i ka pake ɲɛmɔgɔw la minnu ka di i ye i n’a fɔ npm, RubyGems ani dɔ wɛrɛw.
CSS ni JS labɛnna
Bootstrap v4.0.0 ka kode labɛnnenw telesarse walasa ka don nɔgɔya la i ka porozɛ kɔnɔ, o min kɔnɔ:
- CSS bundlew lajɛlenw ni u fitininw (aw ye CSS files comparison lajɛ ) .
- JavaScript fɛnɲɛnɛmaw lajɛlenw ani u fitininw
O tɛ sɛbɛnniw, source files, walima JavaScript dependencies (jQuery ani Popper.js) dɔw ye minnu bɛ se ka kɛ.
Source files (Filɛriw sɔrɔyɔrɔ).
Bootstrap labɛn ni i yɛrɛ ka nafolo pipeline ye i kɛtɔ ka an ka source Sass, JavaScript ani documentation files telesarse. Nin sugandi in bɛ baarakɛminɛn wɛrɛw de wajibiya:
- Sass compiler (Libsass walima Ruby Sass bɛ dɛmɛ) ka ɲɛsin i ka CSS labɛnni ma.
- Autoprefixer ka ɲɛsin CSS feerekɛlaw ka ɲɛfɔlisenw ma
Ni i ka kan ka jɔli baarakɛminɛnw Лini , u bɛ Dòn Bootstrap n’a sɛbɛnniw labɛnni na, nka a ka c’a la u ma Bɛn i yɛrɛ ka laɲiniw ma.
jsDelivr ye
Tɛmɛn telesarseli kan ni jsDelivr ye walasa ka Bootstrap ka CSS ni JS lajɛlenw ka caché version lase i ka poroze ma.
N'i bɛ baara Kɛ ni an ka JavaScript lajɛlen ye, i kana ɲinɛ ka jQuery ni Popper.js CDN sɛrɛw Dòn a ɲɛfɛ.
Pake ɲɛmɔgɔw
Bootstrap ka source files sama ka don porozɛ suguya bɛɛ la ni pake ɲɛmɔgɔ dɔw ye minnu ka di kosɛbɛ. Foroko ɲɛnabɔbaga mana kɛ min o min ye, Bootstrap bɛna Sass daɲɛgafe ni Autoprefixer de wajibiya walasa ka sigicogo dɔ sɔrɔ min bɛ bɛn an ka daɲɛw labɛncogo ofisiyaliw ma.
npm ye
Bootstrap in sigi i ka Node.js baarakɛminɛnw kɔnɔ ni npm pake ye :
require('bootstrap')
bɛna Bootstrap ka jQuery fɛnw bɛɛ doni jQuery fɛn kan. Module bootstrap
yɛrɛ tɛ foyi bɔ jamana kɔkan. Aw bɛ se ka Bootstrap ka jQuery plugins kelen-kelen bɛɛ doni bolo la ni aw ye /js/*.js
filenw doni pake ka sanfɛla ɲɛbila jukɔrɔ.
Bootstrap's package.json
kɔnɔ, metadata wɛrɛw bɛ yen minnu bɛ nin kilisi ninnu jukɔrɔ:
sass
- sira min bɛ taa Bootstrap ka Sass source fileba lastyle
- sira min bɛ taa Bootstrap ka CSS la min ma dɔgɔya min labɛnna ka kɔn ni sigicogo kɔrɔw ye (labɛnni tɛ kɛ) .
RubyGems ye
Bootstrap sigi i ka Ruby porogaramuw kɔnɔ ni Bundler ( ladilikan ) ani RubyGems ye i kɛtɔ ka nin zana in fara i ka Gemfile
:
O cogo kelen na, n’i tɛ Bundler baara, i bɛ se ka gem in sigi ni nin cikan in ye:
Aw ye gem ka README lajɛ walasa ka kunnafoni wɛrɛw sɔrɔ.
Dɔnkilidala
Aw bɛ se fana ka Bootstrap ka Sass ni JavaScript sigi ani k’u ɲɛnabɔ ni Composer ye :
NuGet ye
N’i ye yiriwa .NET kɔnɔ, i bɛ se fana ka Bootstrap ka CSS walima Sass ani JavaScript sigi ani k’a ɲɛnabɔ ni NuGet ye :