Giter Club home page Giter Club logo

aluralunos's Introduction

Repositorio Base

A ideia do repositorio é servir de base para novos projetos. Com todos os pacotes e depencias necessarias para iniciar da melhor forma. O projeto foi criado com Next.js e styled-components. Para configuração do projeto, foram instalados:

O arquivo main.yml foi criado para implementar a primeira rotina de CI. Até então só tem o Lint, mas o Vercel pode ser adicionado depois.

A maior parte do repositorio está utilizando o yarn para administrar os pacotes, por isso as rotinas foram montadas com ele.

📋 Instalação Base

  1. Clonar repositorio
git clone https://github.com/carolandrade1/template_next_styled && cd template_next_styled
  1. Instalar dependências
yarn install
  1. Trocar URL do repositorio remoto (caso necessário)

3.1. Ver qual o repositorio atual

git remote -v

3.2. Mudar a URL do repositorio remoto

git remote set-url origin <LinkDoNovoRepositorio>

3.3. Verifique se a mudança foi realizada

git remote -v
  1. Rodar aplicativo
yarn dev
  1. Acesse http://localhost:3000/ e navegue pelo site

📦 Pacotes e dependencias, caso queira começar do zero.

  • Next.js + styled-components
yarn create next-app --example with-styled-components
  • ESLint
  1. Instalar a lib
yarn add eslint --dev
yarn run eslint --init
  1. Adicionar no arquivo package.json na seção scripts:
"lint": "eslint --ignore-path .gitignore ."
"lint:fix": "eslint --fix --ignore-path .gitignore ."
  • Husky
  1. Instalar a lib
yarn add husky -D
  1. Adicionar no arquivo package.json na seção scripts:
"prepare": "husky install"
  1. Rodar no terminal:
yarn prepare
npx husky add .husky/pre-commit "yarn lint:fix"
  • Conventional Commits
  1. Instalar a lib
npm install commitizen -g
commitizen init cz-conventional-changelog --yarn --dev --exact
  1. Adicionar no arquivo package.json na seção scripts:
"commit": "cz"
  • Prop Types
npm install --save prop-types

aluralunos's People

Contributors

carolandrade1 avatar edukure avatar schultz-gabriel avatar victordantasdev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.