Code Monkey home page Code Monkey logo

evercera's Introduction

🪨 Evercera

Tech stack:

  • Astro
  • eslint & prettier
  • ui framework

Init project

  • use pnpm
  • node version: 18.16.1
# install all dependencies
pnpm install

# start project
pnpm run dev

# manually lint files (using prettier & eslint)
pnpm run lint

Env setup records

  1. Git hook: checking for commit
pnpm add --save-dev husky lint-staged # install packages
pnpm exec husky install # husky init
npm pkg set scripts.prepare="husky install" # add script in package.json
pnpm exec husky add .husky/pre-commit "pnpm exec lint-staged"
  1. Prettier: file formatting
# add prettier
pnpm add -D prettier prettier-plugin-astro

# manually run script to format in cmd
pnpm prettier --write . --plugin=prettier-plugin-astro

# vscode format on save
# add scripts below in your local settings.json
"prettier.documentSelectors": ["**/*.astro"],
  "[astro]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  1. eslint
# install eslint: core/typescript/a11y
pnpm add -D eslint eslint-plugin-astro @typescript-eslint/parser eslint-plugin-jsx-a11y prettier-plugin-astro
  1. NextUI
# pnpm compatible
public-hoist-pattern[]=*@nextui-org/* # in .npmrc file
pnpm install # check dependencies installed

# install react dependencies
pnpm add @astrojs/react
pnpm add react react-dom

# install next-ui
pnpm add @nextui-org/react framer-motion

# install tailwind
pnpm astro add tailwind

evercera's People

Contributors

rue1216 avatar

Watchers

 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.