Skip to content

Commit

Permalink
Rename master -> main across docs and CI config (#594)
Browse files Browse the repository at this point in the history
  • Loading branch information
alangpierce committed Jan 31, 2021
1 parent f1b87da commit 23e5caa
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Expand Up @@ -3,7 +3,7 @@ name: "All tests"
on:
push:
branches:
- master
- main
pull_request:

jobs:
Expand Down
12 changes: 6 additions & 6 deletions README.md
Expand Up @@ -40,7 +40,7 @@ TypeScript 24.18 seconds 14937 lines per second
Babel 27.22 seconds 13270 lines per second
```
Details: Measured on January 2021. Tools run in single-threaded mode without warm-up. See the
[benchmark code](https://github.com/alangpierce/sucrase/blob/master/benchmark/benchmark.ts)
[benchmark code](https://github.com/alangpierce/sucrase/blob/main/benchmark/benchmark.ts)
for methodology and caveats.

## Transforms
Expand All @@ -49,7 +49,7 @@ The main configuration option in Sucrase is an array of transform names. These
transforms are available:
* **jsx**: Transforms JSX syntax to `React.createElement`, e.g. `<div a={b} />`
becomes `React.createElement('div', {a: b})`. Behaves like Babel 7's
[React preset](https://github.com/babel/babel/tree/master/packages/babel-preset-react),
[React preset](https://github.com/babel/babel/tree/main/packages/babel-preset-react),
including adding `createReactClass` display names and JSX context information.
* **typescript**: Compiles TypeScript code to JavaScript, removing type
annotations and handling features like enums. Does not check types. Sucrase
Expand Down Expand Up @@ -119,9 +119,9 @@ yarn add --dev sucrase # Or npm install --save-dev sucrase
```

Often, you'll want to use one of the build tool integrations:
[Webpack](https://github.com/alangpierce/sucrase/tree/master/integrations/webpack-loader),
[Gulp](https://github.com/alangpierce/sucrase/tree/master/integrations/gulp-plugin),
[Jest](https://github.com/alangpierce/sucrase/tree/master/integrations/jest-plugin),
[Webpack](https://github.com/alangpierce/sucrase/tree/main/integrations/webpack-loader),
[Gulp](https://github.com/alangpierce/sucrase/tree/main/integrations/gulp-plugin),
[Jest](https://github.com/alangpierce/sucrase/tree/main/integrations/jest-plugin),
[Rollup](https://github.com/rollup/plugins/tree/master/packages/sucrase),
[Broccoli](https://github.com/stefanpenner/broccoli-sucrase).

Expand Down Expand Up @@ -228,7 +228,7 @@ to learn how to get started.
## License and attribution

Sucrase is MIT-licensed. A large part of Sucrase is based on a fork of the
[Babel parser](https://github.com/babel/babel/tree/master/packages/babel-parser),
[Babel parser](https://github.com/babel/babel/tree/main/packages/babel-parser),
which is also MIT-licensed.

## Why the name?
Expand Down
6 changes: 3 additions & 3 deletions benchmark/compare-performance.ts
Expand Up @@ -33,10 +33,10 @@ state at the end, but prefer using it while in a clean git state and
double-check the git state after running.
`);
const branchRef = await getBranchRef();
let baseRef = "origin/master";
if (branchRef === "master") {
let baseRef = "origin/main";
if (branchRef === "main") {
// If this is a default branch build, compare with the previous commit.
baseRef = "origin/master~1";
baseRef = "origin/main~1";
}
console.log(`Branch ref: ${branchRef}, base ref: ${baseRef}`);
try {
Expand Down
2 changes: 1 addition & 1 deletion integrations/gulp-plugin/package.json
Expand Up @@ -5,7 +5,7 @@
"author": "Alan Pierce <alangpierce@gmail.com>",
"license": "MIT",
"main": "dist/index.js",
"repository": "https://github.com/alangpierce/sucrase/tree/master/integrations/gulp-plugin",
"repository": "https://github.com/alangpierce/sucrase/tree/main/integrations/gulp-plugin",
"files": [
"dist"
],
Expand Down
2 changes: 1 addition & 1 deletion integrations/jest-plugin/package.json
Expand Up @@ -3,7 +3,7 @@
"version": "2.0.0",
"description": "Jest plugin for Sucrase",
"main": "dist/index.js",
"repository": "https://github.com/alangpierce/sucrase/tree/master/integrations/jest-plugin",
"repository": "https://github.com/alangpierce/sucrase/tree/main/integrations/jest-plugin",
"author": "Alan Pierce <alangpierce@gmail.com>",
"license": "MIT",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion integrations/webpack-loader/README.md
Expand Up @@ -8,7 +8,7 @@ This is a simple Webpack loader that makes it easy to use

**Note: Object rest/spread syntax (e.g. `{...a, b: c}`) requires Webpack 4. For
earlier Webpack versions, you can use
[webpack-object-rest-spread-plugin](https://github.com/alangpierce/sucrase/tree/master/integrations/webpack-object-rest-spread-plugin)
[webpack-object-rest-spread-plugin](https://github.com/alangpierce/sucrase/tree/main/integrations/webpack-object-rest-spread-plugin)
alongside this loader.**

## Usage
Expand Down
2 changes: 1 addition & 1 deletion integrations/webpack-loader/package.json
Expand Up @@ -3,7 +3,7 @@
"version": "2.0.0",
"description": "Webpack loader for Sucrase",
"main": "dist/index.js",
"repository": "https://github.com/alangpierce/sucrase/tree/master/integrations/webpack-loader",
"repository": "https://github.com/alangpierce/sucrase/tree/main/integrations/webpack-loader",
"author": "Alan Pierce <alangpierce@gmail.com>",
"license": "MIT",
"peerDependencies": {
Expand Down
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.1",
"description": "Webpack plugin to enable object rest/spread syntax",
"main": "dist/index.js",
"repository": "https://github.com/alangpierce/sucrase/tree/master/integrations/webpack-object-rest-spread-plugin",
"repository": "https://github.com/alangpierce/sucrase/tree/main/integrations/webpack-object-rest-spread-plugin",
"author": "Alan Pierce <alangpierce@gmail.com>",
"license": "MIT",
"private": false,
Expand Down
2 changes: 1 addition & 1 deletion test262/run-test262.ts
Expand Up @@ -30,7 +30,7 @@ async function main(): Promise<void> {
await run(`git clone ${TEST262_REPO_URL} ${TEST262_DIR}`);
}

// Force a specific revision so we don't get a breakage from changes to the master branch.
// Force a specific revision so we don't get a breakage from changes to the main branch.
const originalCwd = process.cwd();
try {
process.chdir(TEST262_DIR);
Expand Down

0 comments on commit 23e5caa

Please sign in to comment.