Skip to content

Commit

Permalink
Merge pull request #5 from borestad/feature/testing
Browse files Browse the repository at this point in the history
  • Loading branch information
borestad authored Sep 3, 2023
2 parents e816ff0 + 0a9cd4a commit 1e747dd
Show file tree
Hide file tree
Showing 12 changed files with 249 additions and 228 deletions.
File renamed without changes.
5 changes: 5 additions & 0 deletions bin/deno.lock → .github/bin/deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
4 changes: 2 additions & 2 deletions bin/job1.ts → .github/bin/job1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ const bar = chalk.reset.inverse(' ')

log(bar)

log(chalk.bgBlue.red('hello world '))
log(dax.colors.red(dax.colors.bgBlue('hello world')))
log(chalk.bgBlue.red(' hello world '))
log(dax.colors.red(dax.colors.bgBlue(' hello world ')))
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/scripts/ciutil
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ download() {
preinstall-binaries() {
cp .github/scripts/ciutil ~/.local/bin/

for url in $(jq .preinstallBinaries bin/package.json | jq -r .[]); do
for url in $(jq .preinstallBinaries package.json | jq -r .[]); do
download "$url" &
done

Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/setup
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ timestamp
# =============================================================================
# Install node_modules
# =============================================================================
if cat $GITROOT/bin/package.json | jq -e .dependencies &>/dev/null; then
if cat $GITROOT/.github/bin/package.json | jq -e .dependencies &>/dev/null; then
"pnpm install"

cd $GITROOT/bin
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
- name: Cron ❯❯ Job1
# if: github.event.schedule != '*/5 * * * *'
run: |
pstats memo --ttl=300s -- 'deno run -A bin/job1.ts'
pstats memo --ttl=300s -- 'deno run -A .github/bin/job1.ts'
# ─────────────────────────────────────────────────────
- name: Post hooks ❯❯ Commit to repository
Expand Down
31 changes: 21 additions & 10 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,38 @@
{
"json.schemaDownload.enable": true,
"deno.enable": true,
"deno.cacheOnSave": true,
"deno.codeLens.implementations": true,
"deno.config": "./.github/bin/deno.json",
"deno.enable": true,
"deno.importMap": "./.github/bin/deno.json",
"deno.internalDebug": false,
"deno.lint": false,
"deno.importMap": "./bin/deno.json",
"deno.config": "./bin/deno.json",
"editor.defaultFormatter": "denoland.vscode-deno",
"deno.suggest.autoImports": true,
"deno.suggest.completeFunctionCalls": true,
"deno.suggest.imports.autoDiscover": true,
// "deno.inlayHints.enumMemberValues.enabled": true,
// "deno.inlayHints.functionLikeReturnTypes.enabled": true,
// "deno.inlayHints.parameterNames.suppressWhenArgumentMatchesName": true,
// "deno.inlayHints.parameterNames.enabled": "none",
// "deno.inlayHints.variableTypes.enabled": true,
// "deno.inlayHints.propertyDeclarationTypes.enabled": true,
// "deno.inlayHints.variableTypes.suppressWhenTypeMatchesName": true,
// "deno.inlayHints.parameterTypes.enabled": true,
"deno.suggest.imports.hosts": {
"https://deno.land": true
"https://deno.land": true,
},
"deno.suggest.names": true,
"deno.suggest.paths": true,
"deno.codeLens.references": true,
"deno.unstable": true,
"editor.formatOnSaveMode": "file",
"editor.formatOnType": false,
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.useESLintClass": true,
"editor.defaultFormatter": "denoland.vscode-deno",
"editor.formatOnSave": false,
"editor.formatOnSaveMode": "file",
"editor.formatOnType": false,
"eslint.enable": true,
"eslint.useESLintClass": true,
"eslint.validate": [
"javascript",
"javascriptreact",
Expand All @@ -39,5 +49,6 @@
"dprint.json": "jsonc"
},
"files.exclude": {},
"json.schemaDownload.enable": true,
"prettier.enable": false
}
15 changes: 9 additions & 6 deletions bin/package.json → package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
},
"devDependencies": {
"@antfu/eslint-config": "^0.29.4",
"@tsconfig/deno": "^1.0.8",
"@types/node": "^18.17.1",
"eslint": "^8.46.0",
"@tsconfig/deno": "^1.0.9",
"@types/node": "^18.17.14",
"eslint": "^8.48.0",
"eslint-plugin-unicorn": "^44.0.2"
},
"preinstallBinaries": [
Expand All @@ -30,12 +30,12 @@
"extends": "@antfu",
"root": true,
"ignorePatterns": [
"deno.json*"
"!.*"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./bin/tsconfig.json"
"project": "./.github/bin/tsconfig.json"
},
"plugins": [
"unicorn"
Expand All @@ -62,7 +62,10 @@
"*.mjs"
],
"rules": {
"template-tag-spacing": ["error", "always"],
"template-tag-spacing": [
"error",
"always"
],
"no-console": "off",
"@typescript-eslint/comma-dangle": "off",
"@typescript-eslint/require-await": [
Expand Down
Loading

0 comments on commit 1e747dd

Please sign in to comment.