mantine-reduce-css 1.0.0
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/.github/FUNDING.yml +15 -0
- package/.github/workflows/build-publish.yaml +21 -0
- package/.gitmodules +3 -0
- package/LICENSE +21 -0
- package/README.md +41 -0
- package/dist/index.js +2129 -0
- package/mantine.css +5 -0
- package/package.json +31 -0
- package/tmp/a.tsx +2 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# These are supported funding model platforms
|
|
2
|
+
|
|
3
|
+
github: [hilmoo]
|
|
4
|
+
patreon: # Replace with a single Patreon username
|
|
5
|
+
open_collective: # Replace with a single Open Collective username
|
|
6
|
+
ko_fi: # Replace with a single Ko-fi username
|
|
7
|
+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
|
8
|
+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
|
9
|
+
liberapay: # Replace with a single Liberapay username
|
|
10
|
+
issuehunt: # Replace with a single IssueHunt username
|
|
11
|
+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
|
|
12
|
+
polar: # Replace with a single Polar username
|
|
13
|
+
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
|
|
14
|
+
thanks_dev: # Replace with a single thanks.dev username
|
|
15
|
+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
name: Publish And Build
|
|
2
|
+
on:
|
|
3
|
+
release:
|
|
4
|
+
types: [published]
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
id-token: write
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
- uses: actions/setup-node@v4
|
|
14
|
+
with:
|
|
15
|
+
node-version: "20.x"
|
|
16
|
+
registry-url: "https://registry.npmjs.org"
|
|
17
|
+
- run: npm ci
|
|
18
|
+
- run: npm run build
|
|
19
|
+
- run: npm publish --provenance --access public
|
|
20
|
+
env:
|
|
21
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/.gitmodules
ADDED
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 hilmoo
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# mantine-reduce-css
|
|
2
|
+
|
|
3
|
+
A CLI tool to generate a reduced CSS bundle for your Mantine-based project by scanning your codebase for Mantine imports.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
$ npx mantine-reduce-css run [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
- `--help`: Show help information
|
|
12
|
+
|
|
13
|
+
## Examples
|
|
14
|
+
|
|
15
|
+
Scan the `./src` directory and output to `mantine.css`:
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
mantine-reduce-css run
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Scan a specific directory and output to a custom file:
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
mantine-reduce-css run --in ./app --out custom-mantine.css
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Only inclue `@mantine/dates` and `@mantine/notifications`:
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
mantine-reduce-css run --notification --dates --core false --base false
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
For more info, run:
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
mantine-reduce-css run --help
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
# License
|
|
40
|
+
|
|
41
|
+
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
|