Skip to content

Commit

Permalink
Merge v2 into parcel-query-graph-explorer
Browse files Browse the repository at this point in the history
* upstream/v2: (128 commits)
  [webextension] Add support for `chrome_style` (#8867)
  Switch to SWC minifier by default (#8860)
  Use BitSet for bundler intersections (#8862)
  best key logic truncating package names (#8865)
  Add support for loadConfig to resolver plugins (#8847)
  Missing edge for multiple targets (#8854)
  Split large runtime manifest into separate bundles (#8837)
  Improvements to new resolver (#8844)
  Fix published files for resolver
  New resolver implementation in Rust (#8807)
  Update yarn.lock (#8843)
  Bump napi-rs to latest (#8838)
  Support .proxyrc.cjs  (#8833)
  Sort global deps before injecting imports (#8818)
  Sort CSS module exports (#8817)
  fix: add extra information to unique bundles (#8784)
  Don't blow up HMR when <link />s don't have hrefs (#8800)
  v2.8.3
  Changelog for v2.8.3
  Address bug by updating an asset reference and merge conditions (#8762)
  ...
  • Loading branch information
lettertwo committed Mar 6, 2023
2 parents 86ca921 + 19fe7ff commit 5d56293
Show file tree
Hide file tree
Showing 709 changed files with 23,753 additions and 7,706 deletions.
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ dist
/test/dist
/test/input
*.min.js
packages/optimizers/image/native.js
packages/transformers/js/native.js
packages/utils/fs-search/index.js
packages/utils/hash/index.js
packages/utils/node-resolver-core/index.js

coverage
node_modules
Expand Down
3 changes: 2 additions & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<PROJECT_ROOT>/packages/core/integration-tests/test/input/**
<PROJECT_ROOT>/packages/core/integration-tests/test/integration/babel-strip-flow-types/**
<PROJECT_ROOT>/packages/core/integration-tests/test/integration/diagnostic-sourcemap/**
<PROJECT_ROOT>/packages/utils/node-resolver-core/test/fixture/node_modules/json-error/package.json

[untyped]
.*/node_modules/graphql/error/GraphQLError.js.flow
Expand Down Expand Up @@ -36,4 +37,4 @@ untyped-import
untyped-type-import

[version]
0.181.0
0.184.0
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ on: pull_request

name: Continuous Integration

permissions:
contents: read

jobs:
lint:
name: Lint
Expand Down Expand Up @@ -91,12 +94,13 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: Integration tests (${{matrix.os}}, node ${{matrix.node}})
path: '**/junit-*.xml'
path: "**/junit-*.xml"

test_report:
name: Test report
runs-on: ubuntu-latest
needs: [unit_tests, integration_tests]
needs:
[unit_tests, integration_tests]
if: always()
steps:
- name: Create test report
Expand Down
18 changes: 7 additions & 11 deletions .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
permissions:
contents: read # for actions/checkout
jobs:
build:
strategy:
Expand Down Expand Up @@ -35,9 +37,9 @@ jobs:

build-linux-gnu-x64:
name: linux-gnu-x64
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
container:
image: docker.io/centos/nodejs-12-centos7
image: docker.io/adrienv1520/nodejs-16-centos7
steps:
- uses: actions/checkout@v1
- name: Install yarn
Expand Down Expand Up @@ -77,7 +79,7 @@ jobs:
strip: aarch64-linux-gnu-strip
cflags: ''
name: ${{ matrix.target }}
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Install Rust
Expand Down Expand Up @@ -127,7 +129,7 @@ jobs:
strip: aarch64-linux-musl-strip
cflags: ''
name: ${{ matrix.target }}
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
container:
image: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
credentials:
Expand All @@ -144,12 +146,6 @@ jobs:
profile: minimal
override: true
target: ${{ matrix.target }}
- name: Install cross compile toolchains
if: ${{ matrix.target == 'aarch64-unknown-linux-musl' }}
run: |
curl -O http://musl.cc/aarch64-linux-musl-cross.tgz
tar xzf aarch64-linux-musl-cross.tgz
cp -R aarch64-linux-musl-cross/* /usr
- uses: bahmutov/[email protected]
- name: Build native packages
run: yarn build-native-release
Expand Down Expand Up @@ -200,7 +196,7 @@ jobs:
run: ls -l packages/*/*/*.node

build-and-release:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
name: Build and release nightly
needs:
- build
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ on:
issue_comment:
types: [created]

permissions: {}
jobs:
stale:
permissions:
issues: write # to comment on issues
pull-requests: write # to comment on pull requests

runs-on: ubuntu-latest
steps:
- uses: DeMoorJasper/stale@master
Expand Down
18 changes: 7 additions & 11 deletions .github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: read # for actions/checkout
jobs:
build:
strategy:
Expand Down Expand Up @@ -35,9 +37,9 @@ jobs:

build-linux-gnu-x64:
name: linux-gnu-x64
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
container:
image: docker.io/centos/nodejs-12-centos7
image: docker.io/adrienv1520/nodejs-16-centos7
steps:
- uses: actions/checkout@v1
- name: Install yarn
Expand Down Expand Up @@ -77,7 +79,7 @@ jobs:
strip: aarch64-linux-gnu-strip
cflags: ''
name: ${{ matrix.target }}
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Install Rust
Expand Down Expand Up @@ -127,7 +129,7 @@ jobs:
strip: aarch64-linux-musl-strip
cflags: ''
name: ${{ matrix.target }}
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
container:
image: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
credentials:
Expand All @@ -144,12 +146,6 @@ jobs:
profile: minimal
override: true
target: ${{ matrix.target }}
- name: Install cross compile toolchains
if: ${{ matrix.target == 'aarch64-unknown-linux-musl' }}
run: |
curl -O http://musl.cc/aarch64-linux-musl-cross.tgz
tar xzf aarch64-linux-musl-cross.tgz
cp -R aarch64-linux-musl-cross/* /usr
- uses: bahmutov/[email protected]
- name: Build native packages
run: yarn build-native-release
Expand Down Expand Up @@ -200,7 +196,7 @@ jobs:
run: ls -l packages/*/*/*.node

build-and-release:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
name: Build and release the tagged version
needs:
- build
Expand Down
20 changes: 20 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"args": [
"--extensionDevelopmentPath=${workspaceFolder}/packages/utils/parcelforvscode"
],
"name": "Launch Parcel for VSCode Extension",
"outFiles": [
"${workspaceFolder}/packages/utils/parcelforvscode/out/**/*.js"
],
"preLaunchTask": "Watch VSCode Extension",
"request": "launch",
"type": "extensionHost"
}
]
}
58 changes: 58 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"version": "2.0.0",
"tasks": [
{
"path": "packages/utils/parcel-lsp/",
"label": "npm: watch - packages/utils/parcel-lsp",
"type": "npm",
"script": "watch",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
},
{
"path": "packages/utils/parcel-lsp-protocol/",
"label": "npm: watch - packages/utils/parcel-lsp-protocol",
"type": "npm",
"script": "watch",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
},
{
"path": "packages/utils/parcelforvscode/",
"label": "npm: watch - packages/utils/parcelforvscode",
"type": "npm",
"script": "watch",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Watch VSCode Extension",
"dependsOn": [
"npm: watch - packages/utils/parcel-lsp",
"npm: watch - packages/utils/parcel-lsp-protocol",
"npm: watch - packages/utils/parcelforvscode"
]
}
]
}
Loading

0 comments on commit 5d56293

Please sign in to comment.