forked from sachinchoolur/lightGallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
178 lines (178 loc) · 6.5 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
{
"name": "lightgallery",
"version": "2.4.0-beta.0",
"description": "lightGallery is a feature-rich, modular JavaScript gallery plugin for building beautiful image and video galleries for the web and the mobile",
"keywords": [
"JavaScript",
"Gallery",
"Video",
"slider",
"lightBox"
],
"main": "dist/lightgallery.umd.js",
"min": "dist/lightgallery.min.js",
"module": "dist/lightgallery.es5.js",
"typings": "dist/types/index.d.ts",
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "https://github.com/sachinchoolur/lightGallery"
},
"homepage": "http://www.lightgalleryjs.com/",
"bugs": {
"url": "https://github.com/sachinchoolur/lightGallery/issues"
},
"license": "GPLv3",
"author": {
"name": "Sachin Neravath",
"email": "[email protected]",
"url": "https://github.com/sachinchoolur"
},
"engines": {
"node": ">=6.0.0"
},
"scripts": {
"lint": "eslint 'src/**/*.ts' 'test/**/*.ts' --quiet --fix",
"prebuild": "rimraf dist",
"build": "tsc --module commonjs && npm run build-scss && npm run copyAssets && rollup -c rollup.config.ts && npm run docs && npm run minify-css && npm run copyScss && npm run copyAssetsToSite && npm run copyJsToSite && npm run copyPackages && npm run buildLibraries && npm run updatePackageFields",
"build:travis": "tsc --module commonjs && rollup -c rollup.config.ts",
"build-scss": "node-sass --include-path scss src/scss/ -o dist/css/ --output-style expanded",
"build-scss-dev": "node-sass --include-path scss src/scss/ -o site/static/css/ --output-style expanded",
"watch-css": "nodemon --watch 'src/**/*' -e scss -x \"npm run build-scss-dev\"",
"watch-site-content": "nodemon --watch dist -x \"npm run copyAssetsToSite\"",
"minify-css": "cleancss -o dist/css/lightgallery-bundle.min.css dist/css/lightgallery-bundle.css",
"start": "concurrently \"rollup -c rollup-dev.config.ts -w $LG_PLUGINS\" \"npm run watch-site-content \" \"npm run watch-css \" ",
"test": "jest --coverage",
"test:watch": "jest --coverage --watch",
"test:prod": "npm run lint && npm run test -- --no-cache",
"deploy-docs": "ts-node tools/gh-pages-publish",
"docs": "typedoc --json site/data/doc.json --target es6 --theme default --mode file src",
"report-coverage": "cat ./coverage/lcov.info | coveralls",
"commit": "git-cz",
"semantic-release": "semantic-release",
"semantic-release-prepare": "ts-node tools/semantic-release-prepare",
"precommit": "lint-staged",
"travis-deploy-once": "travis-deploy-once",
"copyAssets": "copyfiles -u 1 src/fonts/** dist && copyfiles -u 1 src/images/** dist",
"copyPackages": "copyfiles README.md dist && copyfiles -u 1 packages/**/**/* dist && copyfiles -u 1 packages/**/* dist && copyfiles -u 1 packages/* dist",
"updatePackageFields": "ts-node tools/update-packages",
"copyReactBuild": "copyfiles -f -u 1 -e '**/*.d.ts' lightgallery-react/dist/* dist/react && copyfiles -f -u 1 lightgallery-react/dist/Lightgallery.d.ts dist/react",
"copyLitBuild": "copyfiles -f -u 1 lightgallery-lit/dist/* dist/lit",
"copyVueBuild": "copyfiles -f -u 1 -e '**/*.html' lightgallery-vue/dist/* dist/vue && copyfiles -f lightgallery-vue/dist/lightgallery-vue/src/components/LightGallery.vue.d.ts dist/vue ",
"copyAngularBuild": "ts-node tools/copy-angular-build",
"copyAssetsToSite": "copyfiles -f dist/images/** site/static/images && copyfiles -f dist/fonts/** site/static/fonts",
"copyJsToSite": "copyfiles -f dist/*.js site/assets/js && copyfiles -u 1 dist/plugins/**/* site/assets/js",
"copyScss": "copyfiles -f -u 1 src/scss/** dist/scss && copyfiles -u 2 src/scss/**/* dist/scss",
"prepush": "npm run test:prod && npm run build",
"commitmsg": "commitlint -E HUSKY_GIT_PARAMS",
"buildLibraries": "ts-node tools/build-libraries",
"publishToNpm": "ts-node tools/npm-publish"
},
"lint-staged": {
"{src,test}/**/*.ts": [
"prettier --write",
"git add"
]
},
"config": {
"commitizen": {
"path": "node_modules/cz-conventional-changelog"
}
},
"jest": {
"transform": {
".(ts|tsx)": "ts-jest"
},
"testEnvironment": "jsdom",
"testRegex": "(/__tests__/.*|\\.(test))\\.(ts|tsx|js)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"coveragePathIgnorePatterns": [
"/node_modules/",
"/test/"
],
"coverageThreshold": {
"global": {
"branches": 0,
"functions": 0,
"lines": 0,
"statements": 0
}
},
"collectCoverageFrom": [
"src/*.{js,ts}"
]
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"devDependencies": {
"@commitlint/cli": "^7.1.2",
"@commitlint/config-conventional": "^7.1.2",
"@testing-library/dom": "^7.30.4",
"@testing-library/jest-dom": "^5.12.0",
"@types/jest": "^26.0.23",
"@types/node": "^10.11.0",
"@types/react": "^17.0.3",
"@types/testing-library__dom": "^7.5.0",
"@types/testing-library__jest-dom": "^5.9.5",
"@typescript-eslint/eslint-plugin": "^4.6.0",
"@typescript-eslint/parser": "^4.6.0",
"clean-css-cli": "^4.3.0",
"colors": "^1.3.2",
"commitizen": "^3.0.0",
"concurrently": "^5.3.0",
"copyfiles": "^2.4.1",
"coveralls": "^3.0.2",
"cross-env": "^5.2.0",
"cz-conventional-changelog": "^2.1.0",
"eslint": "^7.12.1",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-prettier": "^3.1.4",
"fs-extra": "^7.0.1",
"husky": "^1.0.1",
"jest": "^26.6.3",
"jest-config": "^26.6.3",
"lint-staged": "^8.0.0",
"lodash.camelcase": "^4.3.0",
"node-sass": "^4.14.1",
"nodemon": "^2.0.4",
"prettier": "^2.1.2",
"prompt": "^1.0.0",
"replace-in-file": "^3.4.4",
"rimraf": "^2.6.2",
"rollup": "^2.52.2",
"rollup-plugin-commonjs": "^9.1.8",
"rollup-plugin-json": "^3.1.0",
"rollup-plugin-license": "^2.2.0",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.27.3",
"semantic-release": "^17.4.2",
"semantic-release-cli": "^5.4.3",
"shelljs": "^0.8.3",
"travis-deploy-once": "^5.0.9",
"ts-jest": "^26.5.6",
"ts-node": "^9.1.1",
"typedoc": "^0.19.2",
"typescript": "^3.0.3"
},
"dependencies": {
"@types/picturefill": "^3.0.0",
"i": "^0.3.6",
"npm": "^6.14.8",
"video.js": "^7.0.3"
},
"peerDependencies": {
"react": "^17.0.2",
"react-dom": "^17.0.2"
}
}