GithubHelp home page GithubHelp logo

gaetbout / frontend-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from briqnft/frontend-starter

0.0 0.0 0.0 616 KB

Template for frontend projects using Vite 4 + Vue3 + Typescript. Features split by commit.

License: MIT License

JavaScript 5.00% TypeScript 6.99% CSS 80.11% HTML 1.50% Vue 6.39%

frontend-starter's Introduction

briq Frontend Starter

This template provides ready-to-go frontend functionality using:

  • Vite 2 + Vue 3 for easy frontend development
  • Typescript to sane javascript for logic development
  • Vitest for testing
  • Linting using ESLint
  • Tailwind CSS 3 for sane CSS
  • Vue Router to handle pages. This repository demonstrates how vite uses dynamic script importing to split code chunks, which is a lifesaver for efficient SPAs.
  • Bundled are an SVG extension and rollup analyzer extensions, so that you can easily figure out which library ends up in what code chunk.
  • FontAwesome 6 is bundled optionally, and a dynamic import file is provided. Just include that wherever you use it. You can also directly import the stuff.

How to use

The repository is explicitedly split by feature-commit so that you can use only what you want. Note that you'll likely run into some light merge conflicts if you drop earlier commits. You also shouldn't keep a reference to it because I will force push. The feature-commit split also makes it easy to see exactly what I'm adding at every step, should you just want a random feature.

Assuming you are running on an empty git repo, simply:

  1. git remote add starter https://github.com/briqNFT/frontend-starter.git
  2. git fetch starter main
  3. git pull starter main
  4. git rebase -i --root (if your repo is not empty, you may want to use an explicit commit hash instead of --root)
  5. git remote remove starter

Recommended IDE Setup

Then use the "Take Over" mode to get .vue support in TS:

  1. Run Extensions: Show Built-in Extensions from VS Code's command palette, look for TypeScript and JavaScript Language Features, then right click and select Disable (Workspace). By default, Take Over mode will enable itself if the default TypeScript extension is disabled.
  2. Reload the VS Code window by running Developer: Reload Window from the command palette.

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.