Skip to content

Commit

Permalink
Merge pull request #41 from marianozunino/move-to-oclif
Browse files Browse the repository at this point in the history
  • Loading branch information
marianozunino authored Oct 25, 2024
2 parents f2c0523 + 4aa2350 commit 733c7d0
Show file tree
Hide file tree
Showing 112 changed files with 14,491 additions and 25,784 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/dist
/data
/nestjs-example
/test
25 changes: 0 additions & 25 deletions .eslintrc.js

This file was deleted.

11 changes: 11 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": ["oclif", "oclif-typescript", "prettier"],
"rules": {
"new-cap": [
"error",
{
"capIsNewExceptions": ["Module", "Injectable"]
}
]
}
}
25 changes: 18 additions & 7 deletions .github/workflows/build_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
# Get deploy code
- name: Checkout
uses: actions/checkout@v2
with:
# This is important for semantic-release to have access to the full history
fetch-depth: 0

- name: Get npm cache
uses: actions/cache@v2
Expand All @@ -32,22 +35,30 @@ jobs:
restore-keys: |
${{ runner.os }}-node-
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*'

# Build using the custom script (sam build + custom builds)
- name: Build
shell: bash
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
TEST_NEO4J_HOST: ${{ secrets.TEST_NEO4J_HOST }}
TEST_NEO4J_PORT: ${{ secrets.TEST_NEO4J_PORT }}
TEST_NEO4J_USERNAME: ${{ secrets.TEST_NEO4J_USERNAME }}
TEST_NEO4J_PASSWORD: ${{ secrets.TEST_NEO4J_PASSWORD }}
TEST_NEO4J_SCHEME: ${{ secrets.TEST_NEO4J_SCHEME }}
run: |
npm ci
npm run build
npm run test:e2e
npm run test:cov
- name: Generate oclif artifacts
run: |
# Generate readme
npm run prepack
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add README.md
git commit -m "docs: update readme with oclif commands [skip ci]" || true
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
Expand Down
51 changes: 16 additions & 35 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,40 +1,21 @@
# compiled output
*-debug.log
*-error.log
**/.DS_Store
/.idea
/dist
/tmp
/node_modules
oclif.manifest.json
*.tsbuildinfo

# Logs
yarn.lock
pnpm-lock.yaml
data
logs
*.log
npm-debug.log*
pnpm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# OS
.DS_Store

# Tests
/coverage
/.nyc_output

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.env

neo4j

.morpheus.json
plugins
*.tgz
nestjs-example/dist
nyc
.nyc*
coverage
4 changes: 0 additions & 4 deletions .husky/commit-msg

This file was deleted.

7 changes: 2 additions & 5 deletions .husky/pre-commit
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint
npm run cspell
npm run lint:fix
npm run test
4 changes: 0 additions & 4 deletions .husky/pre-push

This file was deleted.

11 changes: 11 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"require": [
"ts-node/register"
],
"watch-extensions": [
"ts"
],
"recursive": true,
"reporter": "spec",
"timeout": 60000
}
4 changes: 0 additions & 4 deletions .prettierrc

This file was deleted.

1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"@oclif/prettier-config"
9 changes: 2 additions & 7 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@
[
"@semantic-release/git",
{
"assets": [
"package-lock.json",
"package.json",
"CHANGELOG.md",
"*.tgz"
],
"assets": ["package-lock.json", "package.json", "CHANGELOG.md", "*.tgz"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
Expand All @@ -34,4 +29,4 @@
}
],
"tagFormat": "v${version}"
}
}
1 change: 0 additions & 1 deletion .tool-versions

This file was deleted.

20 changes: 20 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Attach",
"port": 9229,
"skipFiles": ["<node_internals>/**"]
},
{
"type": "node",
"request": "launch",
"name": "Execute Command",
"skipFiles": ["<node_internals>/**"],
"program": "${workspaceFolder}/bin/dev.js",
"args": ["hello", "world"]
}
]
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Mariano Zunino
Copyright (c) 2024 Mariano Zunino

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading

0 comments on commit 733c7d0

Please sign in to comment.