();
27 |
28 | export interface RouterProps {
29 | routes: PageTree;
30 | fallback?: JSX.Element;
31 | location?: UseLocationOptions;
32 | }
33 |
34 | export default function Router(
35 | props: RouterProps,
36 | ): JSX.Element {
37 | const location = useLocation(() => props.routes, props.location);
38 |
39 | const matchedRoute = createMemo(() => (
40 | matchRoute(props.routes, location.pathname)
41 | ));
42 |
43 | return (
44 |
45 |
46 | {(route) => (
47 |
48 |
49 | {(Comp) => }
50 |
51 |
52 | )}
53 |
54 |
55 | );
56 | }
57 |
58 | export function useRouterUnsafe(): RouterInstance
| undefined {
59 | const location = useContext(LocationContext);
60 | const params = useContext(ParamsContext);
61 | if (location) {
62 | return mergeProps(location, {
63 | params: params as P,
64 | });
65 | }
66 | return undefined;
67 | }
68 |
69 | export function useRouter
(): RouterInstance
{
70 | const router = useRouterUnsafe
();
71 | if (router) {
72 | return router;
73 | }
74 | throw new Error('useRouter must be used in a component within ');
75 | }
76 |
--------------------------------------------------------------------------------
/packages/adapters/http/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "caldaria-adapter-http",
3 | "version": "0.0.24",
4 | "type": "module",
5 | "types": "dist/types/index.d.ts",
6 | "main": "dist/cjs/production/index.js",
7 | "module": "dist/esm/production/index.js",
8 | "exports": {
9 | ".": {
10 | "development": {
11 | "require": "./dist/cjs/development/index.cjs",
12 | "import": "./dist/esm/development/index.mjs"
13 | },
14 | "require": "./dist/cjs/production/index.cjs",
15 | "import": "./dist/esm/production/index.mjs",
16 | "types": "./dist/types/index.d.ts"
17 | }
18 | },
19 | "files": [
20 | "dist",
21 | "src"
22 | ],
23 | "engines": {
24 | "node": ">=10"
25 | },
26 | "license": "MIT",
27 | "keywords": [
28 | "pridepack"
29 | ],
30 | "devDependencies": {
31 | "@types/node": "^17.0.35",
32 | "eslint": "^8.21.0",
33 | "eslint-config-lxsmnsyc": "^0.4.8",
34 | "pridepack": "^2.1.2",
35 | "caldaria": "0.0.24",
36 | "tslib": "^2.4.0",
37 | "typescript": "^4.7.4"
38 | },
39 | "description": "HTTP Adapter for Caldaria",
40 | "repository": {
41 | "url": "https://github.com/lxsmnsyc/caldaria.git",
42 | "type": "git"
43 | },
44 | "homepage": "https://github.com/lxsmnsyc/caldaria/tree/main/packages/adapters/http",
45 | "bugs": {
46 | "url": "https://github.com/lxsmnsyc/caldaria/issues"
47 | },
48 | "publishConfig": {
49 | "access": "public"
50 | },
51 | "author": "Alexis Munsayac",
52 | "private": false,
53 | "scripts": {
54 | "prepublishOnly": "pridepack clean && pridepack build",
55 | "build": "pridepack build",
56 | "type-check": "pridepack check",
57 | "lint": "pridepack lint",
58 | "test": "pridepack test --passWithNoTests",
59 | "clean": "pridepack clean",
60 | "watch": "pridepack watch",
61 | "start": "pridepack start",
62 | "dev": "pridepack dev"
63 | },
64 | "peerDependencies": {
65 | "caldaria": "^0.0"
66 | },
67 | "dependencies": {
68 | "node-fetch": "^3.1.0"
69 | },
70 | "typesVersions": {
71 | "*": {
72 | "*": [
73 | "./dist/types/index.d.ts"
74 | ]
75 | }
76 | }
77 | }
78 |
--------------------------------------------------------------------------------
/packages/adapters/http2/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "caldaria-adapter-http2",
3 | "version": "0.0.24",
4 | "type": "module",
5 | "types": "dist/types/index.d.ts",
6 | "main": "dist/cjs/production/index.js",
7 | "module": "dist/esm/production/index.js",
8 | "exports": {
9 | ".": {
10 | "development": {
11 | "require": "./dist/cjs/development/index.cjs",
12 | "import": "./dist/esm/development/index.mjs"
13 | },
14 | "require": "./dist/cjs/production/index.cjs",
15 | "import": "./dist/esm/production/index.mjs",
16 | "types": "./dist/types/index.d.ts"
17 | }
18 | },
19 | "files": [
20 | "dist",
21 | "src"
22 | ],
23 | "engines": {
24 | "node": ">=10"
25 | },
26 | "license": "MIT",
27 | "keywords": [
28 | "pridepack"
29 | ],
30 | "devDependencies": {
31 | "@types/node": "^17.0.35",
32 | "eslint": "^8.21.0",
33 | "eslint-config-lxsmnsyc": "^0.4.8",
34 | "pridepack": "^2.1.2",
35 | "caldaria": "0.0.24",
36 | "tslib": "^2.4.0",
37 | "typescript": "^4.7.4"
38 | },
39 | "description": "HTTP2 Adapter for Caldaria",
40 | "repository": {
41 | "url": "https://github.com/lxsmnsyc/caldaria.git",
42 | "type": "git"
43 | },
44 | "homepage": "https://github.com/lxsmnsyc/caldaria/tree/main/packages/adapters/http2",
45 | "bugs": {
46 | "url": "https://github.com/lxsmnsyc/caldaria/issues"
47 | },
48 | "publishConfig": {
49 | "access": "public"
50 | },
51 | "author": "Alexis Munsayac",
52 | "private": false,
53 | "scripts": {
54 | "prepublishOnly": "pridepack clean && pridepack build",
55 | "build": "pridepack build",
56 | "type-check": "pridepack check",
57 | "lint": "pridepack lint",
58 | "test": "pridepack test --passWithNoTests",
59 | "clean": "pridepack clean",
60 | "watch": "pridepack watch",
61 | "start": "pridepack start",
62 | "dev": "pridepack dev"
63 | },
64 | "peerDependencies": {
65 | "caldaria": "^0.0"
66 | },
67 | "dependencies": {
68 | "node-fetch": "^3.1.0"
69 | },
70 | "typesVersions": {
71 | "*": {
72 | "*": [
73 | "./dist/types/index.d.ts"
74 | ]
75 | }
76 | }
77 | }
78 |
--------------------------------------------------------------------------------
/packages/adapters/vanilla/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "caldaria-adapter-vanilla",
3 | "version": "0.0.24",
4 | "type": "module",
5 | "types": "dist/types/index.d.ts",
6 | "main": "dist/cjs/production/index.js",
7 | "module": "dist/esm/production/index.js",
8 | "exports": {
9 | ".": {
10 | "development": {
11 | "require": "./dist/cjs/development/index.cjs",
12 | "import": "./dist/esm/development/index.mjs"
13 | },
14 | "require": "./dist/cjs/production/index.cjs",
15 | "import": "./dist/esm/production/index.mjs",
16 | "types": "./dist/types/index.d.ts"
17 | }
18 | },
19 | "files": [
20 | "dist",
21 | "src"
22 | ],
23 | "engines": {
24 | "node": ">=10"
25 | },
26 | "license": "MIT",
27 | "keywords": [
28 | "pridepack"
29 | ],
30 | "devDependencies": {
31 | "@types/node": "^17.0.35",
32 | "eslint": "^8.21.0",
33 | "eslint-config-lxsmnsyc": "^0.4.8",
34 | "pridepack": "^2.1.2",
35 | "caldaria": "0.0.24",
36 | "tslib": "^2.4.0",
37 | "typescript": "^4.7.4"
38 | },
39 | "description": "Vanilla HTTP Adapter for Caldaria",
40 | "repository": {
41 | "url": "https://github.com/lxsmnsyc/caldaria.git",
42 | "type": "git"
43 | },
44 | "homepage": "https://github.com/lxsmnsyc/caldaria/tree/main/packages/adapters/vanilla",
45 | "bugs": {
46 | "url": "https://github.com/lxsmnsyc/caldaria/issues"
47 | },
48 | "publishConfig": {
49 | "access": "public"
50 | },
51 | "author": "Alexis Munsayac",
52 | "private": false,
53 | "scripts": {
54 | "prepublishOnly": "pridepack clean && pridepack build",
55 | "build": "pridepack build",
56 | "type-check": "pridepack check",
57 | "lint": "pridepack lint",
58 | "test": "pridepack test --passWithNoTests",
59 | "clean": "pridepack clean",
60 | "watch": "pridepack watch",
61 | "start": "pridepack start",
62 | "dev": "pridepack dev"
63 | },
64 | "peerDependencies": {
65 | "caldaria": "^0.0"
66 | },
67 | "dependencies": {
68 | "node-fetch": "^3.1.0"
69 | },
70 | "typesVersions": {
71 | "*": {
72 | "*": [
73 | "./dist/types/index.d.ts"
74 | ]
75 | }
76 | }
77 | }
78 |
--------------------------------------------------------------------------------
/packages/adapters/vercel/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "caldaria-adapter-vercel",
3 | "type": "module",
4 | "version": "0.0.24",
5 | "types": "dist/types/index.d.ts",
6 | "main": "dist/cjs/production/index.js",
7 | "module": "dist/esm/production/index.js",
8 | "exports": {
9 | ".": {
10 | "development": {
11 | "require": "./dist/cjs/development/index.cjs",
12 | "import": "./dist/esm/development/index.mjs"
13 | },
14 | "require": "./dist/cjs/production/index.cjs",
15 | "import": "./dist/esm/production/index.mjs",
16 | "types": "./dist/types/index.d.ts"
17 | }
18 | },
19 | "files": [
20 | "dist",
21 | "src"
22 | ],
23 | "engines": {
24 | "node": ">=10"
25 | },
26 | "license": "MIT",
27 | "keywords": [
28 | "pridepack"
29 | ],
30 | "devDependencies": {
31 | "@types/node": "^17.0.35",
32 | "eslint": "^8.21.0",
33 | "eslint-config-lxsmnsyc": "^0.4.8",
34 | "pridepack": "^2.1.2",
35 | "caldaria": "0.0.24",
36 | "tslib": "^2.4.0",
37 | "typescript": "^4.7.4"
38 | },
39 | "description": "Vercel Adapter for Caldaria",
40 | "repository": {
41 | "url": "https://github.com/lxsmnsyc/caldaria.git",
42 | "type": "git"
43 | },
44 | "homepage": "https://github.com/lxsmnsyc/caldaria/tree/main/packages/adapters/vercel",
45 | "bugs": {
46 | "url": "https://github.com/lxsmnsyc/caldaria/issues"
47 | },
48 | "publishConfig": {
49 | "access": "public"
50 | },
51 | "author": "Alexis Munsayac",
52 | "private": false,
53 | "scripts": {
54 | "prepublishOnly": "pridepack clean && pridepack build",
55 | "build": "pridepack build",
56 | "type-check": "pridepack check",
57 | "lint": "pridepack lint",
58 | "test": "pridepack test --passWithNoTests",
59 | "clean": "pridepack clean",
60 | "watch": "pridepack watch",
61 | "start": "pridepack start",
62 | "dev": "pridepack dev"
63 | },
64 | "peerDependencies": {
65 | "caldaria": "^0.0"
66 | },
67 | "dependencies": {
68 | "@vercel/node": "^1.12.1",
69 | "node-fetch": "^3.1.0"
70 | },
71 | "typesVersions": {
72 | "*": {
73 | "*": [
74 | "./dist/types/index.d.ts"
75 | ]
76 | }
77 | }
78 | }
79 |
--------------------------------------------------------------------------------
/packages/core/hybrid-router/src/prefetch.ts:
--------------------------------------------------------------------------------
1 | // https://github.com/GoogleChromeLabs/quicklink/blob/master/src/prefetch.mjs
2 | function hasPrefetch(): boolean {
3 | const link = document.createElement('link');
4 | return link.relList && link.relList.supports && link.relList.supports('prefetch');
5 | }
6 |
7 | function viaDOM(url: string): Promise {
8 | return new Promise((res, rej) => {
9 | if (!document.querySelector(`link[rel="prefetch"][href="${url}"][as="fetch"]`)) {
10 | const link = document.createElement('link');
11 | link.rel = 'prefetch';
12 | link.as = 'document';
13 | link.onload = () => res();
14 | link.onerror = rej;
15 | link.href = url;
16 |
17 | document.head.appendChild(link);
18 | } else {
19 | res();
20 | }
21 | });
22 | }
23 |
24 | function viaXHR(url: string): Promise {
25 | return new Promise((res, rej) => {
26 | const req = new XMLHttpRequest();
27 |
28 | req.withCredentials = true;
29 | req.open('GET', url, true);
30 |
31 | req.onload = () => {
32 | if (req.status === 200) {
33 | res();
34 | } else {
35 | rej();
36 | }
37 | };
38 |
39 | req.send();
40 | });
41 | }
42 |
43 | async function priority(url: string): Promise {
44 | // TODO: Investigate using preload for high-priority
45 | // fetches. May have to sniff file-extension to provide
46 | // valid 'as' values. In the future, we may be able to
47 | // use Priority Hints here.
48 | //
49 | // As of 2018, fetch() is high-priority in Chrome
50 | // and medium-priority in Safari.
51 | if ('fetch' in window) {
52 | await fetch(url, { credentials: 'include' });
53 | } else {
54 | await viaXHR(url);
55 | }
56 | }
57 |
58 | const links = new Set();
59 |
60 | export default async function prefetch(url: string, isPriority = false): Promise {
61 | if (!links.has(url)) {
62 | links.add(url);
63 | if (isPriority) {
64 | await priority(url);
65 | } else if (hasPrefetch()) {
66 | try {
67 | await viaDOM(url);
68 | } catch (error) {
69 | await viaXHR(url);
70 | }
71 | } else {
72 | await viaXHR(url);
73 | }
74 | }
75 | }
76 |
--------------------------------------------------------------------------------
/packages/caldaria/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | lerna-debug.log*
8 |
9 | # Diagnostic reports (https://nodejs.org/api/report.html)
10 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11 |
12 | # Runtime data
13 | pids
14 | *.pid
15 | *.seed
16 | *.pid.lock
17 |
18 | # Directory for instrumented libs generated by jscoverage/JSCover
19 | lib-cov
20 |
21 | # Coverage directory used by tools like istanbul
22 | coverage
23 | *.lcov
24 |
25 | # nyc test coverage
26 | .nyc_output
27 |
28 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29 | .grunt
30 |
31 | # Bower dependency directory (https://bower.io/)
32 | bower_components
33 |
34 | # node-waf configuration
35 | .lock-wscript
36 |
37 | # Compiled binary addons (https://nodejs.org/api/addons.html)
38 | build/Release
39 |
40 | # Dependency directories
41 | node_modules/
42 | jspm_packages/
43 |
44 | # TypeScript v1 declaration files
45 | typings/
46 |
47 | # TypeScript cache
48 | *.tsbuildinfo
49 |
50 | # Optional npm cache directory
51 | .npm
52 |
53 | # Optional eslint cache
54 | .eslintcache
55 |
56 | # Microbundle cache
57 | .rpt2_cache/
58 | .rts2_cache_cjs/
59 | .rts2_cache_es/
60 | .rts2_cache_umd/
61 |
62 | # Optional REPL history
63 | .node_repl_history
64 |
65 | # Output of 'npm pack'
66 | *.tgz
67 |
68 | # Yarn Integrity file
69 | .yarn-integrity
70 |
71 | # dotenv environment variables file
72 | .env
73 | .env.production
74 | .env.development
75 |
76 | # parcel-bundler cache (https://parceljs.org/)
77 | .cache
78 |
79 | # Next.js build output
80 | .next
81 |
82 | # Nuxt.js build / generate output
83 | .nuxt
84 | dist
85 |
86 | # Gatsby files
87 | .cache/
88 | # Comment in the public line in if your project uses Gatsby and *not* Next.js
89 | # https://nextjs.org/blog/next-9-1#public-directory-support
90 | # public
91 |
92 | # vuepress build output
93 | .vuepress/dist
94 |
95 | # Serverless directories
96 | .serverless/
97 |
98 | # FuseBox cache
99 | .fusebox/
100 |
101 | # DynamoDB Local files
102 | .dynamodb/
103 |
104 | # TernJS port file
105 | .tern-port
106 |
107 | .npmrc
108 |
--------------------------------------------------------------------------------
/packages/core/server/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "caldaria-server",
3 | "version": "0.0.24",
4 | "type": "module",
5 | "files": [
6 | "dist",
7 | "src"
8 | ],
9 | "engines": {
10 | "node": ">=10"
11 | },
12 | "license": "MIT",
13 | "keywords": [
14 | "pridepack"
15 | ],
16 | "devDependencies": {
17 | "@types/node": "^18.6.3",
18 | "eslint": "^8.21.0",
19 | "eslint-config-lxsmnsyc": "^0.4.8",
20 | "pridepack": "2.3.0",
21 | "solid-js": "^1.5.5",
22 | "tslib": "^2.4.0",
23 | "typescript": "^4.7.4",
24 | "vitest": "^0.21.0"
25 | },
26 | "peerDependencies": {
27 | "solid-js": "^1.5"
28 | },
29 | "dependencies": {
30 | "@types/mime-types": "^2.1.1",
31 | "mime-types": "^2.1.34",
32 | "caldaria-render": "0.0.24",
33 | "caldaria-router": "0.0.24",
34 | "caldaria-shared": "0.0.24"
35 | },
36 | "scripts": {
37 | "prepublishOnly": "pridepack clean && pridepack build",
38 | "build": "pridepack build",
39 | "type-check": "pridepack check",
40 | "lint": "pridepack lint",
41 | "clean": "pridepack clean",
42 | "watch": "pridepack watch",
43 | "start": "pridepack start",
44 | "dev": "pridepack dev",
45 | "test": "vitest"
46 | },
47 | "description": "",
48 | "repository": {
49 | "url": "https://github.com/lxsmnsyc/caldaria.git",
50 | "type": "git"
51 | },
52 | "homepage": "https://github.com/lxsmnsyc/caldaria/tree/main/packages/core/server",
53 | "bugs": {
54 | "url": "https://github.com/lxsmnsyc/caldaria/issues"
55 | },
56 | "publishConfig": {
57 | "access": "public"
58 | },
59 | "author": "Alexis Munsayac",
60 | "private": false,
61 | "exports": {
62 | ".": {
63 | "development": {
64 | "require": "./dist/cjs/development/index.cjs",
65 | "import": "./dist/esm/development/index.mjs"
66 | },
67 | "require": "./dist/cjs/production/index.cjs",
68 | "import": "./dist/esm/production/index.mjs",
69 | "types": "./dist/types/index.d.ts"
70 | }
71 | },
72 | "typesVersions": {
73 | "*": {}
74 | },
75 | "types": "./dist/types/index.d.ts",
76 | "main": "./dist/cjs/production/index.cjs",
77 | "module": "./dist/esm/production/index.mjs"
78 | }
79 |
--------------------------------------------------------------------------------
/packages/adapters/http/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | lerna-debug.log*
8 |
9 | # Diagnostic reports (https://nodejs.org/api/report.html)
10 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11 |
12 | # Runtime data
13 | pids
14 | *.pid
15 | *.seed
16 | *.pid.lock
17 |
18 | # Directory for instrumented libs generated by jscoverage/JSCover
19 | lib-cov
20 |
21 | # Coverage directory used by tools like istanbul
22 | coverage
23 | *.lcov
24 |
25 | # nyc test coverage
26 | .nyc_output
27 |
28 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29 | .grunt
30 |
31 | # Bower dependency directory (https://bower.io/)
32 | bower_components
33 |
34 | # node-waf configuration
35 | .lock-wscript
36 |
37 | # Compiled binary addons (https://nodejs.org/api/addons.html)
38 | build/Release
39 |
40 | # Dependency directories
41 | node_modules/
42 | jspm_packages/
43 |
44 | # TypeScript v1 declaration files
45 | typings/
46 |
47 | # TypeScript cache
48 | *.tsbuildinfo
49 |
50 | # Optional npm cache directory
51 | .npm
52 |
53 | # Optional eslint cache
54 | .eslintcache
55 |
56 | # Microbundle cache
57 | .rpt2_cache/
58 | .rts2_cache_cjs/
59 | .rts2_cache_es/
60 | .rts2_cache_umd/
61 |
62 | # Optional REPL history
63 | .node_repl_history
64 |
65 | # Output of 'npm pack'
66 | *.tgz
67 |
68 | # Yarn Integrity file
69 | .yarn-integrity
70 |
71 | # dotenv environment variables file
72 | .env
73 | .env.production
74 | .env.development
75 |
76 | # parcel-bundler cache (https://parceljs.org/)
77 | .cache
78 |
79 | # Next.js build output
80 | .next
81 |
82 | # Nuxt.js build / generate output
83 | .nuxt
84 | dist
85 |
86 | # Gatsby files
87 | .cache/
88 | # Comment in the public line in if your project uses Gatsby and *not* Next.js
89 | # https://nextjs.org/blog/next-9-1#public-directory-support
90 | # public
91 |
92 | # vuepress build output
93 | .vuepress/dist
94 |
95 | # Serverless directories
96 | .serverless/
97 |
98 | # FuseBox cache
99 | .fusebox/
100 |
101 | # DynamoDB Local files
102 | .dynamodb/
103 |
104 | # TernJS port file
105 | .tern-port
106 |
107 | .npmrc
108 |
--------------------------------------------------------------------------------
/packages/core/build/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | lerna-debug.log*
8 |
9 | # Diagnostic reports (https://nodejs.org/api/report.html)
10 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11 |
12 | # Runtime data
13 | pids
14 | *.pid
15 | *.seed
16 | *.pid.lock
17 |
18 | # Directory for instrumented libs generated by jscoverage/JSCover
19 | lib-cov
20 |
21 | # Coverage directory used by tools like istanbul
22 | coverage
23 | *.lcov
24 |
25 | # nyc test coverage
26 | .nyc_output
27 |
28 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29 | .grunt
30 |
31 | # Bower dependency directory (https://bower.io/)
32 | bower_components
33 |
34 | # node-waf configuration
35 | .lock-wscript
36 |
37 | # Compiled binary addons (https://nodejs.org/api/addons.html)
38 | build/Release
39 |
40 | # Dependency directories
41 | node_modules/
42 | jspm_packages/
43 |
44 | # TypeScript v1 declaration files
45 | typings/
46 |
47 | # TypeScript cache
48 | *.tsbuildinfo
49 |
50 | # Optional npm cache directory
51 | .npm
52 |
53 | # Optional eslint cache
54 | .eslintcache
55 |
56 | # Microbundle cache
57 | .rpt2_cache/
58 | .rts2_cache_cjs/
59 | .rts2_cache_es/
60 | .rts2_cache_umd/
61 |
62 | # Optional REPL history
63 | .node_repl_history
64 |
65 | # Output of 'npm pack'
66 | *.tgz
67 |
68 | # Yarn Integrity file
69 | .yarn-integrity
70 |
71 | # dotenv environment variables file
72 | .env
73 | .env.production
74 | .env.development
75 |
76 | # parcel-bundler cache (https://parceljs.org/)
77 | .cache
78 |
79 | # Next.js build output
80 | .next
81 |
82 | # Nuxt.js build / generate output
83 | .nuxt
84 | dist
85 |
86 | # Gatsby files
87 | .cache/
88 | # Comment in the public line in if your project uses Gatsby and *not* Next.js
89 | # https://nextjs.org/blog/next-9-1#public-directory-support
90 | # public
91 |
92 | # vuepress build output
93 | .vuepress/dist
94 |
95 | # Serverless directories
96 | .serverless/
97 |
98 | # FuseBox cache
99 | .fusebox/
100 |
101 | # DynamoDB Local files
102 | .dynamodb/
103 |
104 | # TernJS port file
105 | .tern-port
106 |
107 | .npmrc
108 |
--------------------------------------------------------------------------------
/packages/core/islands/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | lerna-debug.log*
8 |
9 | # Diagnostic reports (https://nodejs.org/api/report.html)
10 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11 |
12 | # Runtime data
13 | pids
14 | *.pid
15 | *.seed
16 | *.pid.lock
17 |
18 | # Directory for instrumented libs generated by jscoverage/JSCover
19 | lib-cov
20 |
21 | # Coverage directory used by tools like istanbul
22 | coverage
23 | *.lcov
24 |
25 | # nyc test coverage
26 | .nyc_output
27 |
28 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29 | .grunt
30 |
31 | # Bower dependency directory (https://bower.io/)
32 | bower_components
33 |
34 | # node-waf configuration
35 | .lock-wscript
36 |
37 | # Compiled binary addons (https://nodejs.org/api/addons.html)
38 | build/Release
39 |
40 | # Dependency directories
41 | node_modules/
42 | jspm_packages/
43 |
44 | # TypeScript v1 declaration files
45 | typings/
46 |
47 | # TypeScript cache
48 | *.tsbuildinfo
49 |
50 | # Optional npm cache directory
51 | .npm
52 |
53 | # Optional eslint cache
54 | .eslintcache
55 |
56 | # Microbundle cache
57 | .rpt2_cache/
58 | .rts2_cache_cjs/
59 | .rts2_cache_es/
60 | .rts2_cache_umd/
61 |
62 | # Optional REPL history
63 | .node_repl_history
64 |
65 | # Output of 'npm pack'
66 | *.tgz
67 |
68 | # Yarn Integrity file
69 | .yarn-integrity
70 |
71 | # dotenv environment variables file
72 | .env
73 | .env.production
74 | .env.development
75 |
76 | # parcel-bundler cache (https://parceljs.org/)
77 | .cache
78 |
79 | # Next.js build output
80 | .next
81 |
82 | # Nuxt.js build / generate output
83 | .nuxt
84 | dist
85 |
86 | # Gatsby files
87 | .cache/
88 | # Comment in the public line in if your project uses Gatsby and *not* Next.js
89 | # https://nextjs.org/blog/next-9-1#public-directory-support
90 | # public
91 |
92 | # vuepress build output
93 | .vuepress/dist
94 |
95 | # Serverless directories
96 | .serverless/
97 |
98 | # FuseBox cache
99 | .fusebox/
100 |
101 | # DynamoDB Local files
102 | .dynamodb/
103 |
104 | # TernJS port file
105 | .tern-port
106 |
107 | .npmrc
108 |
--------------------------------------------------------------------------------
/packages/core/meta/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | lerna-debug.log*
8 |
9 | # Diagnostic reports (https://nodejs.org/api/report.html)
10 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11 |
12 | # Runtime data
13 | pids
14 | *.pid
15 | *.seed
16 | *.pid.lock
17 |
18 | # Directory for instrumented libs generated by jscoverage/JSCover
19 | lib-cov
20 |
21 | # Coverage directory used by tools like istanbul
22 | coverage
23 | *.lcov
24 |
25 | # nyc test coverage
26 | .nyc_output
27 |
28 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29 | .grunt
30 |
31 | # Bower dependency directory (https://bower.io/)
32 | bower_components
33 |
34 | # node-waf configuration
35 | .lock-wscript
36 |
37 | # Compiled binary addons (https://nodejs.org/api/addons.html)
38 | build/Release
39 |
40 | # Dependency directories
41 | node_modules/
42 | jspm_packages/
43 |
44 | # TypeScript v1 declaration files
45 | typings/
46 |
47 | # TypeScript cache
48 | *.tsbuildinfo
49 |
50 | # Optional npm cache directory
51 | .npm
52 |
53 | # Optional eslint cache
54 | .eslintcache
55 |
56 | # Microbundle cache
57 | .rpt2_cache/
58 | .rts2_cache_cjs/
59 | .rts2_cache_es/
60 | .rts2_cache_umd/
61 |
62 | # Optional REPL history
63 | .node_repl_history
64 |
65 | # Output of 'npm pack'
66 | *.tgz
67 |
68 | # Yarn Integrity file
69 | .yarn-integrity
70 |
71 | # dotenv environment variables file
72 | .env
73 | .env.production
74 | .env.development
75 |
76 | # parcel-bundler cache (https://parceljs.org/)
77 | .cache
78 |
79 | # Next.js build output
80 | .next
81 |
82 | # Nuxt.js build / generate output
83 | .nuxt
84 | dist
85 |
86 | # Gatsby files
87 | .cache/
88 | # Comment in the public line in if your project uses Gatsby and *not* Next.js
89 | # https://nextjs.org/blog/next-9-1#public-directory-support
90 | # public
91 |
92 | # vuepress build output
93 | .vuepress/dist
94 |
95 | # Serverless directories
96 | .serverless/
97 |
98 | # FuseBox cache
99 | .fusebox/
100 |
101 | # DynamoDB Local files
102 | .dynamodb/
103 |
104 | # TernJS port file
105 | .tern-port
106 |
107 | .npmrc
108 |
--------------------------------------------------------------------------------
/packages/core/render/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | lerna-debug.log*
8 |
9 | # Diagnostic reports (https://nodejs.org/api/report.html)
10 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11 |
12 | # Runtime data
13 | pids
14 | *.pid
15 | *.seed
16 | *.pid.lock
17 |
18 | # Directory for instrumented libs generated by jscoverage/JSCover
19 | lib-cov
20 |
21 | # Coverage directory used by tools like istanbul
22 | coverage
23 | *.lcov
24 |
25 | # nyc test coverage
26 | .nyc_output
27 |
28 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29 | .grunt
30 |
31 | # Bower dependency directory (https://bower.io/)
32 | bower_components
33 |
34 | # node-waf configuration
35 | .lock-wscript
36 |
37 | # Compiled binary addons (https://nodejs.org/api/addons.html)
38 | build/Release
39 |
40 | # Dependency directories
41 | node_modules/
42 | jspm_packages/
43 |
44 | # TypeScript v1 declaration files
45 | typings/
46 |
47 | # TypeScript cache
48 | *.tsbuildinfo
49 |
50 | # Optional npm cache directory
51 | .npm
52 |
53 | # Optional eslint cache
54 | .eslintcache
55 |
56 | # Microbundle cache
57 | .rpt2_cache/
58 | .rts2_cache_cjs/
59 | .rts2_cache_es/
60 | .rts2_cache_umd/
61 |
62 | # Optional REPL history
63 | .node_repl_history
64 |
65 | # Output of 'npm pack'
66 | *.tgz
67 |
68 | # Yarn Integrity file
69 | .yarn-integrity
70 |
71 | # dotenv environment variables file
72 | .env
73 | .env.production
74 | .env.development
75 |
76 | # parcel-bundler cache (https://parceljs.org/)
77 | .cache
78 |
79 | # Next.js build output
80 | .next
81 |
82 | # Nuxt.js build / generate output
83 | .nuxt
84 | dist
85 |
86 | # Gatsby files
87 | .cache/
88 | # Comment in the public line in if your project uses Gatsby and *not* Next.js
89 | # https://nextjs.org/blog/next-9-1#public-directory-support
90 | # public
91 |
92 | # vuepress build output
93 | .vuepress/dist
94 |
95 | # Serverless directories
96 | .serverless/
97 |
98 | # FuseBox cache
99 | .fusebox/
100 |
101 | # DynamoDB Local files
102 | .dynamodb/
103 |
104 | # TernJS port file
105 | .tern-port
106 |
107 | .npmrc
108 |
--------------------------------------------------------------------------------
/packages/core/root/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | lerna-debug.log*
8 |
9 | # Diagnostic reports (https://nodejs.org/api/report.html)
10 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11 |
12 | # Runtime data
13 | pids
14 | *.pid
15 | *.seed
16 | *.pid.lock
17 |
18 | # Directory for instrumented libs generated by jscoverage/JSCover
19 | lib-cov
20 |
21 | # Coverage directory used by tools like istanbul
22 | coverage
23 | *.lcov
24 |
25 | # nyc test coverage
26 | .nyc_output
27 |
28 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29 | .grunt
30 |
31 | # Bower dependency directory (https://bower.io/)
32 | bower_components
33 |
34 | # node-waf configuration
35 | .lock-wscript
36 |
37 | # Compiled binary addons (https://nodejs.org/api/addons.html)
38 | build/Release
39 |
40 | # Dependency directories
41 | node_modules/
42 | jspm_packages/
43 |
44 | # TypeScript v1 declaration files
45 | typings/
46 |
47 | # TypeScript cache
48 | *.tsbuildinfo
49 |
50 | # Optional npm cache directory
51 | .npm
52 |
53 | # Optional eslint cache
54 | .eslintcache
55 |
56 | # Microbundle cache
57 | .rpt2_cache/
58 | .rts2_cache_cjs/
59 | .rts2_cache_es/
60 | .rts2_cache_umd/
61 |
62 | # Optional REPL history
63 | .node_repl_history
64 |
65 | # Output of 'npm pack'
66 | *.tgz
67 |
68 | # Yarn Integrity file
69 | .yarn-integrity
70 |
71 | # dotenv environment variables file
72 | .env
73 | .env.production
74 | .env.development
75 |
76 | # parcel-bundler cache (https://parceljs.org/)
77 | .cache
78 |
79 | # Next.js build output
80 | .next
81 |
82 | # Nuxt.js build / generate output
83 | .nuxt
84 | dist
85 |
86 | # Gatsby files
87 | .cache/
88 | # Comment in the public line in if your project uses Gatsby and *not* Next.js
89 | # https://nextjs.org/blog/next-9-1#public-directory-support
90 | # public
91 |
92 | # vuepress build output
93 | .vuepress/dist
94 |
95 | # Serverless directories
96 | .serverless/
97 |
98 | # FuseBox cache
99 | .fusebox/
100 |
101 | # DynamoDB Local files
102 | .dynamodb/
103 |
104 | # TernJS port file
105 | .tern-port
106 |
107 | .npmrc
108 |
--------------------------------------------------------------------------------
/packages/core/router/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | lerna-debug.log*
8 |
9 | # Diagnostic reports (https://nodejs.org/api/report.html)
10 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11 |
12 | # Runtime data
13 | pids
14 | *.pid
15 | *.seed
16 | *.pid.lock
17 |
18 | # Directory for instrumented libs generated by jscoverage/JSCover
19 | lib-cov
20 |
21 | # Coverage directory used by tools like istanbul
22 | coverage
23 | *.lcov
24 |
25 | # nyc test coverage
26 | .nyc_output
27 |
28 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29 | .grunt
30 |
31 | # Bower dependency directory (https://bower.io/)
32 | bower_components
33 |
34 | # node-waf configuration
35 | .lock-wscript
36 |
37 | # Compiled binary addons (https://nodejs.org/api/addons.html)
38 | build/Release
39 |
40 | # Dependency directories
41 | node_modules/
42 | jspm_packages/
43 |
44 | # TypeScript v1 declaration files
45 | typings/
46 |
47 | # TypeScript cache
48 | *.tsbuildinfo
49 |
50 | # Optional npm cache directory
51 | .npm
52 |
53 | # Optional eslint cache
54 | .eslintcache
55 |
56 | # Microbundle cache
57 | .rpt2_cache/
58 | .rts2_cache_cjs/
59 | .rts2_cache_es/
60 | .rts2_cache_umd/
61 |
62 | # Optional REPL history
63 | .node_repl_history
64 |
65 | # Output of 'npm pack'
66 | *.tgz
67 |
68 | # Yarn Integrity file
69 | .yarn-integrity
70 |
71 | # dotenv environment variables file
72 | .env
73 | .env.production
74 | .env.development
75 |
76 | # parcel-bundler cache (https://parceljs.org/)
77 | .cache
78 |
79 | # Next.js build output
80 | .next
81 |
82 | # Nuxt.js build / generate output
83 | .nuxt
84 | dist
85 |
86 | # Gatsby files
87 | .cache/
88 | # Comment in the public line in if your project uses Gatsby and *not* Next.js
89 | # https://nextjs.org/blog/next-9-1#public-directory-support
90 | # public
91 |
92 | # vuepress build output
93 | .vuepress/dist
94 |
95 | # Serverless directories
96 | .serverless/
97 |
98 | # FuseBox cache
99 | .fusebox/
100 |
101 | # DynamoDB Local files
102 | .dynamodb/
103 |
104 | # TernJS port file
105 | .tern-port
106 |
107 | .npmrc
108 |
--------------------------------------------------------------------------------
/packages/core/server/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | lerna-debug.log*
8 |
9 | # Diagnostic reports (https://nodejs.org/api/report.html)
10 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11 |
12 | # Runtime data
13 | pids
14 | *.pid
15 | *.seed
16 | *.pid.lock
17 |
18 | # Directory for instrumented libs generated by jscoverage/JSCover
19 | lib-cov
20 |
21 | # Coverage directory used by tools like istanbul
22 | coverage
23 | *.lcov
24 |
25 | # nyc test coverage
26 | .nyc_output
27 |
28 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29 | .grunt
30 |
31 | # Bower dependency directory (https://bower.io/)
32 | bower_components
33 |
34 | # node-waf configuration
35 | .lock-wscript
36 |
37 | # Compiled binary addons (https://nodejs.org/api/addons.html)
38 | build/Release
39 |
40 | # Dependency directories
41 | node_modules/
42 | jspm_packages/
43 |
44 | # TypeScript v1 declaration files
45 | typings/
46 |
47 | # TypeScript cache
48 | *.tsbuildinfo
49 |
50 | # Optional npm cache directory
51 | .npm
52 |
53 | # Optional eslint cache
54 | .eslintcache
55 |
56 | # Microbundle cache
57 | .rpt2_cache/
58 | .rts2_cache_cjs/
59 | .rts2_cache_es/
60 | .rts2_cache_umd/
61 |
62 | # Optional REPL history
63 | .node_repl_history
64 |
65 | # Output of 'npm pack'
66 | *.tgz
67 |
68 | # Yarn Integrity file
69 | .yarn-integrity
70 |
71 | # dotenv environment variables file
72 | .env
73 | .env.production
74 | .env.development
75 |
76 | # parcel-bundler cache (https://parceljs.org/)
77 | .cache
78 |
79 | # Next.js build output
80 | .next
81 |
82 | # Nuxt.js build / generate output
83 | .nuxt
84 | dist
85 |
86 | # Gatsby files
87 | .cache/
88 | # Comment in the public line in if your project uses Gatsby and *not* Next.js
89 | # https://nextjs.org/blog/next-9-1#public-directory-support
90 | # public
91 |
92 | # vuepress build output
93 | .vuepress/dist
94 |
95 | # Serverless directories
96 | .serverless/
97 |
98 | # FuseBox cache
99 | .fusebox/
100 |
101 | # DynamoDB Local files
102 | .dynamodb/
103 |
104 | # TernJS port file
105 | .tern-port
106 |
107 | .npmrc
108 |
--------------------------------------------------------------------------------