svg-path-commander 2.0.1 → 2.0.3
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/README.md +7 -6
- package/cypress/e2e/svg-path-commander.spec.ts +0 -1
- package/dist/svg-path-commander.cjs +1 -1
- package/dist/svg-path-commander.cjs.map +1 -1
- package/dist/svg-path-commander.js +1 -1
- package/dist/svg-path-commander.js.map +1 -1
- package/dist/svg-path-commander.mjs +472 -503
- package/dist/svg-path-commander.mjs.map +1 -1
- package/package.json +78 -73
- package/vite.config.ts +1 -7
package/package.json
CHANGED
|
@@ -1,73 +1,78 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "svg-path-commander",
|
|
3
|
-
"author": "thednp",
|
|
4
|
-
"license": "MIT",
|
|
5
|
-
"version": "2.0.
|
|
6
|
-
"description": "TypeScript tools for SVG
|
|
7
|
-
"source": "src/index.ts",
|
|
8
|
-
"main": "dist/svg-path-commander.js",
|
|
9
|
-
"module": "dist/svg-path-commander.
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
"commander"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"cypress": "^
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"eslint-plugin
|
|
59
|
-
"eslint
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"prettier": "^2.
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "svg-path-commander",
|
|
3
|
+
"author": "thednp",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"version": "2.0.3",
|
|
6
|
+
"description": "Modern TypeScript tools for SVG",
|
|
7
|
+
"source": "./src/index.ts",
|
|
8
|
+
"main": "./dist/svg-path-commander.js",
|
|
9
|
+
"module": "./dist/svg-path-commander.mjs",
|
|
10
|
+
"types": "./dist/svg-path-commander.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"require": "./dist/svg-path-commander.cjs",
|
|
14
|
+
"import": "./dist/svg-path-commander.mjs"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"pre-test": "npm run clean-coverage",
|
|
19
|
+
"test": "npm run pre-test && cypress run",
|
|
20
|
+
"cypress": "npm run pre-test && npx cypress open",
|
|
21
|
+
"clean-coverage": "rimraf coverage .nyc_output",
|
|
22
|
+
"coverage:report": "nyc report --reporter=lcov --reporter=json --reporter=text --reporter=json-summary",
|
|
23
|
+
"format": "prettier --write \"src/**/*.ts\"",
|
|
24
|
+
"fix:ts": "eslint src --config .eslintrc.cjs --fix",
|
|
25
|
+
"lint:ts": "eslint src --config .eslintrc.cjs",
|
|
26
|
+
"build": "npm run lint:ts && npm run build-vite && npm run build-ts",
|
|
27
|
+
"build-vite": "vite build && npm run build-docs",
|
|
28
|
+
"build-ts": "dts-bundle-generator --config ./dts.config.ts",
|
|
29
|
+
"build-docs": "ncp dist/svg-path-commander.js docs/svg-path-commander.js && ncp dist/svg-path-commander.js.map docs/svg-path-commander.js.map"
|
|
30
|
+
},
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "git+https://github.com/thednp/svg-path-commander.git"
|
|
34
|
+
},
|
|
35
|
+
"keywords": [
|
|
36
|
+
"svg",
|
|
37
|
+
"path",
|
|
38
|
+
"commander",
|
|
39
|
+
"parse",
|
|
40
|
+
"normalize",
|
|
41
|
+
"optimize",
|
|
42
|
+
"reverse",
|
|
43
|
+
"convert",
|
|
44
|
+
"absolute",
|
|
45
|
+
"relative",
|
|
46
|
+
"curve",
|
|
47
|
+
"transform3d",
|
|
48
|
+
"typescript"
|
|
49
|
+
],
|
|
50
|
+
"bugs": {
|
|
51
|
+
"url": "https://github.com/thednp/svg-path-commander/issues"
|
|
52
|
+
},
|
|
53
|
+
"homepage": "http://thednp.github.io/svg-path-commander",
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@bahmutov/cypress-esbuild-preprocessor": "^2.2.0",
|
|
56
|
+
"@cypress/code-coverage": "^3.10.0",
|
|
57
|
+
"@types/istanbul-lib-instrument": "^1.7.4",
|
|
58
|
+
"@typescript-eslint/eslint-plugin": "^5.55.0",
|
|
59
|
+
"@typescript-eslint/parser": "^5.55.0",
|
|
60
|
+
"cypress": "^12.8.1",
|
|
61
|
+
"dts-bundle-generator": "^7.2.0",
|
|
62
|
+
"eslint": "^8.36.0",
|
|
63
|
+
"eslint-plugin-jsdoc": "^40.0.3",
|
|
64
|
+
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
65
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
66
|
+
"istanbul-lib-coverage": "^3.2.0",
|
|
67
|
+
"istanbul-lib-instrument": "^5.2.1",
|
|
68
|
+
"ncp": "^2.0.0",
|
|
69
|
+
"nyc": "^15.1.0",
|
|
70
|
+
"prettier": "^2.8.4",
|
|
71
|
+
"rimraf": "^4.4.0",
|
|
72
|
+
"typescript": "^5.0.2",
|
|
73
|
+
"vite": "^4.2.0"
|
|
74
|
+
},
|
|
75
|
+
"dependencies": {
|
|
76
|
+
"@thednp/dommatrix": "^2.0.2"
|
|
77
|
+
}
|
|
78
|
+
}
|
package/vite.config.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import {resolve} from 'path';
|
|
3
3
|
import { defineConfig } from 'vite';
|
|
4
|
-
import { name
|
|
4
|
+
import { name } from './package.json';
|
|
5
5
|
|
|
6
6
|
const getPackageName = () => {
|
|
7
7
|
return name.includes('@') ? name.split('/')[1] : name;
|
|
@@ -26,13 +26,7 @@ export default defineConfig({
|
|
|
26
26
|
formats: ['es', 'cjs', 'iife'],
|
|
27
27
|
fileName: (format: string) => fileName[format],
|
|
28
28
|
},
|
|
29
|
-
target: 'ESNext',
|
|
30
29
|
sourcemap: true,
|
|
31
|
-
minify: 'esbuild',
|
|
32
|
-
},
|
|
33
|
-
esbuild: {
|
|
34
|
-
charset: 'utf8',
|
|
35
|
-
treeShaking: true,
|
|
36
30
|
}
|
|
37
31
|
});
|
|
38
32
|
|