-
Notifications
You must be signed in to change notification settings - Fork 122
/
package.json
186 lines (186 loc) · 5.54 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
179
180
181
182
183
184
185
186
{
"name": "drift-zoom",
"version": "1.5.1",
"description": "Easily add \"zoom on hover\" functionality to your site's images. Lightweight, no-dependency JavaScript.",
"contributors": [
"Frederick Fogerty <[email protected]> (https://github.com/frederickfogerty)",
"Sherwin Heydarbeygi <[email protected]> (https://github.com/sherwinski)"
],
"main": "lib/Drift.js",
"module": "es/Drift.js",
"jsnext:main": "es/Drift.js",
"scripts": {
"build": "npm run clean && run-p build:css:** build:js:**",
"build:serial": "npm run clean && run-s build:css:** build:js:**",
"build:css:dev": "mkdir -p dist && cp src/css/drift-basic.css dist/",
"build:css:prod": "mkdir -p dist && postcss src/css/drift-basic.css > dist/drift-basic.min.css",
"build:js:dist:prod": "webpack --env build && cp dist/Drift.min.js dist/Drift.js",
"build:js:lib:commonjs": "cross-env BABEL_ENV=commonjs babel src/js --out-dir lib --source-maps",
"build:js:lib:es": "cross-env BABEL_ENV=es babel src/js --out-dir es --source-maps",
"build:watch": "webpack --progress --color --watch --env dev",
"clean": "rimraf lib es dist",
"dev": "npm run build:watch",
"format:check": "prettier --list-different \"{src,test}/**/*.js\"",
"format": "prettier --write \"{src,test}/**/*.js\"",
"lint": "eslint \"{src,test}/**/*.js\"",
"prepare": "npm run build",
"prepublishOnly": "npm run build",
"release": "npm run build && git add dist src/js/Drift.js && standard-version -a",
"start": "npm run dev",
"test:watch": "karma start config/karma/karma-local.config.js",
"test:local": "karma start config/karma/karma-local.config.js --singleRun",
"test:ci": "karma start config/karma/karma-ci.config.js --singleRun",
"test": "npm run test:local",
"release:dryRun": "npx node-env-run --exec 'semantic-release --dryRun'",
"release:publish": "semantic-release"
},
"files": [
"lib",
"es",
"dist",
"src"
],
"repository": {
"type": "git",
"url": "git+https://github.com/imgix/drift.git"
},
"keywords": [
"javascript",
"zoom",
"hover"
],
"author": "imgix",
"license": "BSD-2",
"bugs": {
"url": "https://github.com/imgix/drift/issues"
},
"homepage": "https://github.com/imgix/drift",
"devDependencies": {
"@babel/cli": "7.22.9",
"@babel/core": "7.22.9",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/preset-env": "7.22.9",
"@google/semantic-release-replace-plugin": "1.2.7",
"@semantic-release/changelog": "6.0.3",
"@semantic-release/git": "10.0.1",
"babel-eslint": "10.1.0",
"babel-loader": "9.1.3",
"babel-preset-env": "7.0.0-beta.3",
"chai": "4.3.7",
"closure-webpack-plugin": "2.6.1",
"cross-env": "7.0.3",
"cssnano": "6.0.1",
"cssnano-preset-advanced": "6.0.1",
"eslint": "7.32.0",
"eslint-config-google": "0.14.0",
"eslint-config-prettier": "8.8.0",
"google-closure-compiler": "20230502.0.0",
"google-closure-compiler-js": "20200719.0.0",
"jasmine-core": "5.0.1",
"karma": "6.4.2",
"karma-chrome-launcher": "3.2.0",
"karma-firefox-launcher": "2.1.2",
"karma-jasmine": "5.1.0",
"karma-webpack": "4.0.2",
"npm-run-all": "4.1.5",
"postcss": "8.4.36",
"postcss-cli": "8.3.1",
"prettier": "3.2.5",
"rimraf": "5.0.5",
"semantic-release": "21.0.7",
"standard-version": "9.5.0",
"webpack": "4.46.0",
"webpack-cli": "5.1.4",
"yargs": "17.7.2"
},
"browserslist": [
"ie 11",
"last 2 edge versions",
"last 2 Chrome versions",
"last 2 Firefox versions",
"last 2 Safari versions",
"last 2 iOS versions",
"last 2 Android versions"
],
"release": {
"branches": [
"main",
{
"name": "next",
"prerelease": "rc"
},
{
"name": "beta",
"prerelease": true
},
{
"name": "alpha",
"prerelease": true
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@google/semantic-release-replace-plugin",
{
"replacements": [
{
"files": [
"src/js/Drift.js"
],
"from": "this.VERSION = \".*\"",
"to": "this.VERSION = \"${nextRelease.version}\"",
"results": [
{
"file": "src/js/Drift.js",
"hasChanged": true,
"numMatches": 1,
"numReplacements": 1
}
],
"countMatches": true
}
]
}
],
"@semantic-release/changelog",
"@semantic-release/npm",
[
"@semantic-release/git",
{
"assets": [
"src/**",
"dist/**",
"package.json",
"changelog.md"
],
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes} [skip ci]"
}
],
[
"@semantic-release/github",
{
"assets": [
{
"path": "dist/Drift.js",
"label": "Standard build"
},
{
"path": "dist/Drift.min.js",
"label": "Minified build"
},
{
"path": "dist/drift-basic.css",
"label": "Drift css"
},
{
"path": "dist/drift-basic.min.css",
"label": "Minified Drift css"
}
]
}
]
]
}
}