-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renomeia a pasta build/tokens para built-tokens (#22)
# Contexto Atualmente a lib do design system exporta código em TypeScript diretamente. Em vez disso, vamos passar a exportar arquivos `.js` e `d.ts` gerados a partir dos `.ts`. Uma possibilidade seria deixar esses arquivos `.js` e `d.ts` na pasta `build`, mas um entrave é o fato de que a `build` existente também tem arquivos `.ts` a serem processados. Mantendo ela como está, geraríamos uma estrutura confusa, com uma segunda pasta `build` dentro da `build` atual. Mais contexto em https://geekie.slack.com/archives/C0547M0UDHR/p16928266654310291. # Mudanças Para evitar a build-ception, optei por renomear a pasta `build` existente para `built-tokens` (e as referências a ela de acordo). Provavelmente os arquivos `.js` e `.d.ts` vão passar a ficar na `build`, num commit por vir. # Como testar * Rodei `yarn build-tokens` e `yarn storybook` e vi que o Storybook continua se comportando como antes * Vi que o import de tokens no SGLearner continua funcionando
- Loading branch information
1 parent
3521846
commit 9c65814
Showing
9 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
node_modules/ | ||
|
||
#Build folder | ||
build/ | ||
built-tokens/ | ||
|
||
# TypeScript cache | ||
*.tsbuildinfo | ||
|
This file contains 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 +1 @@ | ||
build | ||
built-tokens |
This file contains 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 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 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 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 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 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,2 +1,2 @@ | ||
export * from './build/tokens/ts/tokens'; | ||
export * from './built-tokens/js/tokens'; | ||
export * from './helpers/webOnlyHelpers'; |
This file contains 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