Skip to content

Commit be29612

Browse files
committed
undo the punctuaction changes
1 parent 88453be commit be29612

4 files changed

Lines changed: 75 additions & 75 deletions

File tree

site/src/content/docs/guides/npm.mdx

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Bootstrap and npm
3-
description: The official guide for how to build a starter project with Bootstrap's CSS and JavaScript in your project using just npm.
3+
description: The official guide for how to build a starter project with Bootstraps CSS and JavaScript in your project using just npm.
44
toc: true
55
thumbnail: guides/bootstrap-npm@2x.png
66
---
@@ -17,16 +17,16 @@ thumbnail: guides/bootstrap-npm@2x.png
1717

1818
## Setup
1919

20-
We're building a npm project with Bootstrap from scratch, so there are some prerequisites and upfront steps before we get started. This guide requires you to have Node.js installed and some familiarity with the terminal.
20+
Were building a npm project with Bootstrap from scratch, so there are some prerequisites and upfront steps before we get started. This guide requires you to have Node.js installed and some familiarity with the terminal.
2121

22-
1. **Create a project folder and set up npm.** We'll create the `my-project` folder and initialize npm with the `-y` argument to avoid it asking us all the interactive questions.
22+
1. **Create a project folder and set up npm.** Well create the `my-project` folder and initialize npm with the `-y` argument to avoid it asking us all the interactive questions.
2323

2424
```sh
2525
mkdir my-project && cd my-project
2626
npm init -y
2727
```
2828

29-
2. **Install Bootstrap.** Now we can install Bootstrap. We'll also install Floating UI since our dropdowns, popovers, and tooltips depend on it for their positioning. If you don't plan on using those components, you can omit Floating UI here.
29+
2. **Install Bootstrap.** Now we can install Bootstrap. Well also install Floating UI since our dropdowns, popovers, and tooltips depend on it for their positioning. If you dont plan on using those components, you can omit Floating UI here.
3030

3131
```sh
3232
npm i --save bootstrap @floating-ui/dom
@@ -50,14 +50,14 @@ Now that we have all the necessary dependencies installed, we can get to work cr
5050

5151
## Project structure
5252

53-
We've already created the `my-project` folder and initialized npm. Now we'll also create our `scss` folder, stylesheet, and configuration files to round out the project structure. Run the following from `my-project`, or manually create the folder and file structure shown below.
53+
Weve already created the `my-project` folder and initialized npm. Now well also create our `scss` folder, stylesheet, and configuration files to round out the project structure. Run the following from `my-project`, or manually create the folder and file structure shown below.
5454

5555
```sh
5656
mkdir {css,scss}
5757
touch index.html scss/styles.scss postcss.config.js .stylelintrc.json
5858
```
5959

60-
When you're done, your project should look like this:
60+
When youre done, your project should look like this:
6161

6262
```text
6363
my-project/
@@ -71,7 +71,7 @@ my-project/
7171
└── postcss.config.js
7272
```
7373

74-
At this point, everything is in the right place, but we'll need to configure our files and add some npm scripts to compile the CSS.
74+
At this point, everything is in the right place, but well need to configure our files and add some npm scripts to compile the CSS.
7575

7676
## Configure npm
7777

@@ -89,7 +89,7 @@ With dependencies installed and our project folder ready for us to start coding,
8989
}
9090
```
9191

92-
2. **Fill in the `index.html` file.** We need an HTML page to render our project. This page links to the compiled CSS file and includes Bootstrap's pre-built JavaScript bundle.
92+
2. **Fill in the `index.html` file.** We need an HTML page to render our project. This page links to the compiled CSS file and includes Bootstraps pre-built JavaScript bundle.
9393

9494
```html
9595
<!doctype html>
@@ -110,9 +110,9 @@ With dependencies installed and our project folder ready for us to start coding,
110110
</html>
111111
```
112112

113-
We're including a little bit of Bootstrap styling here with the `div class="container"` and `<button>` so that we see when Bootstrap's CSS is loaded by our npm scripts. Since this setup doesn't use a JavaScript bundler, we load Bootstrap's pre-built JS bundle directly via a `<script>` tag.
113+
Were including a little bit of Bootstrap styling here with the `div class="container"` and `<button>` so that we see when Bootstraps CSS is loaded by our npm scripts. Since this setup doesnt use a JavaScript bundler, we load Bootstraps pre-built JS bundle directly via a `<script>` tag.
114114

115-
*[Read our JavaScript docs]([[docsref:/getting-started/javascript/]]) for more information on how to use Bootstrap's plugins.*
115+
*[Read our JavaScript docs]([[docsref:/getting-started/javascript/]]) for more information on how to use Bootstraps plugins.*
116116

117117
3. **Add npm scripts to `package.json`.** Open `package.json` and add the following scripts. We use `sass` to compile our Sass (with `--load-path=node_modules` so it can resolve Bootstrap), `postcss-cli` to apply Autoprefixer, `nodemon` to watch for changes, `npm-run-all` to run scripts in sequence or in parallel, `sirv-cli` to serve our project, and `stylelint` to lint our Sass.
118118

@@ -132,7 +132,7 @@ With dependencies installed and our project folder ready for us to start coding,
132132
}
133133
```
134134

135-
4. **Configure `.stylelintrc.json`.** We're using `stylelint-config-twbs-bootstrap` to keep our Sass linting consistent with Bootstrap's own code style.
135+
4. **Configure `.stylelintrc.json`.** Were using `stylelint-config-twbs-bootstrap` to keep our Sass linting consistent with Bootstraps own code style.
136136

137137
```json
138138
{
@@ -148,22 +148,22 @@ With dependencies installed and our project folder ready for us to start coding,
148148

149149
{/* <img class="img-fluid" src="/docs/[[config:docs_version]]/assets/img/guides/npm-dev-server.png" alt="npm dev server running" /> */}
150150

151-
In the next and final section to this guide, we'll import all of Bootstrap's CSS.
151+
In the next and final section to this guide, well import all of Bootstraps CSS.
152152

153153
## Import Bootstrap
154154

155155
Importing Bootstrap into our project requires adding a Sass import to our `scss/styles.scss` file.
156156

157-
1. **Import Bootstrap's CSS.** Add the following to `scss/styles.scss` to import all of Bootstrap's source Sass. We use the `@use` rule, which is the modern Sass module system.
157+
1. **Import Bootstraps CSS.** Add the following to `scss/styles.scss` to import all of Bootstraps source Sass. We use the `@use` rule, which is the modern Sass module system.
158158

159159
```scss
160-
// Import all of Bootstrap's CSS
160+
// Import all of Bootstraps CSS
161161
@use "bootstrap/scss/bootstrap";
162162
```
163163

164164
*You can also import our stylesheets individually if you want. [Read our Sass import docs]([[docsref:/customize/sass#importing]]) for details.*
165165

166-
2. **Optionally, customize Bootstrap's Sass tokens.** Since Bootstrap uses Sass modules (`@use`/`@forward`), you can override default values using the `with ()` syntax. You only need to include the keys you want to change — Bootstrap merges your overrides with its defaults.
166+
2. **Optionally, customize Bootstraps Sass tokens.** Since Bootstrap uses Sass modules (`@use`/`@forward`), you can override default values using the `with ()` syntax. You only need to include the keys you want to change — Bootstrap merges your overrides with its defaults.
167167

168168
```scss
169169
@use "bootstrap/scss/bootstrap" with (
@@ -180,10 +180,10 @@ Importing Bootstrap into our project requires adding a Sass import to our `scss/
180180

181181
*[Read our Sass customization docs]([[docsref:/customize/sass#token-defaults]]) for the full list of available token maps and options.*
182182

183-
3. **And you're done! 🎉** With Bootstrap's source Sass fully loaded, your local development server should now look like this:
183+
3. **And youre done! 🎉** With Bootstraps source Sass fully loaded, your local development server should now look like this:
184184

185185
{/* <img class="img-fluid" src="/docs/[[config:docs_version]]/assets/img/guides/npm-dev-server-bootstrap.png" alt="npm dev server running with Bootstrap" /> */}
186186

187-
Now you can start adding any Bootstrap components you want to use. Be sure to [check out the complete npm Sass and JS example project](https://github.com/twbs/examples/tree/main/sass-js) for how to include additional custom Sass and optimize your build by importing only the parts of Bootstrap's CSS and JS that you need.
187+
Now you can start adding any Bootstrap components you want to use. Be sure to [check out the complete npm Sass and JS example project](https://github.com/twbs/examples/tree/main/sass-js) for how to include additional custom Sass and optimize your build by importing only the parts of Bootstraps CSS and JS that you need.
188188

189189
<GuideFooter />

site/src/content/docs/guides/parcel.mdx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
title: Bootstrap and Parcel
3-
description: The official guide for how to include and bundle Bootstrap's CSS and JavaScript in your project using Parcel.
3+
description: The official guide for how to include and bundle Bootstraps CSS and JavaScript in your project using Parcel.
44
toc: true
55
thumbnail: guides/bootstrap-parcel@2x.png
66
---
77

88
<img class="d-block mx-auto mb-4 img-fluid rounded-3" srcset="/docs/[[config:docs_version]]/assets/img/guides/bootstrap-parcel.png, /docs/[[config:docs_version]]/assets/img/guides/bootstrap-parcel@2x.png 2x" src="/docs/[[config:docs_version]]/assets/img/guides/bootstrap-parcel.png" width="1000" height="500" alt=""/>
99

1010
<Callout>
11-
**Want to skip to the end?** Download the source code and working demo for this guide from the [twbs/examples repository](https://github.com/twbs/examples/tree/main/parcel). You can also [open the example in StackBlitz](https://stackblitz.com/github/twbs/examples/tree/main/parcel?file=index.html) but not run it because Parcel isn't currently supported there.
11+
**Want to skip to the end?** Download the source code and working demo for this guide from the [twbs/examples repository](https://github.com/twbs/examples/tree/main/parcel). You can also [open the example in StackBlitz](https://stackblitz.com/github/twbs/examples/tree/main/parcel?file=index.html) but not run it because Parcel isnt currently supported there.
1212
</Callout>
1313

1414
## What is Parcel?
@@ -17,7 +17,7 @@ thumbnail: guides/bootstrap-parcel@2x.png
1717

1818
## Setup
1919

20-
We're building a Parcel project with Bootstrap from scratch, so there are some prerequisites and upfront steps before we can really get started. This guide requires you to have Node.js installed and some familiarity with the terminal.
20+
Were building a Parcel project with Bootstrap from scratch, so there are some prerequisites and upfront steps before we can really get started. This guide requires you to have Node.js installed and some familiarity with the terminal.
2121

2222
1. **Create a project folder and set up npm.** We'll create the `my-project` folder and initialize npm with the `-y` argument to avoid it asking us all the interactive questions.
2323

@@ -26,13 +26,13 @@ We're building a Parcel project with Bootstrap from scratch, so there are some p
2626
npm init -y
2727
```
2828

29-
2. **Install Parcel.** Unlike our Webpack guide, there's only a single build tool dependency here. Parcel will automatically install language transformers (like Sass) as it detects them. We use `--save-dev` to signal that this dependency is only for development use and not for production.
29+
2. **Install Parcel.** Unlike our Webpack guide, theres only a single build tool dependency here. Parcel will automatically install language transformers (like Sass) as it detects them. We use `--save-dev` to signal that this dependency is only for development use and not for production.
3030

3131
```sh
3232
npm i --save-dev parcel
3333
```
3434

35-
3. **Install Bootstrap.** Now we can install Bootstrap. We'll also install Floating UI since our dropdowns, popovers, and tooltips depend on it for their positioning. If you don't plan on using those components, you can omit Floating UI here.
35+
3. **Install Bootstrap.** Now we can install Bootstrap. We'll also install Floating UI since our dropdowns, popovers, and tooltips depend on it for their positioning. If you dont plan on using those components, you can omit Floating UI here.
3636

3737
```sh
3838
npm i --save bootstrap @floating-ui/dom
@@ -42,14 +42,14 @@ Now that we have all the necessary dependencies installed, we can get to work cr
4242

4343
## Project structure
4444

45-
We've already created the `my-project` folder and initialized npm. Now we'll also create our `src` folder, stylesheet, and JavaScript file to round out the project structure. Run the following from `my-project`, or manually create the folder and file structure shown below.
45+
Weve already created the `my-project` folder and initialized npm. Now we'll also create our `src` folder, stylesheet, and JavaScript file to round out the project structure. Run the following from `my-project`, or manually create the folder and file structure shown below.
4646

4747
```sh
4848
mkdir {src,src/js,src/scss}
4949
touch src/index.html src/js/main.js src/scss/styles.scss
5050
```
5151

52-
When you're done, your complete project should look like this:
52+
When youre done, your complete project should look like this:
5353

5454
```text
5555
my-project/
@@ -90,11 +90,11 @@ With dependencies installed and our project folder ready for us to start coding,
9090
</html>
9191
```
9292

93-
We're including a little bit of Bootstrap styling here with the `div class="container"` and `<button>` so that we see when Bootstrap's CSS is loaded by Parcel.
93+
Were including a little bit of Bootstrap styling here with the `div class="container"` and `<button>` so that we see when Bootstraps CSS is loaded by Parcel.
9494

95-
Parcel will automatically detect we're using Sass and install the [Sass Parcel plugin](https://parceljs.org/languages/sass/) to support it. However, if you wish, you can also manually run `npm i --save-dev @parcel/transformer-sass`.
95+
Parcel will automatically detect were using Sass and install the [Sass Parcel plugin](https://parceljs.org/languages/sass/) to support it. However, if you wish, you can also manually run `npm i --save-dev @parcel/transformer-sass`.
9696

97-
2. **Add the Parcel npm scripts.** Open the `package.json` and add the following `start` script to the `scripts` object. We'll use this script to start our Parcel development server and render the HTML file we created after it's compiled into the `dist` directory.
97+
2. **Add the Parcel npm scripts.** Open the `package.json` and add the following `start` script to the `scripts` object. We'll use this script to start our Parcel development server and render the HTML file we created after its compiled into the `dist` directory.
9898

9999
```json
100100
{
@@ -115,25 +115,25 @@ With dependencies installed and our project folder ready for us to start coding,
115115

116116
<img class="img-fluid" src="/docs/[[config:docs_version]]/assets/img/guides/parcel-dev-server.png" alt="Parcel dev server running" />
117117

118-
In the next and final section to this guide, we'll import all of Bootstrap's CSS and JavaScript.
118+
In the next and final section to this guide, we'll import all of Bootstraps CSS and JavaScript.
119119

120120
## Import Bootstrap
121121

122122
Importing Bootstrap into Parcel requires two imports, one into our `styles.scss` and one into our `main.js`.
123123

124-
1. **Import Bootstrap's CSS.** Add the following to `src/scss/styles.scss` to import all of Bootstrap's source Sass.
124+
1. **Import Bootstraps CSS.** Add the following to `src/scss/styles.scss` to import all of Bootstraps source Sass.
125125

126126
```scss
127-
// Import all of Bootstrap's CSS
127+
// Import all of Bootstraps CSS
128128
@use "bootstrap/scss/bootstrap";
129129
```
130130

131131
*You can also import our stylesheets individually if you want. [Read our Sass import docs]([[docsref:/customize/sass#importing]]) for details.*
132132

133-
2. **Import Bootstrap's JS.** Add the following to `src/js/main.js` to import all of Bootstrap's JS. Floating UI will be imported automatically through Bootstrap.
133+
2. **Import Bootstraps JS.** Add the following to `src/js/main.js` to import all of Bootstraps JS. Floating UI will be imported automatically through Bootstrap.
134134

135135
```js
136-
// Import all of Bootstrap's JS
136+
// Import all of Bootstraps JS
137137
import * as bootstrap from 'bootstrap'
138138
```
139139

@@ -146,12 +146,12 @@ Importing Bootstrap into Parcel requires two imports, one into our `styles.scss`
146146
import { Tooltip, Toast, Popover } from 'bootstrap'
147147
```
148148

149-
*[Read our JavaScript docs]([[docsref:/getting-started/javascript/]]) for more information on how to use Bootstrap's plugins.*
149+
*[Read our JavaScript docs]([[docsref:/getting-started/javascript/]]) for more information on how to use Bootstraps plugins.*
150150

151-
3. **And you're done! 🎉** With Bootstrap's source Sass and JS fully loaded, your local development server should now look like this:
151+
3. **And youre done! 🎉** With Bootstraps source Sass and JS fully loaded, your local development server should now look like this:
152152

153153
<img class="img-fluid" src="/docs/[[config:docs_version]]/assets/img/guides/parcel-dev-server-bootstrap.png" alt="Parcel dev server running with Bootstrap" />
154154

155-
Now you can start adding any Bootstrap components you want to use. Be sure to [check out the complete Parcel example project](https://github.com/twbs/examples/tree/main/parcel) for how to include additional custom Sass and optimize your build by importing only the parts of Bootstrap's CSS and JS that you need.
155+
Now you can start adding any Bootstrap components you want to use. Be sure to [check out the complete Parcel example project](https://github.com/twbs/examples/tree/main/parcel) for how to include additional custom Sass and optimize your build by importing only the parts of Bootstraps CSS and JS that you need.
156156

157157
<GuideFooter />

0 commit comments

Comments
 (0)