Skip to content

Commit c928eff

Browse files
authored
Merge pull request #16 from SecJS/feat/len-add-secjs-exceptions
feat: Add @secjs/exceptions and CI
2 parents 043a4eb + 16a76b0 commit c928eff

File tree

15 files changed

+11196
-11620
lines changed

15 files changed

+11196
-11620
lines changed

.github/workflows/cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
registry-url: 'https://registry.npmjs.org'
2323

2424
- name: Download dependencies
25-
run: yarn
25+
run: npm install
2626

2727
- name: Transpile typescript to javascript
28-
run: yarn build
28+
run: npm run build
2929

3030
- name: Automatic GitHub Release
3131
uses: justincy/github-action-npm-release@2.0.1

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI Base
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-18.04
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
18+
19+
- uses: actions/setup-node@v1
20+
with:
21+
node-version: '14.x'
22+
registry-url: 'https://registry.npmjs.org'
23+
24+
- name: Download dependencies
25+
run: npm install
26+
27+
- name: Verify project lint and try to fix it
28+
run: npm run lint:fix

.gitignore

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
node_modules/
2+
dist/
13
# Logs
24
logs
35
*.log
46
npm-debug.log*
57
yarn-debug.log*
68
yarn-error.log*
79
lerna-debug.log*
10+
.pnpm-debug.log*
811

912
# Diagnostic reports (https://nodejs.org/api/report.html)
1013
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
@@ -38,11 +41,10 @@ bower_components
3841
build/Release
3942

4043
# Dependency directories
41-
node_modules/
4244
jspm_packages/
4345

44-
# TypeScript v1 declaration files
45-
typings/
46+
# Snowpack dependency directory (https://snowpack.dev/)
47+
web_modules/
4648

4749
# TypeScript cache
4850
*.tsbuildinfo
@@ -68,23 +70,21 @@ typings/
6870
# Yarn Integrity file
6971
.yarn-integrity
7072

71-
# dotenv environment variables file
72-
.env
73-
.env.test
74-
7573
# parcel-bundler cache (https://parceljs.org/)
7674
.cache
75+
.parcel-cache
7776

7877
# Next.js build output
7978
.next
79+
out
8080

8181
# Nuxt.js build / generate output
8282
.nuxt
8383
dist
8484

8585
# Gatsby files
8686
.cache/
87-
# Comment in the public line in if your project uses Gatsby and *not* Next.js
87+
# Comment in the public line in if your project uses Gatsby and not Next.js
8888
# https://nextjs.org/blog/next-9-1#public-directory-support
8989
# public
9090

@@ -103,6 +103,21 @@ dist
103103
# TernJS port file
104104
.tern-port
105105

106-
*.js
107-
*.d.ts
106+
# Stores VSCode versions used for testing VSCode extensions
107+
.vscode-test
108+
109+
# yarn v2
110+
.yarn/cache
111+
.yarn/unplugged
112+
.yarn/build-state.yml
113+
.yarn/install-state.gz
114+
.pnp.*
115+
116+
# IDE
108117
.idea
118+
.vscode
119+
120+
# dotenv environment variables file
121+
.env
122+
.env.testing
123+
.env.production

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ The intention behind this repository is to always maintain a `Base` project to a
1919

2020
## Installation
2121

22+
> To use the high pottential from @secjs/base you need to install first this packages from SecJS,
23+
> it keeps as dev dependency because one day @secjs/core will install everything once.
24+
25+
```bash
26+
npm install @secjs/contracts @secjs/exceptions @secjs/utils
27+
```
28+
29+
> Than you can install @secjs/base
30+
2231
```bash
2332
npm install @secjs/base
2433
```
@@ -138,6 +147,4 @@ class UserRepository extends PrismaRepository<User> {
138147

139148
---
140149

141-
## License
142-
143150
Made with 🖤 by [jlenon7](https://github.com/jlenon7) :wave:

index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export * from './services/BaseService'
22
export * from './services/GuardBaseService'
3+
34
export * from './repositories/LucidRepository'
45
export * from './repositories/PrismaRepository'
56
export * from './repositories/TypeOrmRepository'

0 commit comments

Comments
 (0)