Giter Site home page Giter Site logo

setchy / biomejs-website Goto Github PK

View Code? Open in Web Editor NEW

This project forked from biomejs/website

0.0 0.0 0.0 30.71 MB

Biome's website

Home Page: https://biomejs.dev

License: MIT License

JavaScript 61.66% Rust 2.45% TypeScript 4.76% SCSS 1.78% Astro 0.74% MDX 28.61%

biomejs-website's Introduction

The website source of biomejs/biome.

Clone

This repository includes a submodule pointing to the main repository. The submodule is required to build the WASM artifacts for the website playground, populate the rule pages, and perform some checks in the CI workflows.

To clone the repository including the submodule, run

git clone --recursive https://github.com/biomejs/website

If you've already cloned the repository without the --recursive flag, you can also fetch the submodule later:

git clone https://github.com/biomejs/website
cd website
git submodule update --init --recursive

Installation

First install pnpm by enabling corepack:

corepack enable

Then install the required dependencies:

pnpm i --frozen-lockfile

To build the playground, you'll also need wasm-pack.

Local Development

This command starts a local development server:

pnpm start

Most changes are reflected live without having to restart the server.

If you want to work on the playground, the WASM artifacts of Biome are required. To build them, the wasm-pack tool must be installed, and use the following command to build and start the website with a working playground:

pnpm start:playground

Please make sure you have the submodule source also cloned.

Code generation

The pages of the lint rules are all code generated from the repository biomejs/biome. To update the pages you have to install the Rust toolchain, because the code that does that requires reading the source code of the analyzer.

First, make sure that you've pulled the latest version of the repository and installed the required toolchains, then run the corresponding scripts from the repo root via pnpm:

# make sure your submodule is checked out at the correct commit
pnpm init:biome

# generate only rules files
pnpm codegen:rules

# generate only release files
pnpm codegen:release-files

# generate all files
pnpm codegen:all

Build

This command generates static content into the dist directory:

pnpm build

The dist directory can be served using any static contents hosting service, or you can preview the site locally with

pnpm preview

biomejs-website's People

Contributors

chansuke avatar ematipico avatar github-actions[bot] avatar nhedger avatar renovate[bot] avatar sec-ant 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.