Skip to content
This repository was archived by the owner on Mar 30, 2023. It is now read-only.

Commit 732f96d

Browse files
authored
v2: Bootstrap 4, Icons 1.9.1, and Node 16 (#95)
* Update dependencies, fix package-lock.json issue * rebuild css * Bump versions, copyright * only test node 16 * Fix Stylelint, rerun CSS * Update readme * Fixes #68: Mention Node version in readme * Add live reload functionality Fixes #82, fixes #74.
1 parent b6b1dd5 commit 732f96d

File tree

9 files changed

+10279
-3900
lines changed

9 files changed

+10279
-3900
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
node: [12, 14]
16+
node: [16]
1717

1818
steps:
1919
- name: Clone repository

.stylelintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"extends": [
3-
"stylelint-config-twbs-bootstrap/scss"
3+
"stylelint-config-twbs-bootstrap"
44
]
55
}

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2020-2021 Mark Otto
3+
Copyright (c) 2020-2022 Mark Otto
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
## About
1010

11-
`bootstrap-npm-starter` is a GitHub template repository for creating new Bootstrap-powered npm projects, maintained by Bootstrap co-author @mdo. You can also use it as your own Bootstrap prototyping sandbox. It's built with Bootstrap v4 with plans to update for v5.
11+
`bootstrap-npm-starter` is a GitHub template repository for creating new Bootstrap 4 based npm projects, maintained by Bootstrap co-author @mdo. You can also use it as your own Bootstrap prototyping sandbox. For Bootstrap 5 examples, see [our new `twbs/examples` repo](https://github.com/twbs/examples).
1212

1313
[![Build Status](https://github.com/twbs/bootstrap-npm-starter/workflows/CI/badge.svg)](https://github.com/twbs/bootstrap-npm-starter/actions)
1414

@@ -19,15 +19,15 @@ Setup as a starter template, you can easily generate a new GitHub repository. Fr
1919
## What's included
2020

2121
- Single HTML page (`index.html`) to demonstrate how to include Bootstrap.
22-
- Includes [Bootstrap](https://getbootstrap.com) (currently using v4.6.0) source files via npm.
23-
- Includes [Bootstrap Icons](https://icons.getbootstrap.com) (v1.4.0), which includes over 1,200 icons available as SVGs and web fonts.
24-
- npm scripts (see `package.json`) for compiling and autoprefixing Sass, watching for changes, and starting a basic local server.
22+
- Includes [Bootstrap](https://getbootstrap.com) (currently using v4.6.2) source files via npm.
23+
- Includes [Bootstrap Icons](https://icons.getbootstrap.com) (v1.9.1), which includes over 1,800 icons available as SVGs and web fonts.
24+
- npm scripts (see `package.json`) for compiling and autoprefixing Sass, watching for changes, and starting a local server with live reload.
2525
- Example stylesheet (`scss/starter.scss`) highlighting two ways to include and customize Bootstrap.
2626
- Example JavaScript file (`assets/js/starter.js`) showing how to import all of Bootstrap, or just the parts you need.
2727

2828
## Usage
2929

30-
Be sure to have [Node.js](https://nodejs.org/) installed before proceeding.
30+
Be sure to have [Node.js](https://nodejs.org/) installed before proceeding. **We recommend using Node's LTS releases, which is currently at v16.x. We only test our compiled CSS against v16.**
3131

3232
```shell
3333
# Clone the repo
@@ -40,17 +40,20 @@ npm i
4040
# Compile Sass
4141
npm run css-compile
4242

43+
# Start server and watch Sass
44+
npm start
45+
4346
# Watch Sass for changes (uses nodemon)
4447
npm run watch
4548

46-
# Start local server (uses sirv-cli)
49+
# Start local server
4750
npm run server
4851

4952
# Watches Sass for changes and starts a local server
5053
npm start
5154
```
5255

53-
For the most straightforward development, open two Terminal tabs to execute `npm run server` and `npm run watch` at the same time.
56+
For the most straightforward development, open Terminal and run `npm start`.
5457

5558
Open <http://localhost:3000> to see the page in action.
5659

@@ -60,7 +63,7 @@ The following npm scripts are available to you in this starter repo. With the ex
6063

6164
| Script | Description |
6265
| --- | --- |
63-
| `server` | Starts a local server (<http://localhost:3000>) for development |
66+
| `server` | Starts a local server (<http://localhost:3000>) for development with live reloads |
6467
| `watch` | Automatically recompiles CSS as it watches the `scss` directory for changes |
6568
| `css` | Runs `css-compile` and `css-prefix` |
6669
| `css-compile` | Compiles source Sass into CSS |
@@ -121,4 +124,4 @@ At the root of the repo, `.stylelintignore` is used to list files that we ignore
121124

122125
## Copyright
123126

124-
&copy; @mdo 2020-2021 and licensed MIT.
127+
&copy; @mdo 2020-2022 and licensed MIT.

assets/css/starter.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.

assets/css/starter.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)