Skip to content
Draft
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
855 changes: 11 additions & 844 deletions files.js

Large diffs are not rendered by default.

92 changes: 92 additions & 0 deletions files/common.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
export default {
".gitignore": `# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*`,

"README.md": (projectName) => `# ${projectName}\n###### Boilerplate generated using [npx create-deadcode-app](https://github.com/DeadCodeGames/create-deadcode-app)`,

"buildndeploy.yml": `name: Deploy to GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:

# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "14"
Comment on lines +51 to +53
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Update Node.js version in GitHub Actions workflow.

The workflow is using Node.js 14 which has reached end-of-life. Update to a supported LTS version.

       uses: actions/setup-node@v4
       with:
-          node-version: "14"
+          node-version: "20"
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
uses: actions/setup-node@v4
with:
node-version: "14"
uses: actions/setup-node@v4
with:
node-version: "20"


- name: Install dependencies
run: npm i

- name: Build project
run: CI=false && npm run build

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./build

# Deployment job
deploy:
environment:
name: github-pages
url: \${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4`,

"index.html": (projectName) => `<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Web site created using create-deadcode-app" />
<title>${projectName}</title>
</head>
<body>
<noscript>This application requires javaScript to function.</noscript>
<div id="root"></div>
</body>
</html>`,
}
70 changes: 70 additions & 0 deletions files/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
export default {
"tsconfig.json": `{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"allowImportingTsExtensions": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "react-jsx",
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
}
},
"include": [
"src/**/*.ts",
"src/**/*.tsx"
]
}`,

"config-overrides.js": `const path = require('path');

module.exports = function override(config) {
config.resolve.alias = {
...config.resolve.alias,
'@': path.resolve(__dirname, 'src'),
};

return config;
};`,

"tailwind.config.js": (usingTS) => `/** @type {import('tailwindcss').Config} */
const defaultTheme = require("tailwindcss/defaultTheme");
module.exports = {
darkMode: ["class"],
content: ["src/**/*.{${usingTS ? "ts,tsx" : "js,jsx"}}"],
theme: {
extend: {
fontFamily: {
"consolas": ["Consolas", "Courier New", 'Courier', 'monospace'],
"uniSansCAPS": ["Uni Sans CAPS", ...defaultTheme.fontFamily.sans],
"montserrat": ["Montserrat", "Noto Sans JP", ...defaultTheme.fontFamily.sans],
},
keyframes: {
"heartPulse": {
'0%, 25%, 60%': { transform: 'scale(1)' },
'5%, 35%': { transform: 'scale(1.25)' },
}
},
animation: {
'heart-pulse': 'heartPulse 0.9375s linear infinite',
},
},
},
}`,


}
33 changes: 33 additions & 0 deletions files/css.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
export default {
"input.css": `@tailwind base;
@tailwind components;
@tailwind utilities;
@import url('./fonts/fonts.css');
@import url("https://cdn.jsdelivr.net/gh/DeadCodeGames/DeadCodeGames.github.io@main/fonts/Uni%20Sans/stylesheet.css");

html, body {@apply m-0 bg-black text-white;} a {all: unset;@apply cursor-pointer underline m-[2.5px];} div.checklist pre.code { @apply border w-fit p-2 rounded-lg border-solid border-[#1F1F1F] bg-[#0F0F0F] my-4; }`,

"index.css": `html, body {
margin: 0px;
background: black;
color: white;
}

div#root>div#content {
display: grid;
grid-template-columns: 400px 350px auto;
grid-template-rows: 112.5px 440px auto;
padding: 33.3px 50px;
gap: 16.7px 25px;
}

div#content>div#title {
font-family: 'Consolas', 'Courier New', Courier, monospace;
font-size: 48px;
grid-row: 1;
grid-column: 1 / 3;
display: flex;
flex-direction: column;
justify-content: space-evenly;
}`,
}
Loading