export-svg-typescript 0.1.43 → 0.1.58

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/package.json CHANGED
@@ -3,19 +3,35 @@
3
3
  "module": "./export-svg-typescript.js",
4
4
  "author": "vtempest",
5
5
  "license": "MIT",
6
- "version": "0.1.43",
6
+ "version": "0.1.58",
7
7
  "description": "Export SVG to TypeScript",
8
8
  "type": "module",
9
9
  "scripts": {
10
10
  "pub": "npm version patch && npm publish",
11
- "demo": "node export-svg-typescript.js -i ./demo -o ./demo/index.ts"
11
+ "demo": "node export-svg-typescript.js -i ./demo -o ./demo/index.ts",
12
+ "test": "vitest run",
13
+ "test:watch": "vitest",
14
+ "coverage": "vitest run --coverage"
12
15
  },
13
16
  "bin": {
14
- "export-svg-typescript": "./export-svg-typescript.js"
17
+ "export-svg-typescript": "export-svg-typescript.js"
15
18
  },
19
+ "keywords": [
20
+ "svg",
21
+ "typescript",
22
+ "icons",
23
+ "cli",
24
+ "codegen",
25
+ "react"
26
+ ],
16
27
  "repository": {
17
28
  "type": "git",
18
- "url": "https://github.com/OpenSourceAGI/dev-tools-starter-agent/tree/master/packages/export-svg-icons-typescript"
29
+ "url": "git+https://github.com/OpenSourceAGI/dev-tools-starter-agent.git",
30
+ "directory": "packages/export-svg-icons-typescript"
19
31
  },
20
- "homepage": "https://github.com/OpenSourceAGI/dev-tools-starter-agent/tree/master/packages/export-svg-icons-typescript"
32
+ "homepage": "https://github.com/OpenSourceAGI/dev-tools-starter-agent/tree/master/packages/export-svg-icons-typescript",
33
+ "devDependencies": {
34
+ "@vitest/coverage-v8": "^4.1.0",
35
+ "vitest": "^4.1.0"
36
+ }
21
37
  }
package/readme.md CHANGED
@@ -50,3 +50,9 @@ import { loadingDoubleRing } from './demo';
50
50
  loadingDoubleRing({size: 200, colors: ["#5345bb"] })
51
51
  ```
52
52
  ![screenshot](https://i.imgur.com/aXczCC2.png)
53
+
54
+ ---
55
+
56
+ [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request)
57
+
58
+ Please star this repo for updates! 🌟
@@ -0,0 +1,34 @@
1
+ /// <reference types="vitest/config" />
2
+ import { defineConfig } from "vitest/config";
3
+
4
+ // Per-package Vitest setup. Coverage is written to this package's own
5
+ // ./coverage/lcov.info so Codecov can flag it under "export-svg-icons-typescript".
6
+ export default defineConfig({
7
+ test: {
8
+ environment: "node",
9
+ include: ["{test,tests,src}/**/*.{test,spec}.{js,mjs,ts,tsx}"],
10
+ exclude: ["**/node_modules/**", "**/dist/**"],
11
+ // Infrastructure is in place before every package has a suite.
12
+ passWithNoTests: true,
13
+ coverage: {
14
+ provider: "v8",
15
+ reporter: ["text", "json", "lcov"],
16
+ reportsDirectory: "./coverage",
17
+ reportOnFailure: true,
18
+ include: [
19
+ "export-svg-typescript.js",
20
+ ],
21
+ exclude: [
22
+ "**/node_modules/**",
23
+ "**/dist/**",
24
+ "**/build/**",
25
+ "**/coverage/**",
26
+ "**/demo/**",
27
+ "**/*.d.ts",
28
+ "**/*.config.*",
29
+ "**/*.{test,spec}.*",
30
+ "**/*.template.*",
31
+ ],
32
+ },
33
+ },
34
+ });