Skip to content

Commit cf00443

Browse files
authored
Merge pull request #4 from twbs/v4-dev
update forked v4-dev
2 parents 4356d08 + 75d435f commit cf00443

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+10785
-5453
lines changed

.babelrc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,5 @@
88
}
99
]
1010
],
11-
"plugins": [
12-
"transform-es2015-modules-strip"
13-
]
11+
"plugins": ["external-helpers"]
1412
}

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ scss-lint-report.xml
4444
# grunt-contrib-sass cache
4545
.sass-cache
4646

47-
# Jekyll metadata
47+
# Jekyll metadata and extra config file for `github` script
4848
docs/.jekyll-metadata
49+
twbsconfig.yml
4950

5051
# Folders to ignore
51-
bower_components
5252
node_modules

Gemfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
addressable (2.5.1)
5-
public_suffix (~> 2.0, >= 2.0.2)
4+
addressable (2.5.2)
5+
public_suffix (>= 2.0.2, < 4.0)
66
colorator (1.1.0)
77
ffi (1.9.18)
88
ffi (1.9.18-x64-mingw32)
@@ -41,7 +41,7 @@ GEM
4141
mini_portile2 (~> 2.2.0)
4242
pathutil (0.14.0)
4343
forwardable-extended (~> 2.6)
44-
public_suffix (2.0.5)
44+
public_suffix (3.0.0)
4545
rake (12.0.0)
4646
rb-fsevent (0.10.2)
4747
rb-inotify (0.9.10)
@@ -65,4 +65,4 @@ DEPENDENCIES
6565
scss_lint (~> 0.54.0)
6666

6767
BUNDLED WITH
68-
1.15.3
68+
1.15.4

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,15 @@ Several quick start options are available:
4141
- [Download the latest release.](https://github.com/twbs/bootstrap/archive/v4.0.0-beta.zip)
4242
- Clone the repo: `git clone https://github.com/twbs/bootstrap.git`
4343
- Install with [npm](https://www.npmjs.com): `npm install [email protected]`
44-
- Install with [yarn](https://github.com/yarnpkg/yarn): `yarn add [email protected]`
44+
- Install with [yarn](https://yarnpkg.com): `yarn add [email protected]`
4545
- Install with [Composer](https://getcomposer.org): `composer require twbs/bootstrap:4.0.0-beta`
46-
- Install with [Bower](https://bower.io): `bower install bootstrap#v4.0.0-beta`
4746
- Install with [NuGet](https://www.nuget.org): CSS: `Install-Package bootstrap -Pre` Sass: `Install-Package bootstrap.sass -Pre` (`-Pre` is only required until Bootstrap v4 has a stable release).
4847

4948
Read the [Getting started page](https://getbootstrap.com/getting-started/) for information on the framework contents, templates and examples, and more.
5049

5150
## Status
5251

5352
[![Slack](https://bootstrap-slack.herokuapp.com/badge.svg)](https://bootstrap-slack.herokuapp.com)
54-
[![Bower](https://img.shields.io/bower/v/bootstrap.svg)](https://bower.io/search/?q=bootstrap)
5553
[![npm version](https://img.shields.io/npm/v/bootstrap.svg)](https://www.npmjs.com/package/bootstrap)
5654
[![Gem version](https://img.shields.io/gem/v/bootstrap.svg)](https://rubygems.org/gems/bootstrap)
5755
[![Build Status](https://img.shields.io/travis/twbs/bootstrap/v4-dev.svg)](https://travis-ci.org/twbs/bootstrap)
@@ -98,14 +96,15 @@ Documentation search is powered by [Algolia's DocSearch](https://community.algol
9896
1. Run through the [tooling setup](https://github.com/twbs/bootstrap/blob/v4-dev/docs/4.0/getting-started/build-tools.md#tooling-setup) to install Jekyll (the site builder) and other Ruby dependencies with `bundle install`.
9997
2. Run `npm install` to install Node.js dependencies.
10098
3. Run `npm run test` (or a specific NPM script) to rebuild distributed CSS and JavaScript files, as well as our docs assets.
101-
4. From the root `/bootstrap` directory, run `bundle exec jekyll serve` in the command line.
99+
4. From the root `/bootstrap` directory, run `npm run docs-serve` in the command line.
102100
5. Open <http://localhost:9001> in your browser, and voilà.
103101

104102
Learn more about using Jekyll by reading its [documentation](https://jekyllrb.com/docs/home/).
105103

106104
### Documentation for previous releases
107105

108-
Documentation for v2.3.2 has been made available for the time being at <https://getbootstrap.com/2.3.2/> while folks transition to Bootstrap 3.
106+
- For v2.3.2: <https://getbootstrap.com/2.3.2/>
107+
- For v3.3.x: <https://getbootstrap.com/docs/3.3/>
109108

110109
[Previous releases](https://github.com/twbs/bootstrap/releases) and their documentation are also available for download.
111110

_data/browser-bugs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204
summary: >
205205
`table-cell` borders not overlapping despite `margin-right: -1px`
206206
upstream_bug: >
207-
Chromium#568691
207+
Chromium#749848
208208
origin: >
209209
Bootstrap#17438, Bootstrap#14237
210210

assets/css/docs.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bower.json

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1 @@
1-
{
2-
"name": "bootstrap",
3-
"description": "The most popular front-end framework for developing responsive, mobile first projects on the web.",
4-
"keywords": [
5-
"css",
6-
"js",
7-
"sass",
8-
"mobile-first",
9-
"responsive",
10-
"front-end",
11-
"framework",
12-
"web"
13-
],
14-
"homepage": "https://getbootstrap.com",
15-
"license": "MIT",
16-
"moduleType": "globals",
17-
"main": [
18-
"scss/bootstrap.scss",
19-
"dist/js/bootstrap.js"
20-
],
21-
"ignore": [
22-
"/.*",
23-
"/_*",
24-
"about",
25-
"assets",
26-
"docs",
27-
"js/tests",
28-
"nuget",
29-
"CNAME",
30-
"composer.json",
31-
"Gruntfile.js"
32-
],
33-
"dependencies": {
34-
"jquery": ">=3.0.0",
35-
"popper.js": "^1.12.3"
36-
}
37-
}
1+
@$% Not a Bower package. Use a better package management tool instead. ^&*

build/postcss.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = (ctx) => ({
99
browsers: [
1010
//
1111
// Official browser support policy:
12-
// https://v4-alpha.getbootstrap.com/getting-started/browsers-devices/#supported-browsers
12+
// https://getbootstrap.com/docs/4.0/getting-started/browsers-devices/#supported-browsers
1313
//
1414
'Chrome >= 45', // Exact version number here is kinda arbitrary
1515
'Firefox ESR',

build/rollup.config.js

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
const path = require('path')
2+
const babel = require('rollup-plugin-babel')
3+
const resolve = require('rollup-plugin-node-resolve')
4+
const pkg = require(path.resolve(__dirname, '../package.json'))
5+
const BUNDLE = process.env.BUNDLE === 'true'
6+
const year = new Date().getFullYear()
7+
8+
var fileDest = 'bootstrap.js'
9+
var external = ['jquery', 'popper.js']
10+
const plugins = [
11+
babel({
12+
exclude: 'node_modules/**', // only transpile our source code
13+
externalHelpersWhitelist: [ // include only required helpers
14+
'typeof',
15+
'classCallCheck',
16+
'createClass',
17+
'inherits',
18+
'possibleConstructorReturn'
19+
]
20+
})
21+
]
22+
const globals = {
23+
jquery: '$',
24+
'popper.js': 'Popper'
25+
}
26+
27+
if (BUNDLE) {
28+
fileDest = 'bootstrap.bundle.js'
29+
// remove last entry in external array to bundle Popper
30+
external.pop()
31+
delete globals['popper.js']
32+
plugins.push(resolve())
33+
}
34+
35+
module.exports = {
36+
input: path.resolve(__dirname, '../js/src/index.js'),
37+
output: {
38+
file: path.resolve(__dirname, `../dist/js/${fileDest}`),
39+
format: 'iife'
40+
},
41+
name: 'bootstrap',
42+
external: external,
43+
globals: globals,
44+
plugins: plugins,
45+
banner: `/*!
46+
* Bootstrap v${pkg.version} (${pkg.homepage})
47+
* Copyright 2011-${year} ${pkg.author}
48+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
49+
*/
50+
`
51+
}

build/stamp.js

Lines changed: 0 additions & 41 deletions
This file was deleted.

build/uglifyjs.config.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
2-
"output" : {
2+
"output": {
33
"comments": "/^!/"
4-
}
4+
},
5+
"compress": {
6+
"typeofs": false
7+
}
58
}

dist/css/bootstrap-grid.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/bootstrap-reboot.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/bootstrap-reboot.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/bootstrap-reboot.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/bootstrap-reboot.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)