Skip to content

Commit 5f3167c

Browse files
authored
Merge pull request #83 from akd-io/release/0.1.1
Release 0.1.1
2 parents 1ce9985 + 2aefaba commit 5f3167c

File tree

79 files changed

+867
-934
lines changed

Some content is hidden

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

79 files changed

+867
-934
lines changed

.eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"no-process-exit": "off",
1313
"unicorn/no-process-exit": "off",
1414
"no-warning-comments": "off",
15+
"unicorn/filename-case": "off",
1516
"@typescript-eslint/no-use-before-define": "off",
1617
"@typescript-eslint/no-unused-vars": "warn"
1718
}

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ jobs:
3434
run: yarn lint
3535

3636
- name: "Test"
37-
run: yarn test
37+
run: yarn test-only

.prettierignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
*-debug.log
2+
*-error.log
3+
/.nyc_output
4+
/dist
5+
/lib
6+
/package-lock.json
7+
/tmp
8+
node_modules
9+
/prod-assets

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ npx create-next-stack
2828
Then, pick a project name, and your preferred technologies like so:
2929

3030
<p align="center">
31-
<img width="600" alt="Screenshot of Create Next Stack running in a terminal" src="assets/screenshot.svg">
31+
<img width="600" alt="Screenshot of Create Next Stack running in a terminal" src="assets/screenshot.png">
3232
</p>
3333

3434
## Supported technologies

assets/screenshot.png

175 KB
Loading

assets/screenshot.svg

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

package.json

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-next-stack",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"author": "Anders Kjær Damgaard @akd-io",
55
"bin": {
66
"create-next-stack": "./bin/run"
@@ -11,6 +11,7 @@
1111
"@oclif/config": "^1.17.0",
1212
"@oclif/errors": "^1.3.4",
1313
"@oclif/plugin-help": "^3.2.2",
14+
"endent": "^2.1.0",
1415
"execa": "^5.1.1",
1516
"inquirer": "^8.1.1",
1617
"rimraf": "^3.0.2",
@@ -40,14 +41,14 @@
4041
},
4142
"files": [
4243
"/bin",
43-
"/lib"
44+
"/lib",
45+
"/prod-assets"
4446
],
4547
"homepage": "https://github.com/akd-io/create-next-stack",
4648
"keywords": [
4749
"oclif"
4850
],
4951
"license": "MIT",
50-
"main": "lib/index.js",
5152
"oclif": {
5253
"bin": "create-next-stack"
5354
},
@@ -56,14 +57,20 @@
5657
"prepare": "husky install",
5758
"prepack": "yarn build && oclif-dev readme",
5859
"build": "rimraf lib && tsc -b",
59-
"test": "ts-node src/e2e/test.ts",
60+
"test": "yarn build && ts-node src/e2e/test.ts",
61+
"test-only": "ts-node src/e2e/test.ts",
62+
"manual-test": "yarn build && ts-node src/e2e/manual-test.ts --debug",
63+
"quick-test": "yarn build && ts-node src/e2e/manual-test.ts --debug --package-manager=npm --styling=css-modules",
6064
"version": "oclif-dev readme && git add README.md",
61-
"format": "prettier --write --ignore-path=.gitignore .",
62-
"format:check": "prettier --check --ignore-path=.gitignore .",
65+
"format": "prettier --write --ignore-path=.prettierignore .",
66+
"format:check": "prettier --check --ignore-path=.prettierignore .",
6367
"lint": "eslint --ext=.ts --config=.eslintrc --ignore-path=.gitignore ."
6468
},
6569
"types": "lib/index.d.ts",
6670
"lint-staged": {
6771
"*": "prettier --write --ignore-unknown"
72+
},
73+
"exports": {
74+
"./package.json": "./package.json"
6875
}
6976
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.grayBackground {
2+
background: hsl(0, 0%, 95%);
3+
}
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
import Script from "next/script";
2+
import { H1 } from "./components/H1";
3+
import { H2 } from "./components/H2";
4+
import { InlineCode } from "./components/InlineCode";
5+
import { Paragraph } from "./components/Paragraph";
6+
import { Section } from "./components/Section";
7+
import { Subtitle } from "./components/Subtitle";
8+
import styles from "./LandingPageTemplate.module.css";
9+
10+
const LandingPageTemplate = () => {
11+
const onConfettiLoad = () => {
12+
setTimeout(() => {
13+
const colors = [
14+
"#26ccff",
15+
"#a25afd",
16+
"#ff5e7e",
17+
"#88ff5a",
18+
"#fcff42",
19+
"#ffa62d",
20+
"#ff36ff",
21+
];
22+
const end = Date.now() + 5 * 1000;
23+
24+
(function frame() {
25+
(window as any).confetti({
26+
particleCount: colors.length,
27+
angle: 60,
28+
spread: 55,
29+
origin: { x: 0, y: 0.6 },
30+
colors,
31+
});
32+
(window as any).confetti({
33+
particleCount: colors.length,
34+
angle: 120,
35+
spread: 55,
36+
origin: { x: 1, y: 0.6 },
37+
colors,
38+
});
39+
40+
if (Date.now() < end) {
41+
setTimeout(() => {
42+
requestAnimationFrame(frame);
43+
}, 50);
44+
}
45+
})();
46+
}, 1000);
47+
};
48+
49+
return (
50+
<>
51+
<Script
52+
src="https://cdn.jsdelivr.net/npm/canvas-confetti@1.4.0/dist/confetti.browser.min.js"
53+
strategy="afterInteractive"
54+
onLoad={onConfettiLoad}
55+
/>
56+
<main>
57+
<Section>
58+
<H1>Your project is a go! 🎉</H1>
59+
<Subtitle>
60+
Get started by editing <InlineCode>pages/index.tsx</InlineCode>
61+
</Subtitle>
62+
</Section>
63+
<Section className={styles.grayBackground}>
64+
<H2>Learning resources</H2>
65+
<Paragraph>
66+
If you are using a technology for the first time, you can find
67+
related links in the generated <InlineCode>README.md</InlineCode>{" "}
68+
file that might prove helpful.
69+
</Paragraph>
70+
</Section>
71+
</main>
72+
<footer>
73+
<Section>
74+
<Paragraph>
75+
Generated by{" "}
76+
<a href="https://github.com/akd-io/create-next-stack">
77+
Create Next Stack
78+
</a>
79+
</Paragraph>
80+
</Section>
81+
</footer>
82+
</>
83+
);
84+
};
85+
86+
export default LandingPageTemplate;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.h1 {
2+
margin: 0;
3+
margin-bottom: 20px;
4+
5+
font-size: 3rem;
6+
}

0 commit comments

Comments
 (0)