Skip to content

Commit d17c366

Browse files
authored
Merge pull request #92 from akd-io/release/0.1.2
2 parents 5f3167c + 2e2c015 commit d17c366

File tree

92 files changed

+959
-910
lines changed

Some content is hidden

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

92 files changed

+959
-910
lines changed

.eslintrc

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
1-
// TODO: Remove oclif defaults and add own plugins.
21
{
3-
"extends": ["oclif", "oclif-typescript", "eslint-config-prettier"],
4-
"rules": {
5-
"no-eq-null": "off",
6-
"eqeqeq": "off",
7-
"no-await-in-loop": "off",
8-
"no-else-return": "off",
9-
"no-negated-condition": "off",
10-
"valid-jsdoc": "off",
11-
"dot-notation": "off",
12-
"no-process-exit": "off",
13-
"unicorn/no-process-exit": "off",
14-
"no-warning-comments": "off",
15-
"unicorn/filename-case": "off",
16-
"@typescript-eslint/no-use-before-define": "off",
17-
"@typescript-eslint/no-unused-vars": "warn"
18-
}
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": ["@typescript-eslint"],
5+
"extends": [
6+
"eslint:recommended",
7+
"plugin:@typescript-eslint/recommended",
8+
"eslint-config-prettier"
9+
]
1910
}

.github/workflows/main.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,40 @@ jobs:
1313
os: [ubuntu-latest, windows-latest, macOS-latest]
1414

1515
steps:
16+
- name: "Check Skip Duplicate Actions"
17+
id: skip_check
18+
uses: fkirc/skip-duplicate-actions@master
19+
with:
20+
cancel_others: "true"
21+
skip_after_successful_duplicate: "true"
22+
paths_ignore: '["**/README.md"]'
23+
1624
- name: "Checkout repo"
25+
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
1726
uses: actions/checkout@v2
1827

1928
- name: "Use Node ${{ matrix.node }}"
29+
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
2030
uses: actions/setup-node@v1
2131
with:
2232
node-version: ${{ matrix.node }}
2333

2434
- name: "Install dependencies (with cache)"
35+
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
2536
uses: bahmutov/npm-install@v1
2637

2738
- name: "Build"
39+
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
2840
run: yarn build
2941

3042
- name: "Check formatting"
43+
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
3144
run: yarn format:check
3245

3346
- name: "Lint"
47+
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
3448
run: yarn lint
3549

3650
- name: "Test"
51+
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
3752
run: yarn test-only

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ Technologies marked as _convenience installs_ are technologies that work out of
6464
| [Emotion](https://emotion.sh/docs/introduction) | [Docs](https://emotion.sh/docs/introduction) - [GitHub repo](https://github.com/emotion-js/emotion) |
6565
| [styled-components](https://styled-components.com/) | [Docs](https://styled-components.com/docs) - [GitHub repo](https://github.com/styled-components/styled-components) |
6666
| [CSS Modules](https://github.com/css-modules/css-modules) | [Docs](https://github.com/css-modules/css-modules) - [Next.js-specific docs](https://nextjs.org/docs/basic-features/built-in-css-support#adding-component-level-css) |
67+
| [Sass](https://sass-lang.com/) <img width="14" alt="convenience install icon" src="assets/convenience-icon.png"> | [Docs](https://sass-lang.com/documentation) - [Next.js-specific docs](https://nextjs.org/docs/basic-features/built-in-css-support#sass-support) |
6768
| [React Hook Form](https://react-hook-form.com/) <img width="14" alt="convenience install icon" src="assets/convenience-icon.png"> | [Docs](https://react-hook-form.com/get-started) - [GitHub repo](https://github.com/react-hook-form/react-hook-form) |
6869
| [Formik](https://formik.org/) <img width="14" alt="convenience install icon" src="assets/convenience-icon.png"> | [Docs](https://formik.org/docs/overview) - [GitHub repo](https://github.com/formium/formik) |
6970
| [Framer Motion](https://www.framer.com/motion/) <img width="14" alt="convenience install icon" src="assets/convenience-icon.png"> | [Docs](https://www.framer.com/docs/) - [GitHub repo](https://github.com/framer/motion) |
@@ -83,16 +84,16 @@ ARGUMENTS
8384
APPNAME The name of your app, optionally including a path prefix. Eg.: "my-app" or "path/to/my-app"
8485
8586
OPTIONS
86-
-h, --help Shows the CLI help information.
87-
-v, --version Shows the CLI version information.
88-
--debug Show verbose error messages for debugging purposes.
89-
--formatting-pre-commit-hook Adds a formatting pre-commit hook.
90-
--formik Adds Formik. (Form library)
91-
--framer-motion Adds Framer Motion. (Animation library)
92-
--package-manager=(yarn|npm) Sets the preferred package manager.
93-
--prettier Adds Prettier. (Code formatting)
94-
--react-hook-form Adds React Hook Form. (Form library)
95-
--styling=(emotion|styled-components|css-modules) Sets the preferred styling method.
87+
-h, --help Shows the CLI help information.
88+
-v, --version Shows the CLI version information.
89+
--debug Show verbose error messages for debugging purposes.
90+
--formatting-pre-commit-hook Adds a formatting pre-commit hook.
91+
--formik Adds Formik. (Form library)
92+
--framer-motion Adds Framer Motion. (Animation library)
93+
--package-manager=(yarn|npm) Sets the preferred package manager.
94+
--prettier Adds Prettier. (Code formatting)
95+
--react-hook-form Adds React Hook Form. (Form library)
96+
--styling=<styling-method> Sets the preferred styling method. <styling-method> = emotion|styled-components|css-modules|css-modules-with-sass
9697
```
9798

9899
## License

bin-test/run-prod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env node
2+
3+
require("../lib/main").run().catch(require("@oclif/errors/handle"))

bin/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ if (dev) {
99
require("ts-node").register({ project })
1010
}
1111

12-
require(`../${dev ? "src" : "lib"}`)
12+
require(`../${dev ? "src/main" : "lib/main"}`)
1313
.run()
1414
.catch(require("@oclif/errors/handle"))

bin/run-prod

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

package.json

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-next-stack",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
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+
"chalk": "^4.1.1",
1415
"endent": "^2.1.0",
1516
"execa": "^5.1.1",
1617
"inquirer": "^8.1.1",
@@ -21,27 +22,27 @@
2122
"devDependencies": {
2223
"@oclif/dev-cli": "^1.26.0",
2324
"@types/inquirer": "^7.3.2",
24-
"@types/node": "^15.12.4",
25+
"@types/node": "^16.4.7",
2526
"@types/rimraf": "^3.0.1",
2627
"@types/uuid": "^8.3.1",
2728
"@types/validate-npm-package-name": "^3.0.2",
28-
"eslint": "^5.16.0",
29-
"eslint-config-oclif": "^3.1.0",
30-
"eslint-config-oclif-typescript": "^0.2.0",
29+
"@typescript-eslint/eslint-plugin": "^4.28.5",
30+
"@typescript-eslint/parser": "^4.28.5",
31+
"eslint": "^7.31.0",
3132
"eslint-config-prettier": "^8.3.0",
32-
"husky": "^6.0.0",
33+
"husky": "^7.0.1",
3334
"lint-staged": "^11.0.0",
3435
"prettier": "^2.3.2",
3536
"ts-node": "^10.0.0",
36-
"typescript": "^4.3.4",
37+
"typescript": "^4.3.5",
3738
"uuid": "^8.3.2"
3839
},
3940
"engines": {
4041
"node": ">=12.0.0"
4142
},
4243
"files": [
4344
"/bin",
44-
"/lib",
45+
"/lib/main",
4546
"/prod-assets"
4647
],
4748
"homepage": "https://github.com/akd-io/create-next-stack",
@@ -57,10 +58,10 @@
5758
"prepare": "husky install",
5859
"prepack": "yarn build && oclif-dev readme",
5960
"build": "rimraf lib && tsc -b",
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",
61+
"test": "yarn build && node lib/tests/e2e/test.js",
62+
"test-only": "node lib/tests/e2e/test.js",
63+
"manual-test": "yarn build && node lib/tests/e2e/manual-test.js --debug",
64+
"quick-test": "yarn build && node lib/tests/e2e/manual-test.js --debug --package-manager=npm --styling=css-modules",
6465
"version": "oclif-dev readme && git add README.md",
6566
"format": "prettier --write --ignore-path=.prettierignore .",
6667
"format:check": "prettier --check --ignore-path=.prettierignore .",

src/e2e/helpers/exit-with-error.ts

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

src/e2e/helpers/test-logging.ts

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

src/e2e/manual-test.ts

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

0 commit comments

Comments
 (0)