@crxjs/vite-plugin 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +74 -0
- package/client.d.ts +59 -0
- package/dist/index.cjs +3328 -0
- package/dist/index.d.ts +255 -0
- package/dist/index.mjs +3291 -0
- package/manifest.schema.json +15 -0
- package/package.json +126 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://extend-chrome.dev/manifest.schema.json",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"if": {
|
|
5
|
+
"properties": {
|
|
6
|
+
"manifest_version": { "type": "number", "enum": [2] }
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
"then": {
|
|
10
|
+
"$ref": "./schema/manifest-v2.schema.json"
|
|
11
|
+
},
|
|
12
|
+
"else": {
|
|
13
|
+
"$ref": "./schema/manifest-v3.schema.json"
|
|
14
|
+
}
|
|
15
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@crxjs/vite-plugin",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Build Chrome Extensions with this Vite plugin.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"rollup-plugin",
|
|
7
|
+
"vite-plugin",
|
|
8
|
+
"chrome",
|
|
9
|
+
"chrome-extension",
|
|
10
|
+
"extension",
|
|
11
|
+
"webext",
|
|
12
|
+
"webextension",
|
|
13
|
+
"browser",
|
|
14
|
+
"browser-extension"
|
|
15
|
+
],
|
|
16
|
+
"homepage": "https://github.com/crxjs/rollup-plugin-chrome-extension",
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/crxjs/rollup-plugin-chrome-extension/issues"
|
|
19
|
+
},
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "https://github.com/crxjs/rollup-plugin-chrome-extension.git"
|
|
23
|
+
},
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"author": "Jack and Amy Steam <jacksteamdev@gmail.com>",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"require": "./dist/index.cjs",
|
|
29
|
+
"import": "./dist/index.mjs",
|
|
30
|
+
"types": "./dist/index.d.ts"
|
|
31
|
+
},
|
|
32
|
+
"./*": "./*"
|
|
33
|
+
},
|
|
34
|
+
"main": "dist/index.cjs",
|
|
35
|
+
"module": "dist/index.mjs",
|
|
36
|
+
"types": "dist/index.d.ts",
|
|
37
|
+
"files": [
|
|
38
|
+
"dist",
|
|
39
|
+
"types",
|
|
40
|
+
"manifest.schema.json",
|
|
41
|
+
"schema",
|
|
42
|
+
"client.d.ts"
|
|
43
|
+
],
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "run-s build:clean build:js",
|
|
46
|
+
"build:clean": "rimraf dist",
|
|
47
|
+
"build:js": "rollup -c rollup.config.ts --configPlugin esbuild",
|
|
48
|
+
"dev:js": "npm run build:js -- -w",
|
|
49
|
+
"dev:lint": "tsc --noEmit --watch",
|
|
50
|
+
"lint": "run-s lint:eslint lint:types",
|
|
51
|
+
"lint:eslint": "eslint \"{src,test}/**/*.ts\"",
|
|
52
|
+
"lint:types": "tsc --noEmit",
|
|
53
|
+
"test": "run-s test:update:*",
|
|
54
|
+
"test:ci:e2e:build": "node --expose-gc ./node_modules/jest/bin/jest.js --logHeapUsage --runInBand --forceExit --testPathIgnorePatterns=\\(/node_modules/ /templates/ /mv3/\\) -t build",
|
|
55
|
+
"test:ci:e2e:serve": "npm run test:ci:e2e:serve:cmd || npm run test:ci:e2e:serve:cmd",
|
|
56
|
+
"test:ci:e2e:serve:cmd": "node --expose-gc ./node_modules/jest/bin/jest.js --logHeapUsage --runInBand --forceExit --testPathIgnorePatterns=\\(/node_modules/ /templates/ /mv3/\\) -t serve",
|
|
57
|
+
"test:ci:mv3:build": "node --expose-gc ./node_modules/jest/bin/jest.js --logHeapUsage --runInBand --forceExit --testPathIgnorePatterns=\\(/node_modules/ /templates/ /e2e/\\) --updateSnapshot build",
|
|
58
|
+
"test:ci:mv3:serve": "node --expose-gc ./node_modules/jest/bin/jest.js --logHeapUsage --runInBand --forceExit --testPathIgnorePatterns=\\(/node_modules/ /templates/ /e2e/\\) --updateSnapshot serve",
|
|
59
|
+
"test:update:build": "jest build -u",
|
|
60
|
+
"test:update:serve": "jest serve -u"
|
|
61
|
+
},
|
|
62
|
+
"dependencies": {
|
|
63
|
+
"@rollup/pluginutils": "^4.1.2",
|
|
64
|
+
"@webcomponents/custom-elements": "^1.5.0",
|
|
65
|
+
"acorn-walk": "^8.2.0",
|
|
66
|
+
"cheerio": "^1.0.0-rc.10",
|
|
67
|
+
"connect-injector": "^0.4.4",
|
|
68
|
+
"debug": "^4.3.3",
|
|
69
|
+
"es-module-lexer": "^0.10.0",
|
|
70
|
+
"fast-glob": "^3.2.11",
|
|
71
|
+
"fs-extra": "^10.0.1",
|
|
72
|
+
"jsesc": "^3.0.2",
|
|
73
|
+
"magic-string": "^0.26.0",
|
|
74
|
+
"picocolors": "^1.0.0",
|
|
75
|
+
"react-refresh": "^0.12.0",
|
|
76
|
+
"rollup": "^2.70.2"
|
|
77
|
+
},
|
|
78
|
+
"devDependencies": {
|
|
79
|
+
"@extend-chrome/messages": "1.2.2",
|
|
80
|
+
"@extend-chrome/storage": "1.5.0",
|
|
81
|
+
"@rollup/plugin-alias": "3.1.9",
|
|
82
|
+
"@rollup/plugin-commonjs": "21.0.3",
|
|
83
|
+
"@rollup/plugin-node-resolve": "13.2.0",
|
|
84
|
+
"@types/acorn": "4.0.6",
|
|
85
|
+
"@types/chrome": "0.0.181",
|
|
86
|
+
"@types/debug": "4.1.7",
|
|
87
|
+
"@types/fs-extra": "9.0.13",
|
|
88
|
+
"@types/jest": "27.4.1",
|
|
89
|
+
"@types/jest-image-snapshot": "4.3.1",
|
|
90
|
+
"@types/jsesc": "3.0.1",
|
|
91
|
+
"@types/node": "17.0.18",
|
|
92
|
+
"@types/react": "17.0.44",
|
|
93
|
+
"@types/react-dom": "17.0.11",
|
|
94
|
+
"@typescript-eslint/eslint-plugin": "5.19.0",
|
|
95
|
+
"@typescript-eslint/parser": "5.19.0",
|
|
96
|
+
"@vitejs/plugin-react": "1.3.1",
|
|
97
|
+
"@vitejs/plugin-vue": "2.3.1",
|
|
98
|
+
"@vue/compiler-sfc": "3.2.33",
|
|
99
|
+
"@vueuse/core": "7.6.2",
|
|
100
|
+
"@vueuse/router": "8.2.6",
|
|
101
|
+
"esbuild": "0.14.23",
|
|
102
|
+
"esbuild-runner": "2.2.1",
|
|
103
|
+
"jest": "27.5.1",
|
|
104
|
+
"jest-image-snapshot": "4.5.1",
|
|
105
|
+
"playwright-chromium": "1.21.0",
|
|
106
|
+
"react": "17.0.2",
|
|
107
|
+
"react-dom": "17.0.2",
|
|
108
|
+
"rimraf": "3.0.2",
|
|
109
|
+
"rollup-plugin-dts": "^4.2.0",
|
|
110
|
+
"rollup-plugin-esbuild": "4.9.1",
|
|
111
|
+
"rxjs": "7.5.5",
|
|
112
|
+
"typescript": "4.6.3",
|
|
113
|
+
"vite": "^2.9.5",
|
|
114
|
+
"vite-plugin-inspect": "0.4.3",
|
|
115
|
+
"vue": "3.2.33"
|
|
116
|
+
},
|
|
117
|
+
"peerDependencies": {
|
|
118
|
+
"vite": "^2.9.0"
|
|
119
|
+
},
|
|
120
|
+
"optionalDependencies": {
|
|
121
|
+
"@vitejs/plugin-react": "^1.2.0"
|
|
122
|
+
},
|
|
123
|
+
"engines": {
|
|
124
|
+
"node": ">=14"
|
|
125
|
+
}
|
|
126
|
+
}
|