fix(app): build script
Some checks failed
Deploy to GitHub Pages / build_site (push) Failing after 3m11s
Some checks failed
Deploy to GitHub Pages / build_site (push) Failing after 3m11s
This commit is contained in:
parent
db54141b41
commit
2e726a65f8
@ -8,7 +8,7 @@ export const entries: EntryGenerator = async () => {
|
|||||||
const users = await registry.getUsers();
|
const users = await registry.getUsers();
|
||||||
return users.map(user => {
|
return users.map(user => {
|
||||||
return user.collections.map(collection => {
|
return user.collections.map(collection => {
|
||||||
return { user: user.id, collection: collection.id }
|
return { user: user.id, collection: collection.id.split("/")[1] }
|
||||||
})
|
})
|
||||||
}).flat(2);
|
}).flat(2);
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@ export const entries: EntryGenerator = async () => {
|
|||||||
return users.map(user => {
|
return users.map(user => {
|
||||||
return user.collections.map(collection => {
|
return user.collections.map(collection => {
|
||||||
return collection.nodes.map(node => {
|
return collection.nodes.map(node => {
|
||||||
return { user: user.id, collection: collection.id, node: node.id }
|
return { user: user.id, collection: collection.id.split("/")[1], node: node.id.split("/")[2] }
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
}).flat(2);
|
}).flat(2);
|
||||||
|
@ -9,7 +9,7 @@ export const entries: EntryGenerator = async () => {
|
|||||||
return users.map(user => {
|
return users.map(user => {
|
||||||
return user.collections.map(collection => {
|
return user.collections.map(collection => {
|
||||||
return collection.nodes.map(node => {
|
return collection.nodes.map(node => {
|
||||||
return { user: user.id, collection: collection.id, node: node.id }
|
return { user: user.id, collection: collection.id.split("/")[1], node: node.id.split("/")[2] }
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
}).flat(2);
|
}).flat(2);
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
import {
|
import {
|
||||||
decodeFloat,
|
decodeFloat,
|
||||||
encodeFloat,
|
encodeFloat,
|
||||||
decode,
|
decodeNestedArray,
|
||||||
encode,
|
encodeNestedArray,
|
||||||
concat_encoded,
|
concatEncodedArrays,
|
||||||
} from "@nodes/utils";
|
} from "@nodes/utils";
|
||||||
|
|
||||||
console.clear();
|
console.clear();
|
||||||
@ -28,14 +28,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (false) {
|
if (false) {
|
||||||
const input_a = encode([1, 2, 3]);
|
const input_a = encodeNestedArray([1, 2, 3]);
|
||||||
const input_b = 2;
|
const input_b = 2;
|
||||||
const input_c = 89;
|
const input_c = 89;
|
||||||
const input_d = encode([4, 5, 6]);
|
const input_d = encodeNestedArray([4, 5, 6]);
|
||||||
|
|
||||||
const output = concat_encoded([input_a, input_b, input_c, input_d]);
|
const output = concatNestedArrays([input_a, input_b, input_c, input_d]);
|
||||||
|
|
||||||
const decoded = decode(output);
|
const decoded = decodeNestedArray(output);
|
||||||
console.log("CONCAT", [input_a, input_b, input_c, input_d]);
|
console.log("CONCAT", [input_a, input_b, input_c, input_d]);
|
||||||
console.log(output);
|
console.log(output);
|
||||||
console.log(decoded);
|
console.log(decoded);
|
||||||
@ -84,14 +84,14 @@
|
|||||||
console.log("INPUT");
|
console.log("INPUT");
|
||||||
console.log(input);
|
console.log(input);
|
||||||
|
|
||||||
let encoded = encode(input);
|
let encoded = encodeNestedArray(input);
|
||||||
// encoded = [];
|
// encoded = [];
|
||||||
console.log("ENCODED");
|
console.log("ENCODED");
|
||||||
console.log(encoded);
|
console.log(encoded);
|
||||||
|
|
||||||
encoded = [0, 2, 1, 0, 4, 4, 2, 4, 1, 2, 2, 0, 3, 2, 3, 1, 1, 1, 1];
|
encoded = [0, 2, 1, 0, 4, 4, 2, 4, 1, 2, 2, 0, 3, 2, 3, 1, 1, 1, 1];
|
||||||
|
|
||||||
const decoded = decode(encoded);
|
const decoded = decodeNestedArray(encoded);
|
||||||
console.log("DECODED");
|
console.log("DECODED");
|
||||||
console.log(decoded);
|
console.log(decoded);
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "pnpm build:nodes && pnpm build:app",
|
"build": "pnpm build:nodes && pnpm build:app",
|
||||||
"build:app": "pnpm -r --filter 'app' build",
|
"build:app": "pnpm -r --filter 'ui' build && pnpm -r --filter 'app' build",
|
||||||
"build:nodes": "pnpm -r --filter './nodes/**' build",
|
"build:nodes": "pnpm -r --filter './nodes/**' build",
|
||||||
"dev:nodes": "pnpm -r --parallel --filter './nodes/**' dev",
|
"dev:nodes": "pnpm -r --parallel --filter './nodes/**' dev",
|
||||||
"dev": "pnpm -r --filter 'app' --filter './packages/node-registry' dev"
|
"dev": "pnpm -r --filter 'app' --filter './packages/node-registry' dev"
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
},
|
},
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"types": "./src/lib/index.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"svelte": "./src/lib/index.ts"
|
"svelte": "./dist/index.js"
|
||||||
},
|
},
|
||||||
"./app.css": "./src/lib/app.css"
|
"./app.css": "./dist/app.css"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
|
Loading…
Reference in New Issue
Block a user