browserslist-config-anolilab 4.0.4 → 4.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/README.md +65 -41
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## browserslist-config-anolilab [4.0.6](https://github.com/anolilab/javascript-style-guide/compare/browserslist-config-anolilab@4.0.5...browserslist-config-anolilab@4.0.6) (2023-06-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Dependencies
|
|
6
|
+
|
|
7
|
+
* **@anolilab/semantic-release-preset:** upgraded to 4.0.0
|
|
8
|
+
|
|
9
|
+
## browserslist-config-anolilab [4.0.5](https://github.com/anolilab/javascript-style-guide/compare/browserslist-config-anolilab@4.0.4...browserslist-config-anolilab@4.0.5) (2023-06-22)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Dependencies
|
|
14
|
+
|
|
15
|
+
* **@anolilab/semantic-release-preset:** upgraded to 3.1.3
|
|
16
|
+
|
|
1
17
|
## browserslist-config-anolilab [4.0.4](https://github.com/anolilab/javascript-style-guide/compare/browserslist-config-anolilab@4.0.3...browserslist-config-anolilab@4.0.4) (2023-06-22)
|
|
2
18
|
|
|
3
19
|
|
package/README.md
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
# Browserslist Config
|
|
2
|
-
|
|
3
|
-
This configuration reflects Growcss’s supported browser policy for their UI library and build tools.
|
|
4
|
-
|
|
5
1
|
<div align="center">
|
|
2
|
+
<h1>Shareable Browserslist Config</h1>
|
|
6
3
|
|
|
7
4
|
[![npm-image]][npm-url] [![license-image]][license-url]
|
|
8
5
|
|
|
6
|
+
|
|
7
|
+
It helps you maintain consistency across different projects and ensures that your projects support the same set of browsers.
|
|
9
8
|
</div>
|
|
10
9
|
|
|
11
10
|
---
|
|
@@ -20,60 +19,46 @@ This configuration reflects Growcss’s supported browser policy for their UI li
|
|
|
20
19
|
|
|
21
20
|
---
|
|
22
21
|
|
|
23
|
-
##
|
|
22
|
+
## Purpose
|
|
24
23
|
|
|
25
|
-
|
|
24
|
+
Our package aims to simplify and streamline the configuration process for your projects, ensuring efficiency and minimizing errors. By implementing the following strategies, we achieve this goal:
|
|
26
25
|
|
|
27
|
-
-
|
|
28
|
-
- ["Browserslist is a Good Idea"](https://css-tricks.com/browserlist-good-idea/) (blog post by [@chriscoyier](https://github.com/chriscoyier))
|
|
26
|
+
- Centralized Browser Targeting: Say goodbye to the hassle of defining target browsers for each individual project. Our package eliminates this need, providing a single, consistent configuration.
|
|
29
27
|
|
|
30
|
-
|
|
28
|
+
- Widely Used Target Browsers: We offer a carefully curated selection of popular target browsers. You can rely on our pre-defined set to cover a wide range of user preferences.
|
|
31
29
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"> 1%",
|
|
36
|
-
"last 2 versions",
|
|
37
|
-
"Firefox ESR"
|
|
38
|
-
],
|
|
39
|
-
"legacyBrowsers": [
|
|
40
|
-
"> 1%",
|
|
41
|
-
"last 2 versions",
|
|
42
|
-
"Firefox ESR"
|
|
43
|
-
],
|
|
44
|
-
"modernBrowsers": [
|
|
45
|
-
"last 2 Chrome versions",
|
|
46
|
-
"not Chrome < 60",
|
|
47
|
-
"last 2 Safari versions",
|
|
48
|
-
"not Safari < 10.1",
|
|
49
|
-
"last 2 iOS versions",
|
|
50
|
-
"not iOS < 10.3",
|
|
51
|
-
"last 2 Firefox versions",
|
|
52
|
-
"not Firefox < 54",
|
|
53
|
-
"last 2 Edge versions",
|
|
54
|
-
"not Edge < 15"
|
|
55
|
-
],
|
|
56
|
-
"ssr": [
|
|
57
|
-
"node 12"
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
```
|
|
30
|
+
- Effortless Updates: Keeping up with evolving browser requirements is effortless with our package. You can easily update the target browsers across all your projects whenever necessary, saving valuable time and effort.
|
|
31
|
+
|
|
32
|
+
In summary, our Browserslist Config ensures a superior user experience across various browsers, making it a vital tool for maintaining high-quality standards. Your users will enjoy a seamless browsing experience, regardless of their chosen platform.
|
|
61
33
|
|
|
62
34
|
## Installation
|
|
63
35
|
|
|
64
|
-
Install the
|
|
36
|
+
Install the package using your preferred package manager:
|
|
65
37
|
|
|
66
38
|
```shell
|
|
67
39
|
npm install browserslist-config-anolilab --save-dev
|
|
68
40
|
```
|
|
41
|
+
|
|
69
42
|
```sh
|
|
70
|
-
|
|
43
|
+
pnpm add -D browserslist-config-anolilab
|
|
71
44
|
```
|
|
72
45
|
|
|
73
46
|
```sh
|
|
74
|
-
|
|
47
|
+
yarn add -D browserslist-config-anolilab
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Optionally, you can install `browserslist` to use the `browserslist` CLI.
|
|
51
|
+
|
|
52
|
+
Adding the following script to your root package.json file makes it easier to run the browserslist command in your mono-repository:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
pnpm pkg set scripts.lint:browsers="browserslist"
|
|
75
56
|
```
|
|
76
57
|
|
|
58
|
+
For `npm` users, replace `pnpm` with `npm` in the above command.
|
|
59
|
+
|
|
60
|
+
This script allows you to run the `browserslist` command by simply typing `pnpm run lint:browsers` (or `npm run lint:browsers` for npm users) in the terminal.
|
|
61
|
+
|
|
77
62
|
## Usage
|
|
78
63
|
|
|
79
64
|
### Package.json
|
|
@@ -107,6 +92,45 @@ Or when using [babel-preset-env](https://github.com/babel/babel/tree/master/expe
|
|
|
107
92
|
}
|
|
108
93
|
```
|
|
109
94
|
|
|
95
|
+
## What is Browserslist?
|
|
96
|
+
|
|
97
|
+
[Browserslist](https://github.com/browserslist/browserslist) is a library to share a browsers list between different front end tools, like Autoprefixer, Eslint, and Stylelint.
|
|
98
|
+
|
|
99
|
+
- Valid Browserslist query syntax validation [browserl.ist](http://browserl.ist)
|
|
100
|
+
- ["Browserslist is a Good Idea"](https://css-tricks.com/browserlist-good-idea/) (blog post by [@chriscoyier](https://github.com/chriscoyier))
|
|
101
|
+
|
|
102
|
+
## Supported Browsers
|
|
103
|
+
|
|
104
|
+
```json
|
|
105
|
+
{
|
|
106
|
+
"production": [
|
|
107
|
+
"> 1%",
|
|
108
|
+
"last 2 versions",
|
|
109
|
+
"Firefox ESR"
|
|
110
|
+
],
|
|
111
|
+
"legacyBrowsers": [
|
|
112
|
+
"> 1%",
|
|
113
|
+
"last 2 versions",
|
|
114
|
+
"Firefox ESR"
|
|
115
|
+
],
|
|
116
|
+
"modernBrowsers": [
|
|
117
|
+
"last 2 Chrome versions",
|
|
118
|
+
"not Chrome < 60",
|
|
119
|
+
"last 2 Safari versions",
|
|
120
|
+
"not Safari < 10.1",
|
|
121
|
+
"last 2 iOS versions",
|
|
122
|
+
"not iOS < 10.3",
|
|
123
|
+
"last 2 Firefox versions",
|
|
124
|
+
"not Firefox < 54",
|
|
125
|
+
"last 2 Edge versions",
|
|
126
|
+
"not Edge < 15"
|
|
127
|
+
],
|
|
128
|
+
"ssr": [
|
|
129
|
+
"node 12"
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
```
|
|
133
|
+
|
|
110
134
|
## Supported Node.js Versions
|
|
111
135
|
|
|
112
136
|
Libraries in this ecosystem make the best effort to track
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "browserslist-config-anolilab",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.6",
|
|
4
4
|
"description": "Shareable browserlist config for Anolilab projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"browserslist",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"test:coverage": "vitest --config ./vitest.config.ts --run --coverage"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@anolilab/semantic-release-preset": "
|
|
62
|
+
"@anolilab/semantic-release-preset": "4.0.0",
|
|
63
63
|
"browserslist": "4.21.9",
|
|
64
64
|
"caniuse-lite": "^1.0.30001506",
|
|
65
65
|
"cross-env": "^7.0.3",
|