Source

Buusuu

CSS fi JavaScript qindaa'e argachuuf Bootstrap buufadhu, koodii madda, ykn hoggantoota paakeejii jaallattu kan akka npm, RubyGems, fi kkf waliin hammadhu.

CSS fi JS qindeesse

Koodii qindaa'aa fayyadamaaf qophaa'aa Bootstrap v4.1.3 salphaatti gara pirojektii keessanitti akka gadi bu'uuf buufadhaa, kunis:

Kun galmee, faayilii madda, ykn hirkattummaa JaavaScript filannoo kamiyyuu (jQuery fi Popper.js) hin dabalatu.

Buusuu

Faayilota madda

Madda Sass, JavaScript, fi faayiloota galmee keenya buufachuun Bootstrap sarara qabeenya mataa keessaniitiin qindeessaa. Filannoon kun meeshaalee dabalataa tokko tokko barbaada:

  • Sass qindeessaa (Libsass ykn Ruby Sass ni deeggara) CSS kee qindeessuuf.
  • Durtii ofumaa durtii gurguraa CSS tiif

Should you require build tools , isaan Bootstrap fi docs isaa guddisuuf hammatamaniiru, garuu kaayyoo mataa keetiidhaaf kan hin mijanne ta'uu hin oolan.

Madda buufadhaa

jsDelivr jedhamuun beekama

Bootstrap'n CSS fi JS qindaa'e kan kaa'ame gara pirojektii keetii geessuuf jsDelivr waliin buufachuu darbi .

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>

Yoo JavaScript keenya qindaa'e fayyadamaa jirta ta'e, CDN version jQuery fi Popper.js isa dura dabaluu hin dagatinaa.

<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>

Hoggantoota paakeejii

Faayilota madda Bootstrap gara pirojektii kamiyyuutti jechuun ni danda'ama hoggantoota paakeejii baay'ee beekamoo ta'an tokko tokko waliin harkisi. Geggeessaan paakeejii maal iyyuu yoo ta'e, Bootstrap qindeessaa gosoota qindeessaa ofiisaa keenya waliin walsimuuf qindeessaa Sass fi Autoprefixer barbaada.

npm jedhama

Bootstrap apps Node.js powered keessan keessatti paakeejii npm waliin fe'aa :

npm install bootstrap

require('bootstrap')ifteessitoota jQuery Bootstrap hunda wanta jQuery irratti ni fe'a. Moojulichi mataan bootstrapisaa homaa hin ergu. /js/*.jsFaayilota galmee sadarkaa olaanaa paakeejii jalatti fe'uudhaan ifteessitoota jQuery Bootstrap dhuunfaan harkaan fe'uu dandeessa .

Bootstrap's package.jsonfurtuuwwan armaan gadii jalatti meetadaataa dabalataa tokko tokko of keessaa qaba:

  • sass- daandii gara faayilii madda Sass guddaa Bootstrap
  • style- daandii gara CSS Bootstrap hin xiqqaafne kan qindaa'inoota durtii fayyadamuun dursee qindaa'e (dhuunfachiisuun hin jiru)

RuubiiJeems jedhamuun beekama

Bootstrap apps Ruby keessan keessatti Bundler ( gorfama ) fi RubyGems fayyadamuun sarara armaan gadii keessan irratti dabaluudhaan fe'aa Gemfile:

gem 'bootstrap', '~> 4.1.3'

Akka filannootti, yoo Bundler hin fayyadamne ta'e, ajaja kana hojjechuudhaan gem fe'uu dandeessa:

gem install bootstrap -v 4.1.3

Bal'ina isaaf README gem's ilaalaa .

Qopheessaa

Akkasumas Sass fi JavaScript Bootstrap's Composer fayyadamuun fe'uu fi bulchuu dandeessu :

composer require twbs/bootstrap:4.1.3

NuGet jedhamuun beekama

Yoo .NET keessatti guddiftan, akkasumas Bootstrap's CSS ykn Sass fi JavaScript NuGet fayyadamuun fe'uu fi bulchuu dandeessu :

Install-Package bootstrap
Install-Package bootstrap.sass