Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor configurator #1

Merged
merged 105 commits into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
7940389
configurator class added wip
loopdream Oct 1, 2023
ccf4639
configurator changes
dominicgeargeoura-qs Oct 3, 2023
5eb49f4
fixes
dominicgeargeoura-qs Oct 3, 2023
ff0f546
configurator refactor
dominicgeargeoura-qs Oct 3, 2023
52dc26b
more refactor, added use object to configurator class
dominicgeargeoura-qs Oct 3, 2023
70aa950
tweaks
dominicgeargeoura-qs Oct 3, 2023
a5999a2
tweaks
dominicgeargeoura-qs Oct 3, 2023
ebddbc6
some refactoring
dominicgeargeoura-qs Oct 4, 2023
143c3f8
questions file now called prompts
dominicgeargeoura-qs Oct 4, 2023
0c823ec
clean up
dominicgeargeoura-qs Oct 4, 2023
069c4e0
clean up
dominicgeargeoura-qs Oct 4, 2023
63f5b5b
clean up
dominicgeargeoura-qs Oct 4, 2023
c662e7d
lint staged config refactor
dominicgeargeoura-qs Oct 4, 2023
a400f87
lint staged config refactor
dominicgeargeoura-qs Oct 4, 2023
9ed78d0
comment
dominicgeargeoura-qs Oct 4, 2023
a54533a
message
dominicgeargeoura-qs Oct 4, 2023
df70bb1
tweak
dominicgeargeoura-qs Oct 4, 2023
5727fd7
lint staged test
dominicgeargeoura-qs Oct 4, 2023
5ea3169
lint staged test
dominicgeargeoura-qs Oct 4, 2023
fb3a0dc
variable renames
dominicgeargeoura-qs Oct 4, 2023
560ebb8
todo test
dominicgeargeoura-qs Oct 4, 2023
75fd6da
todo test
dominicgeargeoura-qs Oct 4, 2023
e1c64ea
todo test
dominicgeargeoura-qs Oct 4, 2023
016e721
todo test
dominicgeargeoura-qs Oct 4, 2023
146be5d
todo test
dominicgeargeoura-qs Oct 4, 2023
f5723df
todo test
dominicgeargeoura-qs Oct 4, 2023
7ea9503
todo test
dominicgeargeoura-qs Oct 4, 2023
c406083
revert test
dominicgeargeoura-qs Oct 4, 2023
ce7388c
lint staged change config
dominicgeargeoura-qs Oct 4, 2023
6b0e24c
lint staged change config
dominicgeargeoura-qs Oct 4, 2023
189f385
lint staged change config
dominicgeargeoura-qs Oct 4, 2023
fac45b0
lint staged tweak
dominicgeargeoura-qs Oct 4, 2023
7d217a2
changes template paths var
loopdream Oct 5, 2023
353f625
husky mod
dominicgeargeoura-qs Oct 5, 2023
2fb3a35
husky mod
dominicgeargeoura-qs Oct 5, 2023
b2e8eb7
husky mod
dominicgeargeoura-qs Oct 5, 2023
fb8a6fd
nvmrc update > 20.x
dominicgeargeoura-qs Oct 5, 2023
8a770be
lints steged update
dominicgeargeoura-qs Oct 5, 2023
c37fed2
lints steged update
dominicgeargeoura-qs Oct 5, 2023
c52b737
new line
dominicgeargeoura-qs Oct 5, 2023
0ba1302
lints steged update
dominicgeargeoura-qs Oct 5, 2023
6a044c0
lint staged update
dominicgeargeoura-qs Oct 5, 2023
f045d54
lint staged update
dominicgeargeoura-qs Oct 5, 2023
db5d5e2
lint staged update
dominicgeargeoura-qs Oct 5, 2023
459202c
lint staged update
dominicgeargeoura-qs Oct 5, 2023
8a6f8fc
lint staged update
dominicgeargeoura-qs Oct 5, 2023
8e42e54
lint staged update
dominicgeargeoura-qs Oct 5, 2023
4a17737
lint staged update
dominicgeargeoura-qs Oct 5, 2023
36d2916
lint staged update
dominicgeargeoura-qs Oct 5, 2023
d05d6b9
lint staged update
dominicgeargeoura-qs Oct 5, 2023
14bf4b2
lint staged update
dominicgeargeoura-qs Oct 5, 2023
7de103b
lint staged update
dominicgeargeoura-qs Oct 5, 2023
142ebdd
lint staged update
dominicgeargeoura-qs Oct 5, 2023
192a609
lint staged update
dominicgeargeoura-qs Oct 5, 2023
6fd0b0b
lint staged update
dominicgeargeoura-qs Oct 5, 2023
14de528
lint staged update
dominicgeargeoura-qs Oct 5, 2023
37bc76c
lint staged update
dominicgeargeoura-qs Oct 5, 2023
0536945
lint staged update
dominicgeargeoura-qs Oct 5, 2023
d43cd26
lint staged update
dominicgeargeoura-qs Oct 5, 2023
7dde4f5
lint staged update
dominicgeargeoura-qs Oct 5, 2023
e486336
lint staged update
dominicgeargeoura-qs Oct 5, 2023
03616c0
lint staged update
dominicgeargeoura-qs Oct 5, 2023
bdf430a
lint staged update
dominicgeargeoura-qs Oct 5, 2023
218083b
lint staged update
dominicgeargeoura-qs Oct 5, 2023
91c9b26
jest types anded and new commander options
dominicgeargeoura-qs Oct 5, 2023
92b4f09
make lint staged helper added
dominicgeargeoura-qs Oct 5, 2023
dd264b0
added test and change tsconif module resolution to bundler
dominicgeargeoura-qs Oct 5, 2023
e0e009c
lint staged change
dominicgeargeoura-qs Oct 5, 2023
302cd5d
lint staged change
dominicgeargeoura-qs Oct 5, 2023
9720605
testing
dominicgeargeoura-qs Oct 5, 2023
78a15a8
testing
dominicgeargeoura-qs Oct 5, 2023
be06db0
rollup config start, test for helper, tes config build
dominicgeargeoura-qs Oct 5, 2023
977e987
remove precommit hook
dominicgeargeoura-qs Oct 5, 2023
5865a4e
comment out - also prev commit was to remove pre PUSH hook
dominicgeargeoura-qs Oct 5, 2023
93ad063
merge
loopdream Oct 6, 2023
24526dc
rollup changes
dominicgeargeoura-qs Oct 6, 2023
4e0c5ca
tests added
dominicgeargeoura-qs Oct 6, 2023
153b037
tests
dominicgeargeoura-qs Oct 6, 2023
da6fee2
tests
dominicgeargeoura-qs Oct 6, 2023
37a0b8c
tests changes
dominicgeargeoura-qs Oct 6, 2023
909de45
tests
dominicgeargeoura-qs Oct 6, 2023
92d0fb6
tests
dominicgeargeoura-qs Oct 6, 2023
1c843c8
cli options added
loopdream Oct 7, 2023
87b1d81
lint stages test changes
loopdream Oct 7, 2023
f2d68e3
lint staged config change
loopdream Oct 7, 2023
0c20d4e
lint staged test description change
loopdream Oct 7, 2023
4b0e17a
husky prepare
loopdream Oct 7, 2023
67021b4
pr-checks.yml change
loopdream Oct 7, 2023
5f15abd
pr-checks.yml change
loopdream Oct 7, 2023
45e0ae6
pr-checks.yml change
loopdream Oct 7, 2023
2984fd2
pr-checks.yml change
loopdream Oct 7, 2023
e99a1f9
pr-checks.yml change
loopdream Oct 7, 2023
fa8a0cb
pr-checks.yml change
loopdream Oct 7, 2023
ded99d1
pr-checks.yml change
loopdream Oct 7, 2023
91399cd
tweaks
loopdream Oct 8, 2023
4bc4fb6
remove babelrc
loopdream Oct 8, 2023
730b29f
esm modules now working nicely w jest
loopdream Oct 9, 2023
f34c380
esm modules now working nicely w jest
loopdream Oct 9, 2023
5b8fdd7
workflow edit added pformat check
loopdream Oct 9, 2023
b1fe586
format some code and prettier ignore update
loopdream Oct 9, 2023
e9587b6
jest config regex
loopdream Oct 9, 2023
f1bbe32
deps markdown table code added
loopdream Oct 9, 2023
85a649e
deps markdown table code added
loopdream Oct 9, 2023
b24c674
jest config tweak
loopdream Oct 9, 2023
c6cd48b
new line at eof where applicable
loopdream Oct 9, 2023
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
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/pr-checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: PR Checks

on:
pull_request:
branches: [ main ]

jobs:
pr_checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: npm pkg delete scripts.prepare && npm install
- name: Lint
run: npm run lint:check
- name: Format
run: npm run format:check
- name: Test
run: npm test --ci
- name: Typescript
run: npm run build --noEmit
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,5 @@ dist

.DS_Store

tmp
tmp
coverage
25 changes: 20 additions & 5 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,13 +1,28 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

printf "\n\n"

npm run lint:check
npx lint-staged || {
printf "\n\n------------------------------------------\n\n"
printf "🚫 YOU HAVE ERRORS!"
printf "\n\n------------------------------------------\n\n";
exit 1;
}

npm run lint:fix
# Following is for observability purposes

npm run format:write
# TODOs / FIXMEs
printf "\n\n"
printf "TODOs / FIXMEs - consider reviewing these"
printf "\n------------------------------------------\n"
#
npx leasot 'src/**/*.[jt]s?(x)' --exit-nicely

npm run build --noEmit
# TODO: Add tests!
# printf "\n\nTEST COVERAGE\n--------------\n"


npm run todo
printf "\n\n------------------------------------------\n\n"
printf '%b ' "\033[1m"Now push your code!"\033[0m 🚀"
printf "\n\n------------------------------------------\n\n"
17 changes: 17 additions & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
export default {
'**/*.[jt]s': (filenames) => [
`prettier --check ${filenames.join(' ')}`,
`prettier --write ${filenames.join(' ')}`,
`eslint ${filenames.join(' ')}`,
`eslint --fix ${filenames.join(' ')}`,
`node --experimental-vm-modules --no-warnings node_modules/.bin/jest --passWithNoTests --findRelatedTests ${filenames.join(
' '
)}`,
`tsc --noEmit`,
],

'**/*.(md, yml, yaml, json)': (filenames) => [
`prettier --check ${filenames.join(' ')}`,
`prettier --write ${filenames.join(' ')}`,
],
};
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.5.0
v20.x
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
tmp
tmp
.github
src/templates
3 changes: 3 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"plugins": ["@trivago/prettier-plugin-sort-imports"],
"importOrderSeparation": true,
"importOrder": ["^[./]"],
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
Expand Down
1 change: 1 addition & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default { presets: ['@babel/preset-env'] };
20 changes: 20 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import type { JestConfigWithTsJest } from 'ts-jest';

const jestConfig: JestConfigWithTsJest = {
extensionsToTreatAsEsm: ['.ts'],
modulePaths: ['<rootDir>/src/'],
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.(js|jsx|ts|tsx)$': '$1',
},
modulePathIgnorePatterns: ['<rootDir>/dist/', '<rootDir>/tmp/'],
transform: {
'^.+\\.(js|jsx|ts|tsx)?$': [
'ts-jest',
{
useESM: true,
},
],
},
};

export default jestConfig;
Loading