Source

Uraykachiy

Bootstrap uraykachiy huñusqa CSS chaymanta JavaScript, pukyuta, utaq munasqa paquete kamachiqkunaykiwan npm, RubyGems, chaymanta aswan ima churanaykipaq.

CSS y JS nisqa huñusqa

Bootstrap v4.1.3 kaqpaq huñusqa codigo listo llamk'anapaq uraykachiy chaymanta mana sasachu proyectoykiman urmachinaykipaq, mayqinchus:

Kayqa manam qillqakunata, pukyuta willañiqikunata utaq ima munasqa JavaScript hapipakuykunatapas (jQuery chaymanta Popper.js) churanchu.

Uraykachiy

Pukyu willañiqikuna

Bootstrap kikin kaqpa pipeline kaqwan huñuy pukyuta Sass, JavaScript chaymanta qillqa willakuyniyku uraykachispa. Kay akllayqa wakin yapasqa yanapakuykunata munan:

  • Sass huñuq (Libsass icha Ruby Sass yanapasqa) CSS nisqayki huñunapaq.
  • CSS ranqhaqpa ñawpaqninpaq kikinmanta ñawpaq suti

Should you require build tools , Bootstrap chaymanta docsnin wiñachinapaq churasqa kanku, ichaqa manapaschá kikin propósitosniykipaq allinchu kanku.

Pukyuta hurquy

jsDelivr nisqa

Saltay kay uraykachiyta jsDelivr kaqwan Bootstrap kaqpa huñusqa CSS kaqmanta chaymanta JS kaqmanta proyectoykiman caché kaqpi laya kaqta qunaykipaq.

<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>

Sichus huñusqa JavaScriptniyku llamk'achkanki, ama qunqaychu CDN layakuna jQuery chaymanta Popper.js ñawpaqninpi churayta.

<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>

Paquete kamachiqkuna

Bootstrap kaqpa pukyuta willañiqikunata yaqa mayqin llamkanamanpas wakin aswan riqsisqa paquete kamachiqkunawan aysay. Mana imapas paquete kamachiq, Bootstrap huk Sass huñuq chaymanta Autoprefixer huk churanapaq mañakunqa mayqinchus oficial huñusqa layaykuwan tupan.

npm

Bootstrap Node.js kallpachasqa ruwanakunaykipi npm paquete kaqwan churay :

npm install bootstrap

require('bootstrap')llapa Bootstrap kaqpa jQuery plugins kaqninta jQuery kaqman karganqa. Kikin bootstrapmódulo nisqa mana imatapas hawaman apachinchu. Bootstrap kaqpa jQuery yapayninkunata sapankama makiwan kargayta atikunki, /js/*.jswillañiqikunata paquetepa pata pata willañiqi urapi kargaspa.

Bootstrap's package.jsonwakin yapasqa metadatokuna kay llavekuna ukhupi kachkan:

  • sass- Bootstrappa hatun Sass pukyu willañiqiman ñan
  • style- ñan Bootstrap kaqpa mana pisichasqa CSS kaqman chaymanta ñawpaqmanta huñusqa ñawpaqmanta churasqakuna llamk'achispa (mana sapanchasqa)

RubyGems nisqa

Bootstrap Ruby ruwanakunaykipi churay Bundler ( yuyachisqa ) chaymanta RubyGems kaqwan kay chiruta yapaspa qampaq Gemfile:

gem 'bootstrap', '~> 4.1.3'

Hukninpi, sichus mana Bundler llamk'achkankichu, kay kamachiyta purichispa gemta churayta atikunki:

gem install bootstrap -v 4.1.3

Astawan yachanaykipaq qhaway chay joyapa README nisqapi.

Compositor

Bootstrap kaqpa Sass kaqnin chaymanta JavaScript kaqninta Composer kaqwan churayta chaymanta kamachiyta atikunki :

composer require twbs/bootstrap:4.1.3

NuGet

Sichus .NET kaqpi wiñanki, chaymanta Bootstrap kaqpa CSS utaq Sass chaymanta JavaScript kaqninta churayta chaymanta kamachiyta atikunki NuGet kaqwan :

Install-Package bootstrap
Install-Package bootstrap.sass