@rooted-adapters/gcp-cloud-storage 1.0.0-alpha.6 → 1.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.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AdapterRoutes } from "@rooted/adapter";
|
|
2
2
|
import { Plugin } from "vite";
|
|
3
|
-
//#region src/
|
|
3
|
+
//#region src/adapter.d.mts
|
|
4
4
|
/**
|
|
5
5
|
* Options for {@link gcpCloudStorageAdapter}.
|
|
6
6
|
*/
|
|
7
|
-
type GcpCloudStorageAdapterOptions = {
|
|
7
|
+
export type GcpCloudStorageAdapterOptions = {
|
|
8
8
|
/**
|
|
9
9
|
* Manual route list for projects that don't use `generateRouteManifest`.
|
|
10
10
|
* See {@link AdapterRoutes}.
|
|
@@ -27,7 +27,6 @@ type GcpCloudStorageAdapterOptions = {
|
|
|
27
27
|
* })
|
|
28
28
|
* ```
|
|
29
29
|
*/
|
|
30
|
-
declare function gcpCloudStorageAdapter(options?: GcpCloudStorageAdapterOptions): Plugin;
|
|
30
|
+
export declare function gcpCloudStorageAdapter(options?: GcpCloudStorageAdapterOptions): Plugin[];
|
|
31
31
|
//#endregion
|
|
32
|
-
|
|
33
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC5tdHMiLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vc3JjL2luZGV4Lm10cyJdLCJtYXBwaW5ncyI6Ijs7Ozs7O0tBUVk7Ozs7O0VBS1gsU0FBUzs7Ozs7Ozs7Ozs7Ozs7Ozs7O2lCQW1CTSx1QkFBdUIsVUFBVSxnQ0FBZ0MifQ==
|
|
32
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2NwLWNsb3VkLXN0b3JhZ2UuZC5tdHMiLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vc3JjL2FkYXB0ZXIubXRzIl0sIm1hcHBpbmdzIjoiOzs7Ozs7WUFRWTs7Ozs7RUFLWCxTQUFTOzs7Ozs7Ozs7Ozs7Ozs7Ozs7d0JBbUJNLHVCQUF1QixVQUFVLGdDQUFnQyJ9
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { staticAdapter } from "@rooted/adapter";
|
|
2
|
+
//#region src/adapter.mts
|
|
3
|
+
/**
|
|
4
|
+
* Adapter for Google Cloud Storage static website hosting.
|
|
5
|
+
*
|
|
6
|
+
* Writes pre-rendered HTML files and a `404.html` SPA shell. GCS bucket website
|
|
7
|
+
* hosting uses `404.html` as the not-found page -- no extra files needed.
|
|
8
|
+
*
|
|
9
|
+
* @example `vite.config.ts`
|
|
10
|
+
* ```ts
|
|
11
|
+
* import { rootedManifest } from '@rooted/application'
|
|
12
|
+
* import { gcpCloudStorageAdapter } from '@rooted-adapters/gcp-cloud-storage'
|
|
13
|
+
*
|
|
14
|
+
* export default rootedManifest({
|
|
15
|
+
* plugins: [gcpCloudStorageAdapter()],
|
|
16
|
+
* })
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
function gcpCloudStorageAdapter(options) {
|
|
20
|
+
return staticAdapter({
|
|
21
|
+
name: "rooted:gcp-cloud-storage",
|
|
22
|
+
routes: options?.routes
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { gcpCloudStorageAdapter };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2NwLWNsb3VkLXN0b3JhZ2UubWpzIiwibmFtZXMiOltdLCJzb3VyY2VzIjpbIi4uL3NyYy9hZGFwdGVyLm10cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBzdGF0aWNBZGFwdGVyIH0gZnJvbSAnQHJvb3RlZC9hZGFwdGVyJ1xuXG5pbXBv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WRNYW5pZmVzdCh7XG4gKiAgIHBsdWdpbnM6IFtnY3BDbG91ZFN0b3JhZ2VBZGFwdGVyKCldLFxuICogfSlcbiAqIGBgYFxuICovXG5leHBvcnQgZnVuY3Rpb24gZ2NwQ2xvdWRTdG9yYWdlQWRhcHRlcihvcHRpb25zPzogR2NwQ2xvdWRTdG9yYWdlQWRhcHRlck9wdGlvbnMpOiBQbHVnaW5bXSB7XG5cdHJldHVybiBzdGF0aWNBZGFwdGVyKHsgbmFtZTogJ3Jvb3RlZDpnY3AtY2xvdWQtc3RvcmFnZScsIHJvdXRlczogb3B0aW9ucz8ucm91dGVzIH0pXG59XG4iXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQWdDQSxTQUFnQix1QkFBdUIsU0FBbUQ7Q0FDekYsT0FBTyxjQUFjO0VBQUUsTUFBTTtFQUE0QixRQUFRLFNBQVM7Q0FBTyxDQUFDO0FBQ25GIn0=
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rooted-adapters/gcp-cloud-storage",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.8",
|
|
4
4
|
"description": "Adapter for Google Cloud Storage static website hosting",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
|
@@ -31,20 +31,20 @@
|
|
|
31
31
|
},
|
|
32
32
|
"exports": {
|
|
33
33
|
".": {
|
|
34
|
-
"import": "./dist/
|
|
35
|
-
"types": "./dist/
|
|
34
|
+
"import": "./dist/gcp-cloud-storage.mjs",
|
|
35
|
+
"types": "./dist/gcp-cloud-storage.d.mts"
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@rooted/adapter": "1.0.0-alpha.
|
|
39
|
+
"@rooted/adapter": "1.0.0-alpha.8",
|
|
40
40
|
"vite": ">= 8.0.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@rooted/adapter": "1.0.0-alpha.
|
|
43
|
+
"@rooted/adapter": "1.0.0-alpha.8",
|
|
44
44
|
"@rooted/development": "workspace:*",
|
|
45
45
|
"@rooted/tsdown": "workspace:^",
|
|
46
|
-
"@types/node": "^26.4.
|
|
47
|
-
"tsx": "^4.23.
|
|
46
|
+
"@types/node": "^26.4.1",
|
|
47
|
+
"tsx": "^4.23.13",
|
|
48
48
|
"typescript": "^6.0.3",
|
|
49
49
|
"vite": "^8.2.2"
|
|
50
50
|
},
|
package/dist/index.mjs
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { staticAdapter } from "@rooted/adapter";
|
|
2
|
-
//#region src/index.mts
|
|
3
|
-
/**
|
|
4
|
-
* Adapter for Google Cloud Storage static website hosting.
|
|
5
|
-
*
|
|
6
|
-
* Writes pre-rendered HTML files and a `404.html` SPA shell. GCS bucket website
|
|
7
|
-
* hosting uses `404.html` as the not-found page -- no extra files needed.
|
|
8
|
-
*
|
|
9
|
-
* @example `vite.config.ts`
|
|
10
|
-
* ```ts
|
|
11
|
-
* import { rootedManifest } from '@rooted/application'
|
|
12
|
-
* import { gcpCloudStorageAdapter } from '@rooted-adapters/gcp-cloud-storage'
|
|
13
|
-
*
|
|
14
|
-
* export default rootedManifest({
|
|
15
|
-
* plugins: [gcpCloudStorageAdapter()],
|
|
16
|
-
* })
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
function gcpCloudStorageAdapter(options) {
|
|
20
|
-
return staticAdapter({
|
|
21
|
-
name: "rooted:gcp-cloud-storage",
|
|
22
|
-
routes: options?.routes
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
export { gcpCloudStorageAdapter };
|
|
27
|
-
|
|
28
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXgubWpzIiwibmFtZXMiOltdLCJzb3VyY2Vz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