s/web-infra-dev/oxc-project

This commit is contained in:
Boshen 2023-11-10 14:30:18 +08:00
parent 2328c068b6
commit eca98cf2ed
No known key found for this signature in database
GPG key ID: 234DA6A7079C6801
18 changed files with 46 additions and 46 deletions

View file

@ -1,13 +1,13 @@
# Contributor License Agreement # Contributor License Agreement
Please note that you will be required to sign the [Contributor License Agreement](https://cla-assistant.io/web-infra-dev/oxc) before your pull request can be accepted. Please note that you will be required to sign the [Contributor License Agreement](https://cla-assistant.io/oxc-project/oxc) before your pull request can be accepted.
# Installation # Installation
## Clone Repo ## Clone Repo
```bash ```bash
git clone --recurse-submodules git@github.com:web-infra-dev/oxc.git git clone --recurse-submodules git@github.com:oxc-project/oxc.git
``` ```
The `--recurse-submodules` flag will install the following submodules: The `--recurse-submodules` flag will install the following submodules:

View file

@ -7,10 +7,10 @@ authors = ["Boshen <boshenc@gmail.com>", "Oxc contributors"]
categories = ["development-tools", "web-programming", "compilers"] categories = ["development-tools", "web-programming", "compilers"]
description = "Oxc is a JavaScript / TypeScript tooling suite." description = "Oxc is a JavaScript / TypeScript tooling suite."
edition = "2021" edition = "2021"
homepage = "https://github.com/web-infra-dev/oxc" homepage = "https://github.com/oxc-project/oxc"
keywords = ["JavaScript", "TypeScript", "parser", "linter", "minifier"] keywords = ["JavaScript", "TypeScript", "parser", "linter", "minifier"]
license = "MIT" license = "MIT"
repository = "https://github.com/web-infra-dev/oxc" repository = "https://github.com/oxc-project/oxc"
rust-version = "1.60" rust-version = "1.60"
[workspace.dependencies] [workspace.dependencies]

View file

@ -70,7 +70,7 @@ we have dedicated significant effort to fine-tune the Rust compilation speed.
Our aim is to minimize any impact on your development workflow, Our aim is to minimize any impact on your development workflow,
ensuring that developing your own Oxc based tools remains a smooth and efficient experience. ensuring that developing your own Oxc based tools remains a smooth and efficient experience.
This is demonstrated by our [CI runs](https://github.com/web-infra-dev/oxc/actions/workflows/ci.yml?query=branch%3Amain), This is demonstrated by our [CI runs](https://github.com/oxc-project/oxc/actions/workflows/ci.yml?query=branch%3Amain),
where warm runs complete in 5 minutes. where warm runs complete in 5 minutes.
### Node.js ### Node.js
@ -140,7 +140,7 @@ larger monorepos. See [bench-javascript-linter](https://github.com/Boshen/bench-
As an upside, the binary is approximately 3MB, whereas [ESLint] and its associated plugin dependencies can easily exceed 100. As an upside, the binary is approximately 3MB, whereas [ESLint] and its associated plugin dependencies can easily exceed 100.
You may also download the linter binary from the [latest release tag](https://github.com/web-infra-dev/oxc/releases/latest) as a standalone binary, You may also download the linter binary from the [latest release tag](https://github.com/oxc-project/oxc/releases/latest) as a standalone binary,
this lets you run the linter without a Node.js installation in your CI. this lets you run the linter without a Node.js installation in your CI.
<details> <details>
@ -170,7 +170,7 @@ To address this, we are actively working on porting [enhanced-resolve].
### 🔸 Transpiler ### 🔸 Transpiler
A transpiler is responsible for turning higher versions of ECMAScript to a lower version that can be used in older browsers. A transpiler is responsible for turning higher versions of ECMAScript to a lower version that can be used in older browsers.
We are currently focusing on an esnext to es2015 transpiler. See the [umbrella issue](https://github.com/web-infra-dev/oxc/issues/974) for details. We are currently focusing on an esnext to es2015 transpiler. See the [umbrella issue](https://github.com/oxc-project/oxc/issues/974) for details.
### 🔸 Minifier ### 🔸 Minifier
@ -206,11 +206,11 @@ The type checker is available via `npx oxidation-compiler@latest check path` and
See [CONTRIBUTING.md](./CONTRIBUTING.md) for guidance. See [CONTRIBUTING.md](./CONTRIBUTING.md) for guidance.
Check out some of the [good first issues](https://github.com/web-infra-dev/oxc/contribute) or ask us on [Discord][discord-url]. Check out some of the [good first issues](https://github.com/oxc-project/oxc/contribute) or ask us on [Discord][discord-url].
If you are unable to contribute by code, you can still participate by: If you are unable to contribute by code, you can still participate by:
* Add a [GitHub Star](https://github.com/web-infra-dev/oxc/stargazers) to the project. * Add a [GitHub Star](https://github.com/oxc-project/oxc/stargazers) to the project.
* Join us on [Discord][discord-url]. * Join us on [Discord][discord-url].
* [Follow me on twitter](https://twitter.com/boshen_c) and tweet about this project. * [Follow me on twitter](https://twitter.com/boshen_c) and tweet about this project.
@ -283,19 +283,19 @@ Oxc partially copies code from the following projects, their licenses are listed
[discord-badge]: https://img.shields.io/discord/1079625926024900739?logo=discord&label=Discord [discord-badge]: https://img.shields.io/discord/1079625926024900739?logo=discord&label=Discord
[discord-url]: https://discord.gg/9uXCAwqQZW [discord-url]: https://discord.gg/9uXCAwqQZW
[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg [license-badge]: https://img.shields.io/badge/license-MIT-blue.svg
[license-url]: https://github.com/web-infra-dev/oxc/blob/main/LICENSE [license-url]: https://github.com/oxc-project/oxc/blob/main/LICENSE
[ci-badge]: https://github.com/web-infra-dev/oxc/actions/workflows/ci.yml/badge.svg?event=push&branch=main [ci-badge]: https://github.com/oxc-project/oxc/actions/workflows/ci.yml/badge.svg?event=push&branch=main
[ci-url]: https://github.com/web-infra-dev/oxc/actions/workflows/ci.yml?query=event%3Apush+branch%3Amain [ci-url]: https://github.com/oxc-project/oxc/actions/workflows/ci.yml?query=event%3Apush+branch%3Amain
[npm-badge]: https://img.shields.io/npm/v/oxlint/latest?color=brightgreen [npm-badge]: https://img.shields.io/npm/v/oxlint/latest?color=brightgreen
[npm-url]: https://www.npmjs.com/package/oxlint/v/latest [npm-url]: https://www.npmjs.com/package/oxlint/v/latest
[code-size-badge]: https://img.shields.io/github/languages/code-size/web-infra-dev/oxc [code-size-badge]: https://img.shields.io/github/languages/code-size/oxc-project/oxc
[code-size-url]: https://github.com/web-infra-dev/oxc [code-size-url]: https://github.com/oxc-project/oxc
[code-coverage-badge]: https://codecov.io/github/web-infra-dev/oxc/branch/main/graph/badge.svg [code-coverage-badge]: https://codecov.io/github/oxc-project/oxc/branch/main/graph/badge.svg
[code-coverage-url]: https://codecov.io/gh/web-infra-dev/oxc [code-coverage-url]: https://codecov.io/gh/oxc-project/oxc
[sponsors-badge]: https://img.shields.io/github/sponsors/Boshen [sponsors-badge]: https://img.shields.io/github/sponsors/Boshen
[sponsors-url]: https://github.com/sponsors/Boshen [sponsors-url]: https://github.com/sponsors/Boshen
[playground-badge]: https://img.shields.io/badge/Playground-blue?color=9BE4E0 [playground-badge]: https://img.shields.io/badge/Playground-blue?color=9BE4E0
[playground-url]: https://web-infra-dev.github.io/oxc/playground [playground-url]: https://oxc-project.github.io/oxc/playground
[crate-oxc-url]: https://crates.io/crates/oxc [crate-oxc-url]: https://crates.io/crates/oxc
[crate-ast-url]: https://crates.io/crates/oxc_ast [crate-ast-url]: https://crates.io/crates/oxc_ast
@ -310,7 +310,7 @@ Oxc partially copies code from the following projects, their licenses are listed
[acorn]: https://github.com/acornjs/acorn [acorn]: https://github.com/acornjs/acorn
[babel]: https://babel.dev [babel]: https://babel.dev
[bumpalo]: https://docs.rs/bumpalo [bumpalo]: https://docs.rs/bumpalo
[contributors]: https://github.com/web-infra-dev/oxc/graphs/contributors [contributors]: https://github.com/oxc-project/oxc/graphs/contributors
[docs-ast]: https://docs.rs/oxc/latest/oxc/ast/index.html [docs-ast]: https://docs.rs/oxc/latest/oxc/ast/index.html
[docs-parser]: https://docs.rs/oxc/latest/oxc/parser/index.html [docs-parser]: https://docs.rs/oxc/latest/oxc/parser/index.html
[enhanced-resolve]: https://github.com/webpack/enhanced-resolve [enhanced-resolve]: https://github.com/webpack/enhanced-resolve

View file

@ -1,6 +1,6 @@
//! # The JavaScript Oxidation Compiler //! # The JavaScript Oxidation Compiler
//! //!
//! <https://github.com/web-infra-dev/oxc> //! <https://github.com/oxc-project/oxc>
pub mod allocator { pub mod allocator {
#[doc(inline)] #[doc(inline)]

View file

@ -176,7 +176,7 @@ fn test() {
}", }",
None, None,
), ),
// https://github.com/web-infra-dev/oxc/pull/508#issuecomment-1618850742 // https://github.com/oxc-project/oxc/pull/508#issuecomment-1618850742
("{const Math = () => {}; {let obj = new Math();}}", None), ("{const Math = () => {}; {let obj = new Math();}}", None),
]; ];

View file

@ -35,7 +35,7 @@ declare_oxc_lint!(
/// var bar = a + 1; /// var bar = a + 1;
/// ``` /// ```
NoUndef, NoUndef,
nursery // https://github.com/web-infra-dev/oxc/issues/732 nursery // https://github.com/oxc-project/oxc/issues/732
); );
impl Rule for NoUndef { impl Rule for NoUndef {

View file

@ -129,7 +129,7 @@ fn test() {
("var v; v = ReactDOM.render(<div />, document.body);", None), ("var v; v = ReactDOM.render(<div />, document.body);", None),
("var inst = ReactDOM.render(<div />, document.body);", None), ("var inst = ReactDOM.render(<div />, document.body);", None),
// This rule is only supported for react versions >= 15.0.0, so the following are not supported. // This rule is only supported for react versions >= 15.0.0, so the following are not supported.
// See https://github.com/web-infra-dev/oxc/pull/1042#discussion_r1369762147 // See https://github.com/oxc-project/oxc/pull/1042#discussion_r1369762147
// ("var inst = React.render(<div />, document.body);", None), // ("var inst = React.render(<div />, document.body);", None),
// ("var inst = React.render(<div />, document.body);", None), // ("var inst = React.render(<div />, document.body);", None),
]; ];

View file

@ -261,7 +261,7 @@ impl Oxc {
let allocator = Allocator::default(); let allocator = Allocator::default();
let source_text = &self.source_text; let source_text = &self.source_text;
let Ok(source_type) = SourceType::from_path("test.tsx") else { let Ok(source_type) = SourceType::from_path("test.tsx") else {
return "'test.tsx' source type invalid, this should never happen.\nPlease open an issue at https://github.com/web-infra-dev/oxc".to_string().serialize(&self.serializer); return "'test.tsx' source type invalid, this should never happen.\nPlease open an issue at https://github.com/oxc-project/oxc".to_string().serialize(&self.serializer);
}; };
let ParserReturn { errors: parse_errors, panicked, program: returned_program, trivias } = let ParserReturn { errors: parse_errors, panicked, program: returned_program, trivias } =
@ -300,7 +300,7 @@ impl Oxc {
let Ok(arguments): Result<BTreeMap<Arc<str>, TransparentValue>, _> = let Ok(arguments): Result<BTreeMap<Arc<str>, TransparentValue>, _> =
serde_json::from_str(query_arguments) serde_json::from_str(query_arguments)
else { else {
return "Query arguments is not valid json string, this should never happen.\nPlease open an issue at https://github.com/web-infra-dev/oxc".serialize(&self.serializer); return "Query arguments is not valid json string, this should never happen.\nPlease open an issue at https://github.com/oxc-project/oxc".serialize(&self.serializer);
}; };
execute_query(schema(), arc_adapter, query, arguments).map_or_else( execute_query(schema(), arc_adapter, query, arguments).map_or_else(

View file

@ -7,11 +7,11 @@
"publisher": "oxc", "publisher": "oxc",
"displayName": "Oxc", "displayName": "Oxc",
"bugs": { "bugs": {
"url": "https://github.com/web-infra-dev/oxc/issues" "url": "https://github.com/oxc-project/oxc/issues"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/web-infra-dev/oxc.git", "url": "https://github.com/oxc-project/oxc.git",
"directory": "editors/vscode" "directory": "editors/vscode"
}, },
"categories": ["Linters"], "categories": ["Linters"],

View file

@ -10,7 +10,7 @@
"license": "MIT", "license": "MIT",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/web-infra-dev/oxc.git", "url": "https://github.com/oxc-project/oxc.git",
"directory": "npm/oxc-parser" "directory": "npm/oxc-parser"
}, },
"funding": { "funding": {

View file

@ -41,7 +41,7 @@ if (binPath) {
} else { } else {
console.error( console.error(
"The Oxc CLI package doesn't ship with prebuilt binaries for your platform yet. " + "The Oxc CLI package doesn't ship with prebuilt binaries for your platform yet. " +
"You can create an issue at https://github.com/web-infra-dev/oxc/issues for support." "You can create an issue at https://github.com/oxc-project/oxc/issues for support."
); );
process.exitCode = 1; process.exitCode = 1;
} }

View file

@ -5,11 +5,11 @@
"keywords": [], "keywords": [],
"author": "Boshen and oxc contributors", "author": "Boshen and oxc contributors",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/web-infra-dev/oxc", "homepage": "https://github.com/oxc-project/oxc",
"bugs": "https://github.com/web-infra-dev/oxc/issues", "bugs": "https://github.com/oxc-project/oxc/issues",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/web-infra-dev/oxc", "url": "https://github.com/oxc-project/oxc",
"directory": "npm/oxc" "directory": "npm/oxc"
}, },
"bin": "bin/oxc", "bin": "bin/oxc",

View file

@ -18,19 +18,19 @@
[discord-badge]: https://img.shields.io/discord/1079625926024900739?logo=discord&label=Discord [discord-badge]: https://img.shields.io/discord/1079625926024900739?logo=discord&label=Discord
[discord-url]: https://discord.gg/9uXCAwqQZW [discord-url]: https://discord.gg/9uXCAwqQZW
[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg [license-badge]: https://img.shields.io/badge/license-MIT-blue.svg
[license-url]: https://github.com/web-infra-dev/oxc/blob/main/LICENSE [license-url]: https://github.com/oxc-project/oxc/blob/main/LICENSE
[ci-badge]: https://github.com/web-infra-dev/oxc/actions/workflows/ci.yml/badge.svg?event=push&branch=main [ci-badge]: https://github.com/oxc-project/oxc/actions/workflows/ci.yml/badge.svg?event=push&branch=main
[ci-url]: https://github.com/web-infra-dev/oxc/actions/workflows/ci.yml?query=event%3Apush+branch%3Amain [ci-url]: https://github.com/oxc-project/oxc/actions/workflows/ci.yml?query=event%3Apush+branch%3Amain
[npm-badge]: https://img.shields.io/npm/v/oxlint/latest?color=brightgreen [npm-badge]: https://img.shields.io/npm/v/oxlint/latest?color=brightgreen
[npm-url]: https://www.npmjs.com/package/oxlint/v/latest [npm-url]: https://www.npmjs.com/package/oxlint/v/latest
[code-size-badge]: https://img.shields.io/github/languages/code-size/web-infra-dev/oxc [code-size-badge]: https://img.shields.io/github/languages/code-size/oxc-project/oxc
[code-size-url]: https://github.com/web-infra-dev/oxc [code-size-url]: https://github.com/oxc-project/oxc
[code-coverage-badge]: https://codecov.io/github/web-infra-dev/oxc/branch/main/graph/badge.svg [code-coverage-badge]: https://codecov.io/github/oxc-project/oxc/branch/main/graph/badge.svg
[code-coverage-url]: https://codecov.io/gh/web-infra-dev/oxc [code-coverage-url]: https://codecov.io/gh/oxc-project/oxc
[sponsors-badge]: https://img.shields.io/github/sponsors/Boshen [sponsors-badge]: https://img.shields.io/github/sponsors/Boshen
[sponsors-url]: https://github.com/sponsors/Boshen [sponsors-url]: https://github.com/sponsors/Boshen
[playground-badge]: https://img.shields.io/badge/Playground-blue?color=9BE4E0 [playground-badge]: https://img.shields.io/badge/Playground-blue?color=9BE4E0
[playground-url]: https://web-infra-dev.github.io/oxc/playground [playground-url]: https://oxc-project.github.io/oxc/playground
</div> </div>

View file

@ -41,7 +41,7 @@ if (binPath) {
} else { } else {
console.error( console.error(
"The oxlint CLI package doesn't ship with prebuilt binaries for your platform yet. " + "The oxlint CLI package doesn't ship with prebuilt binaries for your platform yet. " +
"You can create an issue at https://github.com/web-infra-dev/oxc/issues for support." "You can create an issue at https://github.com/oxc-project/oxc/issues for support."
); );
process.exitCode = 1; process.exitCode = 1;
} }

View file

@ -5,11 +5,11 @@
"keywords": [], "keywords": [],
"author": "Boshen and oxc contributors", "author": "Boshen and oxc contributors",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/web-infra-dev/oxc", "homepage": "https://github.com/oxc-project/oxc",
"bugs": "https://github.com/web-infra-dev/oxc/issues", "bugs": "https://github.com/oxc-project/oxc/issues",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/web-infra-dev/oxc", "url": "https://github.com/oxc-project/oxc",
"directory": "npm/oxlint" "directory": "npm/oxlint"
}, },
"bin": "bin/oxlint", "bin": "bin/oxlint",

View file

@ -1,3 +1,3 @@
# Benchmark # Benchmark
See https://codspeed.io/web-infra-dev/oxc See https://codspeed.io/oxc-project/oxc

View file

@ -156,7 +156,7 @@ impl Case for Test262Case {
fn skip_test_case(&self) -> bool { fn skip_test_case(&self) -> bool {
[ [
// Regex parser is required. See https://github.com/web-infra-dev/oxc/issues/385#issuecomment-1755566240 // Regex parser is required. See https://github.com/oxc-project/oxc/issues/385#issuecomment-1755566240
"regexp-v-flag", "regexp-v-flag",
"regexp-unicode-property-escapes", "regexp-unicode-property-escapes",
// Stage 3 `https://github.com/tc39/proposal-json-modules` // Stage 3 `https://github.com/tc39/proposal-json-modules`

View file

@ -6,7 +6,7 @@
"scripts": { "scripts": {
"dev": "pnpm run wasm-dev && concurrently 'vite' 'cd .. && cargo watch --workdir website -s \"pnpm run wasm-dev\"'", "dev": "pnpm run wasm-dev && concurrently 'vite' 'cd .. && cargo watch --workdir website -s \"pnpm run wasm-dev\"'",
"wasm-dev": "wasm-pack build --out-dir ../../npm/wasm-web --target web --dev --scope oxc ../crates/oxc_wasm", "wasm-dev": "wasm-pack build --out-dir ../../npm/wasm-web --target web --dev --scope oxc ../crates/oxc_wasm",
"build": "pnpm run wasm-build && vite build --base=https://web-infra-dev.github.io/oxc/", "build": "pnpm run wasm-build && vite build --base=https://oxc-project.github.io/oxc/",
"wasm-build": "wasm-pack build --out-dir ../../npm/wasm-web --target web --release --scope oxc ../crates/oxc_wasm" "wasm-build": "wasm-pack build --out-dir ../../npm/wasm-web --target web --release --scope oxc ../crates/oxc_wasm"
}, },
"dependencies": { "dependencies": {