Skip to content

Commit

Permalink
feat: Move to main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Oct 2, 2021
1 parent 50b7518 commit f4d0fd0
Show file tree
Hide file tree
Showing 15 changed files with 13,685 additions and 5,455 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CD IoC

on:
push:
branches:
- main

jobs:
build:

runs-on: ubuntu-18.04

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- uses: actions/setup-node@v1
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'

- name: Download dependencies
run: npm install

- name: Transpile typescript to javascript
run: npm run build

- name: Automatic GitHub Release
uses: justincy/[email protected]
id: release

- name: Publish to NPM Registry
run: yarn publish --access public
if: steps.release.outputs.released == 'true'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
name: Deploy
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI IoC

on:
pull_request:
branches:
- main

jobs:
build:

runs-on: ubuntu-18.04

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- uses: actions/setup-node@v1
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'

- name: Download dependencies
run: npm install

- name: Verify project lint and try to fix it
run: npm run lint:fix

- name: Run the tests from project
run: npm run test
26 changes: 0 additions & 26 deletions .github/workflows/publish.yml

This file was deleted.

36 changes: 28 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@

node_modules/
dist/
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
Expand Down Expand Up @@ -38,11 +42,10 @@ bower_components
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo
Expand All @@ -68,23 +71,21 @@ typings/
# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

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

Expand All @@ -102,3 +103,22 @@ dist

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# IDE
.idea
.vscode

# dotenv environment variables file
.env
.env.testing
.env.production
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ The intention behind this repository is to always maintain a viable and simple I

## Installation

You can install the IoC using;

```bash
yarn add @SecJS/IoC
npm install @secjs/ioc
```

## Usage
Expand All @@ -38,12 +36,6 @@ const userService = container.get<UserService>(UserService.name)
console.log(userService.findAll())
```

## TODO

- [ ] Add ServiceProvider to have IoC Container running globally during runtime.

---

## License

MIT © [João Lenon](https://github.com/SecJS/IoC/blob/master/LICENSE)
Made with 🖤 by [jlenon7](https://github.com/jlenon7) :wave:
Loading

0 comments on commit f4d0fd0

Please sign in to comment.