Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
143 changes: 132 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
"build": "tsc -b && vite build",
"preview": "vite preview",
"test": "vitest",
"cp-gp": "mkdir -p ./public && cp -r ./graypaper-archive/dist/* ./public/",
"cp-gp": "node ./scripts/cp-gp.js",
"prebuild": "git submodule update --init && npm run cp-gp",
"predev": "npm run cp-gp"
"predev": "npm run cp-gp",
"serve": "vite preview"
},
"dependencies": {
"@fluffylabs/migrate-selection": "^1.0.0",
Expand All @@ -36,6 +37,7 @@
"@types/react-dom": "^18.3.0",
"@types/react-modal": "^3.16.3",
"@vitejs/plugin-react": "^4.3.1",
"shelljs": "^0.8.5",
"typescript": "^5.2.2",
"vite": "^5.3.4",
"vite-plugin-prefetch-chunk": "^0.1.2",
Expand Down
10 changes: 10 additions & 0 deletions scripts/cp-gp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import shell from "shelljs";

// Throw an error if any command fails
shell.config.fatal = true;

// Creating the public directory if it doesn't exist
shell.mkdir("-p", "public");

// Copying files from graypaper-archive/dist to public
shell.cp("-r", "graypaper-archive/dist/*", "public");