-
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
Open
JosueModesto
wants to merge
8
commits into
development
Choose a base branch
from
91-substituir-pipeline-babel-por-tsx-esbuild
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 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 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,5 @@ | ||
| import js from '@eslint/js' | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @JosueModesto algum motivo para renomear isso para |
||
| import stylistic from '@stylistic/eslint-plugin' | ||
| import type { ESLint } from 'eslint' | ||
| // @ts-expect-error: No declaration file found | ||
| import importHelpers from 'eslint-plugin-import-helpers' | ||
| import { defineConfig } from 'eslint/config' | ||
|
|
@@ -14,7 +13,9 @@ export default defineConfig([ | |
| 'mysql/', | ||
| 'public/', | ||
| 'coverage/', | ||
| 'node_modules/' | ||
| 'node_modules/', | ||
| 'build.mjs', | ||
| 'eslint.config.mjs', | ||
| ] | ||
| }, | ||
| { | ||
|
|
@@ -23,7 +24,7 @@ export default defineConfig([ | |
| js, | ||
| stylistic, | ||
| tseslint, | ||
| 'import-helpers': importHelpers as unknown as ESLint.Plugin | ||
| "import-helpers": importHelpers | ||
| }, | ||
| languageOptions: { | ||
| parserOptions: { | ||
|
|
||
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
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.
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.