Skip to content

Commit

Permalink
Feature: update typeorm (#67)
Browse files Browse the repository at this point in the history
* fix: type string to type ENVIRONMENT

* chore: upgrade TypeORM to 0.3.20 aka @latest

* fix: unit tests, some typeorm syntaxes

* fix: datasource definition

* fix: typeorm cli not able to retrieve commonJS module

* fix: datasource for CLI

* fix: adapt typeorm tasks

* chore: remove ormconfig.json

* chore: embed templates in project

* feat: embed templates for generation, update readme
  • Loading branch information
steve-lebleu authored Feb 16, 2024
1 parent 59fd86f commit 4bfc714
Show file tree
Hide file tree
Showing 37 changed files with 1,116 additions and 234 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
echo LINKEDIN_CONSUMER_ID = "${{ secrets.LINKEDIN_CONSUMER_ID }}" >> ./dist/env/test.env
echo LINKEDIN_CONSUMER_SECRET = "${{ secrets.LINKEDIN_CONSUMER_SECRET }}" >> ./dist/env/test.env
- name: Install global dependencies
run: npm i typescript@5.3.3 -g && npm i typeorm@0.2.41 -g
run: npm i typescript@5.3.3 -g
- name: Install local dependencies
run: npm i
- name: Compile Typescript files
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
mysql database: 'typeplate_test'
mysql root password: passw0rd
- name: Install global dependencies
run: npm i typescript@5.3.3 -g && npm i typeorm@0.2.41 -g
run: npm i typescript@5.3.3 -g
- name: Install local dependencies
run: npm i
- name: Create dist directory
Expand All @@ -73,7 +73,7 @@ jobs:
name: build-files
path: dist
- name: Synchronize database schema
run: typeorm schema:sync
run: npm run schema:sync
- name: Execute tests suites
run: npm run ci:test
- name: Publish to coveralls.io
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
echo LINKEDIN_CONSUMER_ID = "${{ secrets.LINKEDIN_CONSUMER_ID }}" >> ./dist/env/test.env
echo LINKEDIN_CONSUMER_SECRET = "${{ secrets.LINKEDIN_CONSUMER_SECRET }}" >> ./dist/env/test.env
- name: Install global dependencies
run: npm i typescript@5.3.3 -g && npm i typeorm@0.2.41 -g
run: npm i typescript@5.3.3 -g
- name: Install local dependencies
run: npm i
- name: Compile Typescript files
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
mysql database: 'typeplate_test'
mysql root password: passw0rd
- name: Install global dependencies
run: npm i typescript@5.3.3 -g && npm i typeorm@0.2.41 -g
run: npm i typescript@5.3.3 -g
- name: Install local dependencies
run: npm i
- name: Create dist directory
Expand All @@ -74,7 +74,7 @@ jobs:
name: build-files
path: dist
- name: Synchronize database schema
run: typeorm schema:sync
run: npm run schema:sync
- name: Execute tests suites
run: npm run ci:test
- name: Publish to coveralls.io
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Node](https://img.shields.io/badge/Node-18.19.0-informational?logo=node.js&color=43853D)](https://nodejs.org/docs/latest-v18.x/api/index.html)
[![TypeScript](https://img.shields.io/badge/Typescript-5.3.3-informational?logo=typescript&color=2F74C0)](https://www.typescriptlang.org/)
[![Express](https://img.shields.io/badge/Express-4.18.2-informational?logo=express&color=B1B1B1)](https://expressjs.com/)
[![Typeorm](https://img.shields.io/badge/Typeorm-0.2.41-informational?logo=typeorm&color=FFAB00)](https://typeorm.io/#/)
[![Typeorm](https://img.shields.io/badge/Typeorm-0.3.20-informational?logo=typeorm&color=FFAB00)](https://typeorm.io/#/)
[![Mocha](https://img.shields.io/badge/Mocha-10.3.0-informational?logo=mocha&color=8A6343)](https://mochajs.org)

![Github action workflow status](https://github.com/steve-lebleu/typeplate/actions/workflows/build.yml/badge.svg?branch=master)
Expand All @@ -16,6 +16,7 @@
Ready to use RESTful API boilerplate builded with [Express.js](http://expressjs.com/en/4x/api.html), [Typescript](https://github.com/Microsoft/TypeScript) [TypeORM](https://github.com/typeorm/typeorm) and [Mocha](https://mochajs.org/). 🤘

Thanks to Daniel F. Sousa for inspiration with her [Express ES2017 REST API boilerplate](https://github.com/danielfsousa/express-rest-boilerplate) :beer: :beer: :beer:

## > Features

- **Basics**
Expand Down
25 changes: 0 additions & 25 deletions ormconfig.json

This file was deleted.

Loading

0 comments on commit 4bfc714

Please sign in to comment.