@blinkk/root-cms 1.0.0-alpha.4 → 1.0.0-alpha.6

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/index.d.ts CHANGED
@@ -1 +1,3 @@
1
+ declare const test: {};
1
2
 
3
+ export { test };
package/dist/index.js CHANGED
@@ -1,3 +1,6 @@
1
1
  // src/index.ts
2
- console.log("TODO");
2
+ var test = {};
3
+ export {
4
+ test
5
+ };
3
6
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["console.log('TODO');\n"],"mappings":";AAAA,QAAQ,IAAI,MAAM;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export const test = {};\n"],"mappings":";AAAO,IAAM,OAAO,CAAC;","names":[]}
@@ -0,0 +1,6 @@
1
+ import { Plugin } from '@blinkk/root';
2
+
3
+ declare type CMSPluginOptions = {};
4
+ declare function cmsPlugin(options?: CMSPluginOptions): Plugin;
5
+
6
+ export { cmsPlugin };
package/dist/plugin.js ADDED
@@ -0,0 +1,17 @@
1
+ // src/plugin.ts
2
+ function cmsPlugin(options) {
3
+ return {
4
+ name: "root-cms",
5
+ configureServer: (server) => {
6
+ server.use("/cms", (req, res) => {
7
+ console.log("root config context var:");
8
+ console.log(req.rootConfig);
9
+ res.end("cms");
10
+ });
11
+ }
12
+ };
13
+ }
14
+ export {
15
+ cmsPlugin
16
+ };
17
+ //# sourceMappingURL=plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/plugin.ts"],"sourcesContent":["import {Plugin, Request, Response} from '@blinkk/root';\n\ntype CMSPluginOptions = {};\n\nexport function cmsPlugin(options?: CMSPluginOptions): Plugin {\n return {\n name: 'root-cms',\n configureServer: (server) => {\n server.use('/cms', (req: Request, res: Response) => {\n console.log('root config context var:');\n console.log(req.rootConfig);\n res.end('cms');\n });\n },\n };\n}\n"],"mappings":";AAIO,SAAS,UAAU,SAAoC;AAC5D,SAAO;AAAA,IACL,MAAM;AAAA,IACN,iBAAiB,CAAC,WAAW;AAC3B,aAAO,IAAI,QAAQ,CAAC,KAAc,QAAkB;AAClD,gBAAQ,IAAI,0BAA0B;AACtC,gBAAQ,IAAI,IAAI,UAAU;AAC1B,YAAI,IAAI,KAAK;AAAA,MACf,CAAC;AAAA,IACH;AAAA,EACF;AACF;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blinkk/root-cms",
3
- "version": "1.0.0-alpha.4",
3
+ "version": "1.0.0-alpha.6",
4
4
  "author": "s@blinkk.com",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -14,23 +14,25 @@
14
14
  "types": "./dist/index.d.ts",
15
15
  "exports": {
16
16
  ".": {
17
- "default": "./dist/index.js",
18
- "import": "./dist/index.js",
19
- "types": "./dist/index.d.ts"
17
+ "types": "./dist/index.d.ts",
18
+ "import": "./dist/index.js"
20
19
  },
21
- "./schema": {
22
- "default": "./dist/schema.js",
23
- "import": "./dist/schema.js",
24
- "types": "./dist/schema.d.ts"
20
+ "./*": {
21
+ "types": "./dist/*.d.ts",
22
+ "import": "./dist/*.js"
25
23
  }
26
24
  },
25
+ "dependencies": {
26
+ "@blinkk/root": "1.0.0-alpha.13",
27
+ "firebase": "^9.13.0"
28
+ },
27
29
  "devDependencies": {
28
30
  "@types/node": "^18.11.8",
29
31
  "tsup": "^6.3.0",
30
32
  "vitest": "^0.18.1"
31
33
  },
32
34
  "scripts": {
33
- "build": "rm -rf dist && tsup",
35
+ "build": "rm -rf dist && tsup-node",
34
36
  "test": "pnpm build && vitest run",
35
37
  "test:watch": "pnpm build && vitest"
36
38
  }