Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
de221cb
feat: refactor for usability
yowainwright May 26, 2023
19d4422
fix: adds initial logic for loader.ts
yowainwright May 26, 2023
4a8d900
fix: adds more notes
yowainwright May 26, 2023
ae684cd
fix: init util tests
yowainwright Jun 7, 2023
e407ea3
fix: adds more tests for update
yowainwright Jun 11, 2023
1fb1304
fix: adds more initial tests
yowainwright Jun 14, 2023
eff3828
feat: adds initial easy testing for utils
yowainwright Jun 15, 2023
29e341f
feat: sets up loader for new tests
yowainwright Jun 15, 2023
16253ba
fix: pivot to jest
yowainwright Jun 26, 2023
dd6b0ba
fix: updates utils tests
yowainwright Jun 26, 2023
65e4630
fix: init working jest tests
yowainwright Jun 26, 2023
7b8dbd9
fix: updates chompfile
yowainwright Jun 26, 2023
ff093cc
feat: adds more tests for the loader
yowainwright Jul 4, 2023
d3d83c0
feat: adds 'almost' all test cases for
yowainwright Jul 4, 2023
97dad32
feat: adds successful `loader.ts` test
yowainwright Jul 4, 2023
ab0432b
fix: updates pre-commit
yowainwright Jul 4, 2023
888deb3
fix: updates pre-commit v2
yowainwright Jul 4, 2023
c4c1fa8
fix: updates pre-commit v3
yowainwright Jul 4, 2023
fa39bb3
fix: more should be done with scripts before merge
yowainwright Jul 4, 2023
c8d3b13
fix: more should be done with scripts before merge
yowainwright Jul 4, 2023
330e50f
feat: does more chomp clean-up, etc
yowainwright Jul 6, 2023
4dbf783
feat: switch to pnpm
yowainwright Jul 6, 2023
4ea7a06
feat: switch to pnpm
yowainwright Jul 6, 2023
082a7be
feat: switch to pnpm
yowainwright Jul 6, 2023
a086fb6
feat: updates lock
yowainwright Jul 6, 2023
6fda970
fix: fixes chomp lint cmd
yowainwright Jul 6, 2023
fb91597
fix: uncomment long log
yowainwright Jul 6, 2023
c14589e
fix: revert back to npm
yowainwright Jul 6, 2023
c15c14d
feat: updates lock
yowainwright Jul 6, 2023
f4d2ce4
fix: updates ci action
yowainwright Jul 6, 2023
60a7ebe
feat: init basic logger
yowainwright Jul 27, 2023
9993e74
feat: init basic logger
yowainwright Jul 27, 2023
515fe4a
fix: updates logger args type
yowainwright Jul 27, 2023
4261e52
fix: `not working`; updates based on comments
yowainwright Aug 2, 2023
d030b56
fix: `not working`; updates based on comments
yowainwright Aug 2, 2023
c0f547c
fix:[WIP] more temporary simplification (but with tests [to come])
yowainwright Aug 4, 2023
2608d49
fix:[WIP] removes cruft for this PR
yowainwright Aug 4, 2023
3fcfc7c
fix:[WIP] minifies PR surface
yowainwright Aug 4, 2023
4e8fc0a
fix: [WIP] removes more changes + minifies scope in the readme
yowainwright Aug 4, 2023
c68ab82
fix: [WIP] removes more changes + minifies scope in the readme
yowainwright Aug 4, 2023
a5a67d3
feat: updates tests to match cleaned up api
yowainwright Aug 5, 2023
754228a
fix: fixes eslint warning
yowainwright Aug 5, 2023
a0b90ff
fix: prettier update
yowainwright Aug 5, 2023
2045f4f
fix: removes unneeded modules
yowainwright Aug 5, 2023
b56aa27
fix: update tweaks
yowainwright Aug 5, 2023
0a0ec68
feat: minor path updates
yowainwright Aug 15, 2023
bea5ebd
feat: minor path updates
yowainwright Aug 15, 2023
c9890b5
fix: simplifies loader more
yowainwright Aug 16, 2023
ef02cef
fix: simplifies loader more
yowainwright Aug 16, 2023
de60629
fix: api rewrite 🫠 😂
yowainwright Aug 16, 2023
7f42dc8
fix: api rewrite 🫠 😂
yowainwright Aug 16, 2023
91ae34c
feat: updates comment
yowainwright Aug 16, 2023
958851d
feat: updates comment
yowainwright Aug 16, 2023
79423cc
fix: e2e/test works!
yowainwright Aug 16, 2023
7f71e7a
fix: e2e/test works!
yowainwright Aug 16, 2023
38c1ce4
fix: udpates utils/parser test
yowainwright Aug 16, 2023
75c03d0
fix: udpates utils/parser test
yowainwright Aug 16, 2023
54e1167
feat: init loader tests (getting closer)
yowainwright Aug 16, 2023
42d7cb7
feat: init loader tests (getting closer)
yowainwright Aug 16, 2023
738e626
feat: warn for any (in tests)
yowainwright Aug 16, 2023
ad1ca5e
feat: adds basic npm scripts
yowainwright Aug 22, 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
22 changes: 11 additions & 11 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "Node.js",
"build": {
"dockerfile": "Dockerfile",
"args": { "VARIANT": "18-bullseye", "NODE_ENV": "docker-dev" }
},
"settings": {},
"extensions": [
"rvest.vs-code-prettier-eslint",
"name": "Node.js",
"build": {
"dockerfile": "Dockerfile",
"args": { "VARIANT": "18-bullseye", "NODE_ENV": "docker-dev" }
},
"settings": {},
"extensions": [
"rvest.vs-code-prettier-eslint",
"ZixuanChen.vitest-explorer",
"wix.vscode-import-cost",
"eamodio.gitlens"
],
"postCreateCommand": "chomp install --ignore-scripts",
"remoteUser": "node"
],
"postCreateCommand": "chomp install --ignore-scripts",
"remoteUser": "node"
}
18 changes: 0 additions & 18 deletions .eslintrc

This file was deleted.

1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ updates:
interval: daily
allow:
- dependency-name: '@jspm/generator'
- dependency-name: '@jspm/import-map'
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run commit-msg
npx commitlint --edit $1
2 changes: 1 addition & 1 deletion .husky/post-merge
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

chomp npm:install && chomp build
chomp post-merge
9 changes: 0 additions & 9 deletions .prettierrc

This file was deleted.

51 changes: 32 additions & 19 deletions chompfile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ default-task = 'build'

[[task]]
name = 'build'
run = 'tsup src/loader.ts --format esm,cjs --dts'
dep = 'src/loader.ts'
run = 'tsup src/loader.ts --format esm --dts'
dep = 'src/#.ts'
target = 'dist/loader.js'

[[task]]
Expand All @@ -16,50 +16,53 @@ target = 'package-lock.json'

[[task]]
name = 'clean'
run = 'rimraf dist'
run = 'rm -rf dist'

[[task]]
name = 'commit'
run = 'git-cz'

[[task]]
name = 'commit-msg'
run = 'commitlint --edit $1'
name = 'default'
run = 'npm install --no-save [email protected] @teleporthq/[email protected] @teleporthq/[email protected] chalk express morgan [email protected] [email protected].1'

[[task]]
name = 'default'
run = 'npm install --no-save [email protected] @teleporthq/[email protected] @teleporthq/[email protected] chalk express morgan [email protected] [email protected] && node tests/e2e/test.js'
name = 'format'
run = 'prettier --write **/*.{ts,json,md}'

[[task]]
name = 'lint'
run = 'eslint src --ext .ts'
deps = ['src/#.ts', 'tests/loader.test.ts']
deps = ['src/#.ts']

[[task]]
name = 'lint-fix'
deps = ['src/#.ts', 'tests/loader.test.ts']
name = 'lint:fix'
run = 'eslint src --ext .ts --fix'
deps = ['src/#.ts']

[[task]]
name = 'post-merge'
deps = ['npm:install', 'build']

[[task]]
name = 'pre-commit'
run = 'lint-staged'
deps = ['src/#.ts', 'tests/loader.test.ts']
deps = ['typecheck', 'test:changed', 'lint:fix', 'format']

[[task]]
name = 'prepare'
run = 'husky install'

[[task]]
name = 'prepublishOnly'
deps = [':test', ':build']
deps = ['test', 'build']

[[task]]
name = 'release'
run = 'release-it'

[[task]]
name = 'server'
deps = [':server:build', ':server:start']
deps = ['server:build', 'server:start']

[[task]]
name = 'server:build'
Expand All @@ -75,19 +78,29 @@ echo "Server started."

[[task]]
name = 'test'
deps = [':test:unit', ':test:e2e']
deps = ['test:unit', 'test:e2e']

[[task]]
name = 'test:e2e'
serial = true
deps = [':default', ':build']
run = 'node --loader ./dist/loader.js tests/e2e/test.js'
deps = ['default', 'build']

[[task]]
name = 'test:unit'
run = 'vitest run'
run = 'jest'

[[task]]
name = 'test:changed'
run = 'jest --bail --changesince=main'

[[task]]
name = 'typecheck'
run = 'tsc --noEmit'
deps = ['src/#.ts']

[[task]]
name = 'upgrade'
run = 'npm update --latest'

[[task]]
name = 'dir-size'
run = 'du -hs .cache'
Loading