-
Notifications
You must be signed in to change notification settings - Fork 0
substituir pipeline babel por tsx + esbuild (#91) #421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
edvaldoszy
merged 11 commits into
development
from
91-substituir-pipeline-babel-por-tsx-esbuild
Jul 15, 2026
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
55cd826
substituir pipeline babel por tsx + esbuild (#91)
JosueModesto 055c400
fix: autentificaçao na rota proximo_numero, bundle false no esbuild, …
JosueModesto 1fcae1c
fix: Adiciona o glob as dependecias, para transpilar todos os tipos d…
JosueModesto e1bad67
fix: remove a versao do yarn que era o problema
JosueModesto 221db09
fix: Adicionando o packages: 'external' e bundle:true ao arquivo buil…
JosueModesto 87d06f3
finalização da migração do babel para esbuild
edvaldoszy 30a729f
migra arquivo de rotas, melhora nome dos arquivos, corrige permissões…
edvaldoszy e2de096
corrige erro de lint
edvaldoszy c262e77
fix: Resolução de conflitos
JosueModesto 803ead0
Merge branch 'development' of github.com:utfpr/hcf-api into 91-substi…
edvaldoszy 97d184b
corrige rota do dashboard, carregamento de arquivos estáticos e confi…
edvaldoszy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| import { rmSync } from 'node:fs' | ||
| import { build } from 'esbuild' | ||
| import { globSync } from 'glob' | ||
|
|
||
| rmSync('dist', { recursive: true, force: true }) | ||
|
|
||
| const assets = globSync('src/**/*.{ejs,html,ttf,css}') | ||
|
|
||
| await build({ | ||
| entryPoints: [ | ||
| ...assets, | ||
| 'src/index.js', | ||
| ], | ||
| outdir: 'dist', | ||
| bundle: true, | ||
| minify: true, | ||
| platform: 'node', | ||
| target: 'node20', | ||
| packages: 'external', | ||
| loader: { | ||
| '.ejs': 'copy', | ||
| '.html': 'copy', | ||
| '.ttf': 'copy', | ||
| '.css': 'copy', | ||
| } | ||
| }) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,23 @@ | ||
| import { existsSync } from 'node:fs'; | ||
| import { resolve } from 'node:path'; | ||
|
|
||
| const { UPLOAD_PATH, STORAGE_PATH } = process.env; | ||
| const { UPLOAD_PATH, STORAGE_PATH, SOURCE_ROOT } = process.env; | ||
|
|
||
| export const assets = resolve(__dirname, '../../public'); | ||
| export const upload = UPLOAD_PATH || resolve(__dirname, '../../uploads'); | ||
| export const storage = STORAGE_PATH || resolve(__dirname, '../../storage'); | ||
| function getSourceRoot() { | ||
| if (SOURCE_ROOT) { | ||
| return SOURCE_ROOT; | ||
| } | ||
|
|
||
| if (!existsSync(resolve('src/views')) && existsSync(resolve('dist/views'))) { | ||
| return 'dist'; | ||
| } | ||
|
|
||
| return 'src'; | ||
| } | ||
|
|
||
| export const resolveSource = (...parts) => resolve(getSourceRoot(), ...parts); | ||
| export const assets = resolve('public'); | ||
| export const upload = UPLOAD_PATH || resolve('uploads'); | ||
| export const storage = STORAGE_PATH || resolve('storage'); | ||
|
|
||
| export default {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.