forked from darkroomengineering/lenis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
93 lines (93 loc) · 2.96 KB
/
package.json
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
{
"name": "@studio-freight/lenis",
"version": "1.0.27",
"description": "Lenis is a smooth scroll library to normalize the scrolling experience across devices",
"files": [
"dist",
"bundled"
],
"sideEffects": false,
"source": "src/lenis.js",
"main": "dist/lenis.js",
"umd:main": "dist/lenis.umd.js",
"module": "dist/lenis.mjs",
"types": "dist/types/index.d.ts",
"exports": {
"types": "./dist/types/index.d.ts",
"require": "./dist/lenis.js",
"default": "./dist/lenis.modern.mjs"
},
"devDependencies": {
"@size-limit/preset-small-lib": "^8.2.4",
"husky": "^8.0.3",
"lint-staged": "^13.2.0",
"microbundle": "^0.15.1",
"npm-run-all": "^4.1.5",
"path": "^0.12.7",
"prettier": "^2.8.6",
"rimraf": "^4.4.0",
"size-limit": "^8.2.4",
"stats.js": "^0.17.0",
"typescript": "^5.0.2",
"vite": "^4.2.1"
},
"author": "studio-freight",
"repository": {
"type": "git",
"url": "git+https://github.com/studio-freight/lenis.git"
},
"scripts": {
"dev": "npm-run-all --parallel watch dev:website",
"dev:website": "npm run dev:website --prefix ./website",
"size": "size-limit",
"clean": "rimraf dist && rimraf bundled",
"build:website": "vite build",
"prebuild": "npm run clean",
"patch": "npm version patch",
"prepublishOnly": "npm run patch",
"git:add": "git add .",
"git:push": "git push",
"git:push-tags": "git push --tags",
"version": "npm-run-all build readme git:add",
"postversion": "npm-run-all git:push git:push-tags",
"prepare": "husky install",
"readme": "node update-readme.js",
"watch": "microbundle watch -i src/ --o ./bundled/lenis.js --no-sourcemap --no-pkg-main --external none --name Lenis --format umd --no-compress",
"build": "npm-run-all --parallel build:dist build:bundle build:types",
"build:types": "tsc --allowJs -d --emitDeclarationOnly --declarationDir ./dist/types --removeComments ./src/index.js",
"build:dist": "microbundle build -i src/ --o ./dist",
"build:bundle": "npm-run-all build:bundle-full build:bundle-min",
"build:bundle-full": "microbundle build -i src/ --o ./bundled/lenis.js --no-sourcemap --no-pkg-main --external none --name Lenis --format umd --no-compress",
"build:bundle-min": "microbundle build -i src/ --o ./bundled/lenis.min.js --no-sourcemap --no-pkg-main --external none --name Lenis --format umd"
},
"bugs": {
"url": "https://github.com/studio-freight/lenis/issues"
},
"homepage": "https://github.com/studio-freight/lenis#readme",
"keywords": [
"smooth",
"scroll"
],
"size-limit": [
{
"limit": "4.5 kB",
"path": "dist/lenis.js"
},
{
"limit": "4.5 kB",
"path": "dist/lenis.mjs"
},
{
"limit": "4.5 kB",
"path": "dist/lenis.modern.mjs"
},
{
"limit": "4.5 kB",
"path": "dist/lenis.umd.js"
}
],
"lint-staged": {
"*.js": "eslint --cache --fix",
"*.{js,css,scss,md}": "prettier --write"
}
}