extension 2.0.0-alpha.7 → 2.0.0-alpha.8
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/dist/cli.js +5 -4
- package/dist/types/css-content.d.ts +7 -0
- package/dist/types/css-modules.d.ts +19 -0
- package/dist/types/images.d.ts +58 -0
- package/dist/types/index.d.ts +13 -0
- package/dist/types/index.ts +7 -0
- package/dist/types/polyfill.d.ts +1 -0
- package/package.json +5 -4
package/dist/cli.js
CHANGED
|
@@ -114,7 +114,7 @@ var package_default = {
|
|
|
114
114
|
node: ">=18"
|
|
115
115
|
},
|
|
116
116
|
name: "extension",
|
|
117
|
-
version: "2.0.0-alpha.
|
|
117
|
+
version: "2.0.0-alpha.8",
|
|
118
118
|
description: "Create cross-browser extensions with no build configuration.",
|
|
119
119
|
main: "./dist/cli.js",
|
|
120
120
|
types: "./dist/cli.d.ts",
|
|
@@ -132,11 +132,12 @@ var package_default = {
|
|
|
132
132
|
},
|
|
133
133
|
scripts: {
|
|
134
134
|
watch: "yarn compile --watch",
|
|
135
|
+
"compile:types": "bash install_scripts.sh",
|
|
135
136
|
"compile:readme-files": "node ./scripts/copyMarkdownFilesToCli.js",
|
|
136
137
|
"compile:tailwind-config": "node ./scripts/copyTailwindConfig.js",
|
|
137
138
|
"compile:stylelint-config": "node ./scripts/copyStylelintConfig.js",
|
|
138
139
|
"compile:cli": "tsup-node ./cli.ts --format cjs --dts --target=node18",
|
|
139
|
-
compile: "yarn compile:readme-files && yarn compile:tailwind-config && yarn compile:stylelint-config &&yarn compile:cli",
|
|
140
|
+
compile: "yarn compile:readme-files && yarn compile:tailwind-config && yarn compile:stylelint-config && yarn compile:cli && yarn compile:types",
|
|
140
141
|
clean: "rm -rf dist",
|
|
141
142
|
test: 'echo "Note: no test specified" && exit 0',
|
|
142
143
|
"test:cli": "jest __spec__/cli.spec.ts"
|
|
@@ -156,8 +157,8 @@ var package_default = {
|
|
|
156
157
|
],
|
|
157
158
|
dependencies: {
|
|
158
159
|
"@colors/colors": "^1.6.0",
|
|
159
|
-
"extension-create": "2.0.0-alpha.
|
|
160
|
-
"extension-develop": "2.0.0-alpha.
|
|
160
|
+
"extension-create": "2.0.0-alpha.8",
|
|
161
|
+
"extension-develop": "2.0.0-alpha.8",
|
|
161
162
|
commander: "^11.1.0",
|
|
162
163
|
semver: "^7.5.4",
|
|
163
164
|
"update-check": "^1.5.4"
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type CSSModuleData = Readonly<Record<string, string>>
|
|
2
|
+
|
|
3
|
+
declare module '*.module.css' {
|
|
4
|
+
const content: CSSModuleData
|
|
5
|
+
|
|
6
|
+
export default content
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare module '*.module.scss' {
|
|
10
|
+
const content: CSSModuleData
|
|
11
|
+
|
|
12
|
+
export default content
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare module '*.module.sass' {
|
|
16
|
+
const content: CSSModuleData
|
|
17
|
+
|
|
18
|
+
export default content
|
|
19
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
declare module '*.png' {
|
|
2
|
+
const content: string
|
|
3
|
+
|
|
4
|
+
export default content
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
declare module '*.jpg' {
|
|
8
|
+
const content: string
|
|
9
|
+
|
|
10
|
+
export default content
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare module '*.jpeg' {
|
|
14
|
+
const content: string
|
|
15
|
+
|
|
16
|
+
export default content
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare module '*.gif' {
|
|
20
|
+
const content: string
|
|
21
|
+
|
|
22
|
+
export default content
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare module '*.webp' {
|
|
26
|
+
const content: string
|
|
27
|
+
|
|
28
|
+
export default content
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare module '*.avif' {
|
|
32
|
+
const content: string
|
|
33
|
+
|
|
34
|
+
export default content
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare module '*.ico' {
|
|
38
|
+
const content: string
|
|
39
|
+
|
|
40
|
+
export default content
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
declare module '*.bmp' {
|
|
44
|
+
const content: string
|
|
45
|
+
|
|
46
|
+
export default content
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
declare module '*.svg' {
|
|
50
|
+
/**
|
|
51
|
+
* Use `any` to avoid conflicts with
|
|
52
|
+
* `@svgr/webpack` plugin or
|
|
53
|
+
* `babel-plugin-inline-react-svg` plugin.
|
|
54
|
+
*/
|
|
55
|
+
const content: any
|
|
56
|
+
|
|
57
|
+
export default content
|
|
58
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
/// <reference types="react-dom" />
|
|
4
|
+
/// <reference types="chrome" />
|
|
5
|
+
/// <reference path="./css-content.d.ts" />
|
|
6
|
+
/// <reference path="./css-modules.d.ts" />
|
|
7
|
+
/// <reference path="./images.d.ts" />
|
|
8
|
+
|
|
9
|
+
declare namespace NodeJS {
|
|
10
|
+
interface ProcessEnv {
|
|
11
|
+
readonly EXTENSION_ENV: 'development' | 'production' | 'test' | 'debug'
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
/// <reference types="react-dom" />
|
|
4
|
+
/// <reference types="chrome" />
|
|
5
|
+
/// <reference path="./css-content.d.ts" />
|
|
6
|
+
/// <reference path="./css-modules.d.ts" />
|
|
7
|
+
/// <reference path="./images.d.ts" />
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="webextension-polyfill" />
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"node": ">=18"
|
|
10
10
|
},
|
|
11
11
|
"name": "extension",
|
|
12
|
-
"version": "2.0.0-alpha.
|
|
12
|
+
"version": "2.0.0-alpha.8",
|
|
13
13
|
"description": "Create cross-browser extensions with no build configuration.",
|
|
14
14
|
"main": "./dist/cli.js",
|
|
15
15
|
"types": "./dist/cli.d.ts",
|
|
@@ -27,11 +27,12 @@
|
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"watch": "yarn compile --watch",
|
|
30
|
+
"compile:types": "bash install_scripts.sh",
|
|
30
31
|
"compile:readme-files": "node ./scripts/copyMarkdownFilesToCli.js",
|
|
31
32
|
"compile:tailwind-config": "node ./scripts/copyTailwindConfig.js",
|
|
32
33
|
"compile:stylelint-config": "node ./scripts/copyStylelintConfig.js",
|
|
33
34
|
"compile:cli": "tsup-node ./cli.ts --format cjs --dts --target=node18",
|
|
34
|
-
"compile": "yarn compile:readme-files && yarn compile:tailwind-config && yarn compile:stylelint-config &&yarn compile:cli",
|
|
35
|
+
"compile": "yarn compile:readme-files && yarn compile:tailwind-config && yarn compile:stylelint-config && yarn compile:cli && yarn compile:types",
|
|
35
36
|
"clean": "rm -rf dist",
|
|
36
37
|
"test": "echo \"Note: no test specified\" && exit 0",
|
|
37
38
|
"test:cli": "jest __spec__/cli.spec.ts"
|
|
@@ -51,8 +52,8 @@
|
|
|
51
52
|
],
|
|
52
53
|
"dependencies": {
|
|
53
54
|
"@colors/colors": "^1.6.0",
|
|
54
|
-
"extension-create": "2.0.0-alpha.
|
|
55
|
-
"extension-develop": "2.0.0-alpha.
|
|
55
|
+
"extension-create": "2.0.0-alpha.8",
|
|
56
|
+
"extension-develop": "2.0.0-alpha.8",
|
|
56
57
|
"commander": "^11.1.0",
|
|
57
58
|
"semver": "^7.5.4",
|
|
58
59
|
"update-check": "^1.5.4"
|