Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull in v2 work #2218

Closed
wants to merge 49 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
8d17bdd
Pull in v2 work
padmaia Oct 25, 2018
c06890f
WIP Types (#2223)
devongovett Oct 30, 2018
a7f71d3
Refactor TransformerRunner
devongovett Oct 31, 2018
dbda423
Fixing types
devongovett Oct 31, 2018
f7b04c1
More refactoring
devongovett Oct 31, 2018
84178be
More refactorings
devongovett Nov 1, 2018
f9e9238
Default environment
devongovett Nov 1, 2018
a022f0b
Config + Packaging + Optimizing
devongovett Nov 1, 2018
b06a7c6
Merge pull request #2233 from parcel-bundler/refactor-transformer
padmaia Nov 1, 2018
e398229
Load remaining plugin types
devongovett Nov 1, 2018
3c2f4f9
Transform and Package on workers (#2234)
fathyb Nov 2, 2018
f3ddee1
move bundling logic into default bundler plugin (#2235)
padmaia Nov 2, 2018
7887478
Add ResolverRunner and default Resolver plugin (#2228)
fathyb Nov 2, 2018
4f65ef7
Move node builtins into default resolver
devongovett Nov 2, 2018
07ee661
Clean up bundler
devongovett Nov 2, 2018
22f779e
Fix some eslint and type errors
devongovett Nov 2, 2018
1785104
Simple working JS packager
devongovett Nov 2, 2018
50bc06b
Merge pull request #2239 from parcel-bundler/working-packager
padmaia Nov 2, 2018
6ace1fb
Quick fix
padmaia Nov 2, 2018
b31396b
Merge branch 'v2-work-so-far' of github.com:parcel-bundler/parcel int…
devongovett Nov 3, 2018
03b4ad1
Fix flow re-export for plugins package
devongovett Nov 3, 2018
a466064
Graph building improvements (#2243)
padmaia Nov 4, 2018
1e31ebb
Merge branch 'v2-work-so-far' of github.com:parcel-bundler/parcel int…
devongovett Nov 4, 2018
aaeb705
Add connected file support to asset graph
devongovett Nov 4, 2018
e6acf5f
Multi-target support
devongovett Nov 5, 2018
fb121c2
Rename some graph methods to be more consistent
devongovett Nov 6, 2018
73fc3f2
Move file invalidation to AssetGraph
devongovett Nov 6, 2018
68ee091
Merge pull request #2247 from parcel-bundler/connected-files
padmaia Nov 6, 2018
07d5cf0
Merge branch 'v2-work-so-far' of github.com:parcel-bundler/parcel int…
devongovett Nov 6, 2018
7fc3f5c
remove logic from indexes (#2259)
padmaia Nov 8, 2018
88ad3d6
Implement transformer request nodes in the graph
devongovett Nov 9, 2018
2ce7d7a
Merge branch 'v2-work-so-far' of github.com:parcel-bundler/parcel int…
devongovett Nov 9, 2018
13b380e
Update method names and comments
devongovett Nov 10, 2018
221bd45
Merge pull request #2270 from parcel-bundler/targets
padmaia Nov 12, 2018
ffc3a2a
Merge branch 'master' of github.com:parcel-bundler/parcel into v2-wor…
devongovett Nov 18, 2018
8dfb79b
Parcel 2: Asset methods (#2335)
devongovett Dec 2, 2018
14a5cd7
Parcel 2: Babel Transformer (#2350)
devongovett Dec 11, 2018
af6661b
Merge branch 'master' of github.com:parcel-bundler/parcel into v2-wor…
devongovett Dec 16, 2018
d683eeb
Parcel 2: BundleGraph and Default Bundler plugin (#2401)
devongovett Dec 16, 2018
16cf9ff
Track v2 progress (#2411)
padmaia Dec 20, 2018
7af2661
Parcel 2: Default bundle namer (#2424)
devongovett Dec 25, 2018
f43dd68
is-v2-ready-yet page source url correction (#2487)
abdullahtariq1171 Jan 1, 2019
574fa44
Parcel 2: Add CSS transformer (#2440)
padmaia Jan 3, 2019
edff682
Parcel 2: Get some JS integration tests passing (#2484)
devongovett Jan 7, 2019
b21ad91
Update test results
devongovett Jan 7, 2019
ee00c3e
Parcel 2: Serializer for complex object types (#2522)
devongovett Jan 12, 2019
a98f27d
Parcel 2: Runtime plugins and bundle loader support (#2534)
devongovett Jan 22, 2019
f622c53
Parcel 2: @parcel/register (#2399)
DeMoorJasper Jan 26, 2019
de9471e
Parcel 2: ConfigResolver (#2568)
devongovett Feb 11, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
# - the export statement
# in the same file

flow-typed

packages/*/*/test/integration/**
packages/*/*/test/mochareporters.json
packages/examples/simple/**

# Generated by the build
lib
Expand Down
16 changes: 1 addition & 15 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 8,
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"node": true,
"es6": true
},
"globals": {
"parcelRequire": true,
"define": true
}
"extends": "@parcel/eslint-config"
}
17 changes: 17 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[ignore]
.*/node_modules/@choojs/**/.*
.*/node_modules/config-chain/.*
.*/node_modules/graphviz/documentation.json
<PROJECT_ROOT>/packages/core/parcel-bundler/test/integration/.*
<PROJECT_ROOT>/.nyc_output/.*
.*/tmp/**/.*

[include]

[libs]

[lints]

[options]

[strict]
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package-lock.json
coverage
.nyc_output
.cache
.parcel-cache
dist
lib
.vscode/
Expand Down
14 changes: 7 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ It's important to us to give a good experience to new contributors, so anything

## Overview

* `yarn install` - install all dependencies
* `yarn build` - run src/ through [babel] into lib/
* `yarn test` - run all tests in repo
* `yarn format` - run [prettier] on all files
- `yarn install` - install all dependencies
- `yarn build` - run src/ through [babel] into lib/
- `yarn test` - run all tests in repo
- `yarn format` - run [prettier] on all files

## Getting Started

Expand Down Expand Up @@ -69,11 +69,11 @@ While contributing to parcel, you may need to run a local version of parcel and

To do this, you have multiple options:

* If you had **parcel** installed globally, you can run `yarn global remove parcel` and then `cd` to your own copy of parcel and run `yarn link`. This way, the global parcel in your PATH would reference to the local copy. To make sure you have it installed globally, just run `parcel --version`.
- If you had **parcel** installed globally, you can run `yarn global remove parcel` and then `cd` to your own copy of parcel and run `yarn link`. This way, the global parcel in your PATH would reference to the local copy. To make sure you have it installed globally, just run `parcel --version`.

* Another option would be to run `yarn link` in your own copy of parcel directory and then go to the directory, _which you want to test your copy of parcel in_, and run `yarn link parcel-bundler`, so that locally your copy of parcel is the one used in its npm scripts.
- Another option would be to run `yarn link` in your own copy of parcel directory and then go to the directory, _which you want to test your copy of parcel in_, and run `yarn link parcel-bundler`, so that locally your copy of parcel is the one used in its npm scripts.

* Another way, which we highly recommend if you plan to switch between different parcel sources often, is to create some terminal aliases. This way you can have different aliases for each of the versions of parcel you wish to maintain on your machine. For example, you can make an alias called `parcelfork` pointing to your fork of parcel for development, and then `parceldev` pointing to a clone of the parcel repo for experimenting with the latest changes, and then still keep the original `parcel` command pointing to the npm installed stable version. To do this, add some aliases to your terminal’s startup file (usually .bashrc) in the format `alias [name]=“node [path_to_new_parcel_bin_file]”` for each of the sources you want to use. For example: `alias parcelfork=“node ~/my/path/to/fork/bin/cli.js”`
- Another way, which we highly recommend if you plan to switch between different parcel sources often, is to create some terminal aliases. This way you can have different aliases for each of the versions of parcel you wish to maintain on your machine. For example, you can make an alias called `parcelfork` pointing to your fork of parcel for development, and then `parceldev` pointing to a clone of the parcel repo for experimenting with the latest changes, and then still keep the original `parcel` command pointing to the npm installed stable version. To do this, add some aliases to your terminal’s startup file (usually .bashrc) in the format `alias [name]=“node [path_to_new_parcel_bin_file]”` for each of the sources you want to use. For example: `alias parcelfork=“node ~/my/path/to/fork/bin/cli.js”`

For more information on this topic, read [this issue on parcel repository](https://github.com/parcel-bundler/parcel/issues/182).

Expand Down
106 changes: 54 additions & 52 deletions azure-pipelines-template.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,57 @@
jobs:
- job: ${{ parameters.name }}
pool:
vmImage: ${{ parameters.vmImage }}
strategy:
matrix:
node_6_x:
node_version: 6.x
node_8_x:
node_version: 8.x
node_10_x:
node_version: 10.x
maxParallel: 3
steps:
- task: NodeTool@0
inputs:
versionSpec: $(node_version)
displayName: 'Install Node.js'
- job: ${{ parameters.name }}
pool:
vmImage: ${{ parameters.vmImage }}
strategy:
matrix:
node_8_x:
node_version: 8.x
node_10_x:
node_version: 10.x
maxParallel: 3
steps:
- task: NodeTool@0
inputs:
versionSpec: $(node_version)
displayName: 'Install Node.js'

# Install Rust
- ${{ if ne(parameters.name, 'Windows') }}:
- script: |
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
export PATH="$HOME/.cargo/bin:$PATH"
echo "##vso[task.setvariable variable=PATH]$PATH"
rustc -Vv
cargo -V
displayName: Install Rust
- ${{ if eq(parameters.name, 'Windows') }}:
- script: |
curl -sSf -o rustup-init.exe https://win.rustup.rs
rustup-init.exe -y --default-toolchain nightly
set PATH=%PATH%;%USERPROFILE%\.cargo\bin
echo "##vso[task.setvariable variable=PATH]%PATH%;%USERPROFILE%\.cargo\bin"
rustc -Vv
cargo -V
displayName: Install Rust
# Install Rust
- ${{ if ne(parameters.name, 'Windows') }}:
- script: |
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
export PATH="$HOME/.cargo/bin:$PATH"
echo "##vso[task.setvariable variable=PATH]$PATH"
rustc -Vv
cargo -V
displayName: Install Rust
- ${{ if eq(parameters.name, 'Windows') }}:
- script: |
curl -sSf -o rustup-init.exe https://win.rustup.rs
rustup-init.exe -y --default-toolchain nightly
set PATH=%PATH%;%USERPROFILE%\.cargo\bin
echo "##vso[task.setvariable variable=PATH]%PATH%;%USERPROFILE%\.cargo\bin"
rustc -Vv
cargo -V
displayName: Install Rust

- script: yarn
displayName: 'Install dependencies'
- script: yarn test-ci
displayName: 'Run tests'
- script: yarn lint
displayName: 'Lint'
- task: PublishTestResults@2
displayName: 'Publish Test Results'
inputs:
testResultsFiles: '**/junit-*.xml'
testRunTitle: TestRun ${{ parameters.name }} $(node_version)
- task: PublishCodeCoverageResults@1
displayName: 'Publish code coverage results'
inputs:
codeCoverageTool: 'cobertura'
summaryFileLocation: '**/coverage/cobertura-coverage.xml'
reportDirectory: '**/parcel-bundler/coverage'
- script: yarn
displayName: 'Install dependencies'
- script: yarn test-ci
displayName: 'Run tests'
- script: yarn flow
displayName: 'Type check with Flow'
- script: yarn lint
displayName: 'Lint'
- task: PublishTestResults@2
displayName: 'Publish Test Results'
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/junit-*.xml'
testRunTitle: TestRun ${{ parameters.name }} $(node_version)
- task: PublishCodeCoverageResults@1
displayName: 'Publish code coverage results'
condition: succeededOrFailed()
inputs:
codeCoverageTool: 'cobertura'
summaryFileLocation: '**/coverage/cobertura-coverage.xml'
reportDirectory: '**/parcel-bundler/coverage'
8 changes: 8 additions & 0 deletions flow-typed/npm/clone_v2.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// flow-typed signature: e65d25838d862100b2564dec170532b3
// flow-typed version: da30fe6876/clone_v2.x.x/flow_>=v0.25.x

// @flow

declare module 'clone' {
declare module.exports: <T>(object: T) => T;
}
Loading