BootstrapCDN

在StackPath的内容分发网络上托管免费Bootstrap

Github星跟踪图

BootstrapCDN

Total alerts
Build Status
Coverage Status
dependencies Status
devDependencies Status

Follow BootstrapCDN on Twitter
Backers on Open Collective
Sponsors on Open Collective

Deploy your own copy on Heroku

Deploy to Heroku

Requirements

  1. Node.js

Running

Use npm run <task>.

Development

npm install

npm test && npm run dev

Demonized

# start development server and watch for changes
npm run dev
# or
npm run watch

# start production server
npm start

# and more
npm run

Configuration

config/_app.yml

The Express.js app configuration.

  • port: Integer value of the Node application port.
  • theme: Integer value of the default theme we use; it's the array index value from the bootswatch4 section below.
  • siteurl: Our canonical URL.
  • authors: Array of author Objects. Accepts the following:
    • name
    • twitter: the Twitter handler without @
    • url: author's website URL (optional)
    • work: (optional) Object which can contain:
      • text: the text to show for the url bellow
      • url: the link to the work
  • description: String containing the default meta description of the site.
  • favicon: The path to favicon.ico.
  • stylesheet: Array of stylesheet file(s) we use apart from the Bootswatch stylesheet.
  • javascript: Array of javascript file(s) we use.
  • redirects: Array of Objects for the page redirects.

config/_extras.yml

Contains the /showcase/ and /integrations/ config we use in the Express.js app.

config/_files.yml

Contains the CDN files we host.The SRI values are updated by running npm run integrity.

config/helmet-csp.js

Our CSP config using https://github.com/helmetjs/csp

Updating Bootstrap/Bootlint/Bootswatch

Replace package by the package you want to update and version with its version in the following commands:

npm i package@version -ED
npm run package version
  1. Update config/_config.yml accordingly
  2. npm run integrity
  3. Make sure npm run all passes after the files are on S3/CDN and verify the frontend works as expected without any visual breakage

Backers

Thank you to all our backers! ? [Become a backer]

Bakers

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]










概览

名称与所有者jsdelivr/bootstrapcdn
主编程语言JavaScript
编程语言JavaScript (语言数: 5)
平台
许可证MIT License
发布数0
创建于2012-06-09 01:55:30
推送于2023-11-15 11:54:42
最后一次提交2023-11-15 13:54:42
星数1.3k
关注者数65
派生数256
提交数3.3k
已启用问题?
问题数471
打开的问题数11
拉请求数1143
打开的拉请求数0
关闭的拉请求数188
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?
去到顶部