Skip to content

Commit 17cf94f

Browse files
authored
Create Taskfile generator website (#3)
* Add NextJS installation * Add components for generation * Show taskfile base in generator result * Fix taskfile default task execution * Remove nextjs defaults and restore package * Fix max window height * Generate taskfile header * Add project section * Add page title * Fix editor config
1 parent 08e3628 commit 17cf94f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+6147
-51
lines changed

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,14 @@ insert_final_newline = true
1010
indent_style = tab
1111
indent_size = 4
1212
trim_trailing_whitespace = true
13+
tab_width = unset
14+
15+
# Yaml should have 2 spaces due to its weird array structure
16+
[*.{yml,yaml}]
17+
indent_style = space
18+
indent_size = 2
19+
20+
# Makes lists prettier in markdown files
21+
[*.md]
22+
indent_style = space
23+
indent_size = 2

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["next/core-web-vitals", "next/typescript"]
3+
}

.gitignore

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,40 @@
1-
node_modules/
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
12+
13+
# testing
14+
/coverage
15+
16+
# next.js
17+
/.next/
18+
/out/
19+
20+
# production
21+
/build
22+
23+
# misc
24+
.DS_Store
25+
*.pem
26+
27+
# debug
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*
31+
32+
# env files (can opt-in for commiting if needed)
33+
.env*
34+
35+
# vercel
36+
.vercel
37+
38+
# typescript
39+
*.tsbuildinfo
40+
next-env.d.ts

.husky/pre-commit

Lines changed: 0 additions & 4 deletions
This file was deleted.

.prettierrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"semi": true,
44
"singleQuote": true,
55
"useTabs": true,
6-
"printWidth": 100,
6+
"printWidth": 120,
77
"proseWrap": "always"
88
}

Taskfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ function task:prettify { ## Prettify all files
5151
echo "Done."
5252
}
5353

54+
# =========================================================
55+
## Development
56+
# =========================================================
57+
58+
function task:start { ## Start development mode
59+
npm run dev
60+
}
61+
5462
# =========================================================
5563
## Automation
5664
# =========================================================

next.config.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import type { NextConfig } from "next";
2+
3+
const nextConfig: NextConfig = {
4+
output: 'export',
5+
webpack: (config) => {
6+
config.module.rules.push({
7+
test: /\.txt$/i,
8+
use: 'raw-loader',
9+
});
10+
11+
return config;
12+
}
13+
};
14+
15+
export default nextConfig;

0 commit comments

Comments
 (0)