-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
69 lines (69 loc) · 2.08 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
{
"name": "@globocom/scrollspy",
"private": false,
"version": "0.1.0",
"description": "Bind functions to DOM elements based on their scroll position",
"keywords": [
"scrollspy",
"lazyload"
],
"main": "./dist/scrollspy.js",
"browser": "./dist/scrollspy.js",
"module": "./dist/esm/scrollspy.js",
"types": "./dist/esm/scrollspy.d.ts",
"files": [
"dist",
"src"
],
"license": "MIT",
"author": "rafalages",
"repository": {
"type": "git",
"url": "git+https://github.com/globocom/ScrollSpy.git"
},
"bugs": {
"url": "https://github.com/globocom/ScrollSpy/issues"
},
"homepage": "https://github.com/globocom/ScrollSpy#readme",
"scripts": {
"build": "npm run build:esm && npm run build:umd && npm run build:minify",
"build:esm": "tsc --preserveWatchOutput",
"build:umd": "rollup -c rollup.config.js",
"build:minify": "terser --compress --mangle --output dist/scrollspy.min.js --source-map \"content='./dist/scrollspy.js.map',filename=dist/scrollspy.min.js.map,includeSources\" -- dist/scrollspy.js",
"demo": "npx http-server ./",
"develop": "concurrently \"npm run build:esm -- --watch\" \"npm run build:umd -- --watch\" \"npm test -- --singleRun false --autoWatch true\" \"npm lint -- --watch\"",
"lint": "esw --color --ext .ts src",
"test": "karma start karma.conf.js"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^2.3.2",
"@typescript-eslint/parser": "^2.3.2",
"concurrently": "^4.1.2",
"eslint": "^6.5.1",
"eslint-config-prettier": "^6.3.0",
"eslint-plugin-prettier": "^3.1.1",
"eslint-watch": "^6.0.1",
"husky": "^3.0.9",
"jasmine-core": "^3.5.0",
"karma": "^4.3.0",
"karma-chrome-launcher": "^3.1.0",
"karma-jasmine": "^2.0.1",
"lint-staged": "^9.4.2",
"prettier": "^1.18.2",
"rollup": "^1.23.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"terser": "^4.3.4",
"typescript": "^3.6.3"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,ts}": [
"eslint --fix",
"git add"
]
}
}