- 
                Notifications
    You must be signed in to change notification settings 
- Fork 437
Translating storybook svelte to portuguese #728
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
          
     Draft
      
      
            yamgomes
  wants to merge
  4
  commits into
  chromaui:master
  
    
      
        
          
  
    
      Choose a base branch
      
     
    
      
        
      
      
        
          
          
        
        
          
            
              
              
              
  
           
        
        
          
            
              
              
           
        
       
     
  
        
          
            
          
            
          
        
       
    
      
from
yamgomes:get-started-svelte
  
      
      
   
  
    
  
  
  
 
  
      
    base: master
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.
          
          
  
     Draft
                    Changes from 1 commit
      Commits
    
    
            Show all changes
          
          
            4 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      
    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 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,76 @@ | ||
| --- | ||
| title: 'Tutorial Storybook para o Svelte' | ||
| tocTitle: 'Get started' | ||
| description: 'Configure o Storybook em seu ambiente de desenvolvimento' | ||
| --- | ||
|  | ||
| Storybook executa paralelamente à aplicação em modo de desenvolvimento. Ajuda a construir componentes de interface de usuário (UI) isolados à lógica de negócio e contexto da aplicação. Esta edição do tutorial Introdução ao Storybook é para Svelte; outras edições existem para [Vue](/intro-to-storybook/vue/pt/get-started), [Angular](/intro-to-storybook/angular/pt/get-started), [React](/intro-to-storybook/react/pt/get-started), [React Native](/intro-to-storybook/react-native/pt/get-started) e [Ember](/intro-to-storybook/ember/pt/get-started). | ||
|  | ||
|  | ||
|  | ||
| ## Set up Svelte Storybook | ||
|  | ||
| Precisaremos seguir alguns passos para configurar o processo de compilação em nosso ambiente de desenvolvimento. Para começar, queremos utilizar [degit](https://github.com/Rich-Harris/degit) para configurar nosso sistema de compilação. Utilizando este pacote, é possível obter "modelos" (aplicações parcialmente construídas com configurações padrão) para ajudar a acelerar o fluxo de desenvolvimento da aplicação. | ||
|  | ||
| Execute os seguintes comandos: | ||
|  | ||
| ```shell:clipboard=false | ||
| # Criar nossa aplicação: | ||
| npx degit chromaui/intro-storybook-svelte-template taskbox | ||
|  | ||
| cd taskbox | ||
|  | ||
| # Instalar dependências | ||
| yarn | ||
| ``` | ||
|  | ||
| <div class="aside"> | ||
| 💡 Este modelo contém estilos, recursos e configurações essenciais, todos necessários para esta versão do tutorial. | ||
| </div> | ||
|  | ||
| Agora é possível verificar que os diversos ambientes de nossa aplicação estão funcionando corretamente: | ||
|  | ||
| ```shell:clipboard=false | ||
| # Executar o testador (Jest) em linha de comando: | ||
|         
                  yamgomes marked this conversation as resolved.
              Outdated
          
            Show resolved
            Hide resolved | ||
| yarn test | ||
|  | ||
| # Iniciar o explorador de componentes na porta 6006: | ||
| yarn storybook | ||
|  | ||
| # Executar a aplicação frontend em si na porta 5000: | ||
| yarn dev | ||
| ``` | ||
|  | ||
| As três modalidades de aplicação frontend: testes automatizados (Jest), desenvolvimento de componentes (Storybook), e a aplicação em si. | ||
|  | ||
|  | ||
|  | ||
| Dependendo de qual parte da aplicação está sendo modificada, pode ser desejável executar um ou mais destes simultaneamente. Como o foco atual é criar um único componente de interface de usuário, será executado apenas Storybook | ||
|  | ||
| ## Submeter suas mudanças | ||
|  | ||
| Nesse estágio já é seguro adicionar os arquivos a um repositório local. Execute os seguintes comandos para inicializar um repositório local, adicione e submeta (commit) as mudanças feitas até o momento. | ||
|  | ||
| ```shell | ||
| git init | ||
| ``` | ||
|  | ||
| Seguido por: | ||
|  | ||
| ```shell | ||
| git add . | ||
| ``` | ||
|  | ||
| Então: | ||
|  | ||
| ```shell | ||
| git commit -m "first commit" | ||
| ``` | ||
|  | ||
| Finalmente: | ||
|  | ||
| ```shell | ||
| git branch -M main | ||
| ``` | ||
|  | ||
| Vamos começar a construção de nosso primeiro componente! | ||
  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.