Skip to content

Commit 0c554d4

Browse files
committed
add funding.yaml
1 parent 3a92a93 commit 0c554d4

File tree

7 files changed

+16
-35
lines changed

7 files changed

+16
-35
lines changed

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: realvjy
2+
buy_me_a_coffee: realvjy

.github/workflows/coolshapes.js.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
1-
name: Node.js CI
1+
name: Build and test
22

33
on:
44
push:
5-
branches: [ "dev" ]
5+
branches: [ "dev", "main" ]
66
pull_request:
7-
branches: [ "dev" ]
7+
branches: [ "dev", "main" ]
88

99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
12-
strategy:
13-
matrix:
14-
node-version: [16.x, 18.x, 21.x]
12+
1513
steps:
1614
- uses: actions/checkout@v3
17-
- name: Use Node.js ${{ matrix.node-version }}
15+
- name: Builds and t
1816
uses: actions/setup-node@v3
1917
with:
20-
node-version: ${{ matrix.node-version }}
18+
node-version: 16.x
2119
cache: 'npm'
2220
- run: npm ci
2321
- run: npm test
22+
- run: npm build

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,12 @@ There are a total of **115** shapes available in Coolshapes under the following
164164
| `misc` | 11 |
165165
| `number` | 10 |
166166

167-
**Note:** If you're importing directly as component, the name must be in Title case. And the category type it will be lowercase.
167+
**Note:** When importing the components the name would be capitalized, but when passing as prop, the name would be lower case
168168

169169

170170

171171
### Others
172-
There are `cjs`, `umd` and `es` included in bundled versions of the module,
172+
There are `cjs`, `umd` and `es` included in bundled version of the module,
173173

174174
#### cjs
175175

index.html

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/__tests__/shape.test.tsx renamed to tests/shape.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
import { describe, it, expect } from "vitest";
33
import { render } from "@testing-library/react";
44
import React, { ForwardRefExoticComponent } from "react";
5-
import shapes, { componentId, getRandomShape, shapeTypes } from "../shapes";
6-
import { ShapeType } from "../lib";
7-
import { Coolshape, Star } from "../lib/shapes";
5+
import shapes, { componentId, getRandomShape, shapeTypes } from "../src/shapes";
6+
import { ShapeType } from "../src/lib";
7+
import { Coolshape, Star } from "../src/lib/shapes";
88

99
describe("using every icons from the defined component list", async () => {
1010
const shapeTypes = Object.keys(shapes) as Array<shapeTypes>;

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
"allowSyntheticDefaultImports": true,
1717
"outDir": "dist"
1818
},
19-
"exclude": ["node_modules", "dist", "./src/__tests__"]
19+
"exclude": ["node_modules", "dist", "tests"]
2020
}

vitest.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ export default defineConfig({
66
test: {
77
globals: true,
88
environment: "jsdom",
9-
setupFiles: "./src/__tests__/shape.test.tsx",
9+
setupFiles: "./tests/shape.test.tsx",
1010
},
1111
});

0 commit comments

Comments
 (0)