-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
145 lines (145 loc) · 3.91 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{
"name": "svelte-viewpoint",
"version": "1.4.3",
"description": "Super tiny, loadable component for SvelteJS with blackjack and data preloading.",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"cdn": "dist/viewpoint.min.js",
"unpkg": "dist/viewpoint.min.js",
"svelte": "./src/index.js",
"types": "./src/index.d.ts",
"engines": {
"node": ">=10.0.0"
},
"scripts": {
"build": "npm run format && npm run lint && npm run clean && rollup -c",
"prepublishOnly": "npm run build && npm run size",
"format": "prettier --write src",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"test": "jest src",
"size": "size-limit",
"clean": "rm -rf ./dist"
},
"babel": {
"presets": [
[
"@babel/preset-env"
]
]
},
"browserslist": [
"extends browserslist-config-google"
],
"size-limit": [
{
"name": "UMD output",
"limit": "3.2 KB",
"path": "./dist/index.js"
},
{
"name": "ESM output",
"limit": "3.2 KB",
"path": "./dist/index.mjs"
},
{
"name": "UMD output (minified)",
"limit": "2 KB",
"path": "./dist/index.min.js"
},
{
"name": "ESM output (minified)",
"limit": "2 KB",
"path": "./dist/index.min.mjs"
},
{
"name": "IIFE bundle",
"limit": "6.2 KB",
"path": "./dist/viewpoint.js"
},
{
"name": "ESM bundle",
"limit": "6.2 KB",
"path": "./dist/viewpoint.mjs"
},
{
"name": "IIFE bundle (minified)",
"limit": "3.5 KB",
"path": "./dist/viewpoint.min.js"
},
{
"name": "ESM bundle (minified)",
"limit": "3.5 KB",
"path": "./dist/viewpoint.min.mjs"
}
],
"prettier": {
"tabWidth": 4,
"semi": true,
"singleQuote": true,
"svelteSortOrder": "markup-scripts-styles",
"svelteStrictMode": false,
"svelteBracketNewLine": true,
"svelteAllowShorthand": true,
"plugins": [
"svelte"
]
},
"eslintConfig": {
"extends": [
"eslint:recommended",
"prettier"
],
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module"
},
"env": {
"es6": true,
"browser": true
}
},
"files": [
"src",
"dist"
],
"repository": {
"type": "git",
"url": "git+https://github.com/sveltetools/svelte-viewpoint.git"
},
"keywords": [
"svelte",
"svelte store"
],
"author": "PaulMaly",
"license": "MIT",
"bugs": {
"url": "https://github.com/sveltetools/svelte-viewpoint/issues"
},
"homepage": "https://github.com/sveltetools/svelte-viewpoint#readme",
"devDependencies": {
"@babel/core": "^7.13.8",
"@babel/preset-env": "^7.13.8",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^17.1.0",
"@rollup/plugin-node-resolve": "^11.2.0",
"@size-limit/preset-app": "^4.9.2",
"browserslist-config-google": "^2.0.0",
"core-js": "^3.9.0",
"eslint": "^7.20.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-svelte3": "^3.1.2",
"jest": "^26.6.3",
"prettier": "^2.2.1",
"prettier-plugin-svelte": "^2.1.6",
"rollup": "^2.40.0",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup-plugin-svelte": "^7.1.0",
"rollup-plugin-terser": "^7.0.2",
"size-limit": "^4.9.2",
"svelte": "^3.0.0"
},
"peerDependencies": {
"svelte": "3.x"
}
}