Skip to content

Commit 37ec9dd

Browse files
joshblackemyarod
authored andcommitted
feat(browserslist-config-carbon): add package (#2812)
* feat(browserslist-config-carbon): add package * chore(components): update to use browserslist-config-carbon * chore(react): add browserslist-config-carbon * chore(test): add browserslist-config-carbon
1 parent f94f02a commit 37ec9dd

File tree

8 files changed

+64
-3
lines changed

8 files changed

+64
-3
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# browserslist-config-carbon
2+
3+
> Browserslist config for the Carbon Design System
4+
5+
## Getting started
6+
7+
To install `browserslist-config-carbon` in your project, you will need to run
8+
the following command using [npm](https://www.npmjs.com/):
9+
10+
```bash
11+
npm install -S browserslist-config-carbon
12+
```
13+
14+
If you prefer [Yarn](https://yarnpkg.com/en/), use the following command
15+
instead:
16+
17+
```bash
18+
yarn add browserslist-config-carbon
19+
```
20+
21+
## 🙌 Contributing
22+
23+
We're always looking for contributors to help us fix bugs, build new features,
24+
or help us improve the project documentation. If you're interested, definitely
25+
check out our [Contributing Guide](/.github/CONTRIBUTING.md) ! 👀
26+
27+
## 📝 License
28+
29+
Licensed under the [Apache 2.0 License](/LICENSE).
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* Copyright IBM Corp. 2018, 2018
3+
*
4+
* This source code is licensed under the Apache-2.0 license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
8+
'use strict';
9+
10+
module.exports = ['last 1 versions', 'ie >= 11', 'Firefox ESR'];
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "browserslist-config-carbon",
3+
"description": "Browserslist config for the Carbon Design System",
4+
"version": "10.2.0",
5+
"license": "Apache-2.0",
6+
"main": "index.js",
7+
"repository": "https://github.com/IBM/carbon-elements/tree/master/packages/browserslist-config-carbon",
8+
"bugs": "https://github.com/IBM/carbon-elements/issues",
9+
"keywords": [
10+
"eyeglass-module",
11+
"ibm",
12+
"elements",
13+
"carbon",
14+
"carbon-elements",
15+
"carbon-design-system"
16+
],
17+
"publishConfig": {
18+
"access": "public"
19+
}
20+
}

packages/components/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
"babel-plugin-rewire": "^1.1.0",
9898
"bluebird": "~3.1.1",
9999
"browser-sync": "^2.26.3",
100+
"browserslist-config-carbon": "10.2.0",
100101
"carbon-components": "^9.0.0",
101102
"carbon-components-react": "^6.0.0",
102103
"chokidar": "^2.0.0",

packages/components/tools/env.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = () => ({
99
{
1010
modules: BABEL_ENV !== 'test' ? false : 'commonjs',
1111
targets: {
12-
browsers: ['last 1 versions', 'Firefox ESR', 'ie >= 11'],
12+
browsers: ['extends browserslist-config-carbon'],
1313
},
1414
},
1515
],

packages/react/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@
168168
"babel-plugin-dev-expression": "^0.2.1",
169169
"babel-plugin-react-docgen": "^2.0.0",
170170
"babel-plugin-transform-inline-environment-variables": "^0.4.0",
171+
"browserslist-config-carbon": "10.2.0",
171172
"carbon-components": "10.2.0",
172173
"carbon-icons": "^7.0.5",
173174
"chalk": "^2.3.0",

packages/react/scripts/env.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = () => ({
99
{
1010
modules: BABEL_ENV === 'es' ? false : 'commonjs',
1111
targets: {
12-
browsers: ['last 1 versions', 'Firefox ESR'],
12+
browsers: ['extends browserslist-config-carbon'],
1313
},
1414
},
1515
],

tasks/jest/jsTransform.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const babelOptions = {
88
'@babel/preset-env',
99
{
1010
targets: {
11-
browsers: ['last 1 version', 'ie >= 11', 'Firefox ESR'],
11+
browsers: ['extends browserslist-config-carbon'],
1212
},
1313
},
1414
],

0 commit comments

Comments
 (0)