Skip to content

Commit

Permalink
chore: remove website from monorepo (#2505)
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico authored Apr 18, 2024
1 parent b584a88 commit eb4a6fc
Show file tree
Hide file tree
Showing 535 changed files with 840 additions and 104,936 deletions.
1 change: 0 additions & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ documentation = """
"""
format = "fmt --all --verbose"
lint = "clippy --workspace --all-targets -- --deny warnings"
lintdoc = "run -p xtask_lintdoc --"
new-crate = "run -p xtask_codegen -- new-crate"

[profile.release]
Expand Down
13 changes: 7 additions & 6 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# Generated files, sorted alphabetically.
* text=auto eol=lf
**/generated/* linguist-generated=true text=auto eol=lf
crates/biome_js_analyze/src/analyzers.rs linguist-generated=true text=auto eol=lf
crates/biome_js_analyze/src/analyzers/*.rs linguist-generated=true text=auto eol=lf
crates/biome_js_analyze/src/syntax.rs linguist-generated=true text=auto eol=lf
crates/biome_js_analyze/src/syntax/*.rs linguist-generated=true text=auto eol=lf
crates/biome_js_analyze/src/assists.rs linguist-generated=true text=auto eol=lf
crates/biome_js_analyze/src/assists/*.rs linguist-generated=true text=auto eol=lf
crates/biome_js_analyze/src/semantic_analyzers.rs linguist-generated=true text=auto eol=lf
crates/biome_js_analyze/src/semantic_analyzers/*.rs linguist-generated=true text=auto eol=lf
crates/biome_js_analyze/src/lint.rs linguist-generated=true text=auto eol=lf
crates/biome_js_analyze/src/lint/*.rs linguist-generated=true text=auto eol=lf
crates/biome_js_analyze/src/registry.rs linguist-generated=true text=auto eol=lf
crates/biome_configuration/linter/rules.rs linguist-generated=true text=auto eol=lf
crates/biome_configuration/parse/json/rules.rs linguist-generated=true text=auto eol=lf
crates/biome_configuration/src/linter/rules.rs linguist-generated=true text=auto eol=lf
crates/biome_configuration/src/parse/json/rules.rs linguist-generated=true text=auto eol=lf
crates/biome_cli/src/execute/migrate/eslint_any_rule_to_biome.rs linguist-generated=true text=auto eol=lf
crates/biome_unicode_table/src/tables.rs linguist-generated=true text=auto eol=lf
packages/@biomejs/backend-jsonrpc/src/workspace.ts linguist-generated=true text=auto eol=lf
packages/@biomejs/biome/configuration_schema.json linguist-generated=true text=auto eol=lf
Expand Down
28 changes: 0 additions & 28 deletions .github/workflows/ja-translation.yaml

This file was deleted.

37 changes: 1 addition & 36 deletions .github/workflows/pull_request_js.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@

# Jobs run on pull request in js folders
name: Pull request JS
on:
pull_request:
branches:
- main
paths: # Only run when changes are made to js code
- 'website/**'
- 'editors/**'
# - 'crates/**'
# - 'crates/**'
- 'packages/@biomejs/js-api/**'

# Cancel jobs when the PR is updated
Expand Down Expand Up @@ -41,36 +39,3 @@ jobs:
run: |
pnpm i
pnpm run ci
type-check:
name: Type-check JS Files
runs-on: ubuntu-latest
steps:
- name: Checkout PR Branch
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Free Disk Space
uses: ./.github/actions/free-disk-space
- name: Cache pnpm modules
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/action-setup@v3
- name: Install toolchain
uses: moonrepo/setup-rust@b8edcc56aab474d90c7cf0bb8beeaf8334c15e9f # v1
with:
cache-base: main
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Build WASM module for the web
run: wasm-pack build --out-dir ../../packages/@biomejs/wasm-web --target web --scope biomedev crates/biome_wasm
- name: Install libraries
run: pnpm i --filter @biomejs/website
- name: Build JS
working-directory: website
run: pnpm build:js
- name: Type check
working-directory: website
run: pnpm tsc
24 changes: 0 additions & 24 deletions .github/workflows/release_crates.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/update_contributors.yml

This file was deleted.

6 changes: 0 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ We can use help in a bunch of areas and any help is greatly appreciated!
+ [Formatter](#formatter)
* [Crate dependencies](#crate-dependencies)
* [Node.js development](#nodejs-development)
* [Website development](#website-development)
+ [Translations](#translations)
* [Commit messages](#commit-messages)
* [Creating pull requests](#creating-pull-requests)
Expand Down Expand Up @@ -260,11 +259,6 @@ For testing and developing, you need to build these packages, following the step
The tests are run against the compiled files, which means that you need to run the
`build` script after you implemented features/bug fixes.

## Website development

The [Biome website](https://biomejs.dev/) is built with [Astro](https://astro.build).
To contribute to its development please check our [README](./website/README.md)

### Translations

For more information on how to help with translation, please see the [translation contribution guidelines for our docs](./website/TRANSLATIONS.md).
Expand Down
22 changes: 0 additions & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 1 addition & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
[workspace]
# Use the newer version of the cargo resolver
# https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
members = [
"crates/*",
"xtask/bench",
"xtask/codegen",
"xtask/coverage",
"xtask/lintdoc",
"xtask/libs_bench",
"xtask/contributors",
]
members = ["crates/*", "xtask/bench", "xtask/codegen", "xtask/coverage", "xtask/libs_bench", "xtask/contributors"]
resolver = "2"

[workspace.lints.rust]
Expand Down
5 changes: 0 additions & 5 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ gen-all:
cargo run -p xtask_codegen -- all
cargo run -p xtask_codegen -- configuration
cargo run -p xtask_codegen --features configuration -- migrate-eslint
cargo lintdoc
just gen-bindings
just gen-web
just format

# Generates TypeScript types and JSON schema of the configuration
Expand All @@ -40,8 +38,6 @@ gen-lint:
cargo run -p xtask_codegen --features configuration -- migrate-eslint
just gen-bindings
just format
cargo lintdoc
just gen-web

# Generates code generated files for the website
gen-web:
Expand All @@ -61,7 +57,6 @@ gen-grammar *args='':

# Generates the linter documentation and Rust documentation
documentation:
RUSTDOCFLAGS='-D warnings' cargo lintdoc
RUSTDOCFLAGS='-D warnings' cargo documentation

# Creates a new lint rule in the given path, with the given name. Name has to be camel case.
Expand Down
Loading

0 comments on commit eb4a6fc

Please sign in to comment.