Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
101 lines (101 loc) · 3.34 KB
/
Copy pathpackage.json
File metadata and controls
101 lines (101 loc) · 3.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{
"name": "magic-snowflakes",
"description": "Falling snowflakes",
"version": "7.1.0",
"author": {
"name": "Denis Seleznev",
"email": "hcodes@yandex.ru",
"url": "https://github.com/hcodes/snowflakes"
},
"main": "dist/snowflakes.js",
"typings": "dist/index.d.ts",
"module": "dist/snowflakes.esm.js",
"homepage": "https://github.com/hcodes/snowflakes",
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/hcodes/snowflakes.git"
},
"keywords": [
"snow",
"snowflakes",
"snowflake",
"flake",
"newyear",
"christmas",
"falling",
"снежинки",
"снежинка",
"flocons de neige",
"schneeflocken",
"fiocchi di neve",
"copos de nieve",
"雪花",
"雪の結晶"
],
"engines": {
"node": ">=10"
},
"files": [
"dist/**/*.{js,css,ts}",
"README.md",
"LICENSE",
"CHANGELOG.md"
],
"devDependencies": {
"@eslint/js": "^10.0.1",
"@jest/globals": "^30.5.2",
"@rollup/plugin-typescript": "^12.3.1",
"@typescript-eslint/eslint-plugin": "^8.72.1",
"@typescript-eslint/parser": "^8.72.1",
"autoprefixer": "^10.6.2",
"cssnano": "^9.9.0",
"del-cli": "8.0.1",
"eslint": "^10.14.0",
"globals": "^17.14.0",
"jest": "^30.5.2",
"jest-environment-jsdom": "^30.5.2",
"postcss": "^8.5.32",
"postcss-cli": "^12.0.0",
"postcss-inline-svg": "^6.0.0",
"postcss-nested": "^9.0.1",
"rollup": "^4.67.5",
"rollup-plugin-postcss": "^4.0.2",
"terser": "^5.51.2",
"ts-jest": "^29.4.15",
"tslib": "^2.9.1",
"typescript": "^6.0.3",
"typescript-eslint": "^8.72.1"
},
"scripts": {
"test": "eslint . && npm run typecheck && npm run test:unit",
"test:unit": "jest",
"typecheck": "npm run typecheck:lib && npm run typecheck:examples && tsc --noEmit -p tests/tsconfig.json",
"build": "npm run build:lib && npm run build:examples",
"clean": "npm run clean:lib && npm run clean:examples",
"minify": "npm run minify:js && npm run minify:js-auto && npm run minify:js-light",
"minify:js": "terser ./dist/snowflakes.js -o ./dist/snowflakes.min.js -c -m",
"minify:js-auto": "terser ./dist/snowflakes.auto.js -o ./dist/snowflakes.auto.min.js -c -m",
"minify:js-light": "terser ./dist/snowflakes.light.js -o ./dist/snowflakes.light.min.js -c -m",
"inject:css": "node scripts/inject-styles.mjs lib",
"make": "npm run make:ts && npm run make:css",
"make:ts": "rollup --config rollup.config.mjs",
"make:css": "postcss --no-map src/styles/base.css -o dist/main.css && postcss --no-map src/styles/shapes.css -o dist/types.css",
"prepare": "npm run build:lib",
"typecheck:lib": "tsc --noEmit -p tsconfig.json",
"typecheck:examples": "tsc --noEmit -p examples/constructor/tsconfig.json",
"build:lib": "npm run clean:lib && npm run make && npm run inject:css && npm run minify",
"build:examples": "npm run clean:examples && rollup --config rollup.examples.config.mjs && npm run inject:css:examples",
"clean:lib": "del-cli dist/*",
"clean:examples": "del-cli examples/constructor/dist/*",
"inject:css:examples": "node scripts/inject-styles.mjs examples",
"test:build": "node --test tests/build/*.test.mjs"
},
"browserslist": [
"Firefox >= 60",
"Chrome >= 60",
"iOS >= 9",
"Safari >= 9",
"Android >= 5.0"
]
}