This repository has been archived by the owner on Mar 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from amireh/pitch-loaders
Pitching loaders and more complete loader support
- Loading branch information
Showing
84 changed files
with
2,521 additions
and
430 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
*.gnumeric | ||
/node_modules | ||
/.happypack | ||
node_modules | ||
.happypack | ||
/examples/**/dist | ||
/tmp | ||
!/tmp/.gitkeep | ||
/npm-debug.log | ||
/npm-debug.log | ||
/coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
instrumentation: | ||
root: lib | ||
excludes: | ||
- "*.test.js" | ||
- "HappyTestUtils.js" | ||
- "__tests__/fixtures/**/*" | ||
extensions: | ||
- .js | ||
reporting: | ||
reports: | ||
- html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v5.9.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
language: node_js | ||
env: | ||
- HAPPY_TEST_TIMEOUT=60000 | ||
node_js: | ||
- "stable" | ||
- "iojs" | ||
- "4.1" | ||
- "4.0" | ||
- "0.12" | ||
- "0.11" | ||
- "0.10" | ||
# - "4.0" | ||
# - "0.12" | ||
# - "0.11" | ||
# - "0.10" | ||
install: npm install --ignore-scripts | ||
script: npm run prepublish | ||
script: | ||
- npm run lint | ||
- npm run test | ||
- npm run test-examples | ||
after_success: | ||
- npm run coverage_ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
- [ ] ~~stop serializing options and instead accept webpack config file path and populate fake loader context with that so that worker loaders get access to external options~~ | ||
- [x] pitching loader applier | ||
- [ ] pass loader options found on the compiler by the loader name to the loader, like `options.transform` or `options.sassLoader` | ||
- [ ] accept modified `resourcePath` from pitching phase and re-read the source | ||
- [ ] delay reading the source file until the very point where we need it; pitch | ||
- [ ] replay loader RPCs for items cached by loaders like `tslint-loader` where the output is actually RPCs like `this.emitWarning` and `this.emitError` | ||
- [ ] better coverage for background loader failures | ||
- [ ] |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
const B = require('./b'); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "happypack-examples__babel-loader", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"author": "", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"babel-core": "^6.3.26", | ||
"babel-loader": "^6.2.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
var path = require('path'); | ||
|
||
module.exports = { | ||
entry: path.resolve(__dirname, 'lib/a.js'), | ||
|
||
output: { | ||
path: path.resolve(__dirname, 'dist'), | ||
filename: '[name].raw.js' | ||
}, | ||
|
||
module: { | ||
loaders: [ | ||
{ | ||
test: /\.js$/, | ||
include: [ path.resolve(__dirname, 'lib') ], | ||
loader: 'babel' | ||
} | ||
] | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// index.js | ||
require('./b'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// other.js | ||
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = function(s) { | ||
return s; | ||
}; | ||
|
||
module.exports.pitch = function(x, o) { | ||
console.log('[a] in pitch!!\n [remaining] => %s\n [preceding] => %s', x, o) | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = function(s) { | ||
return s; | ||
}; | ||
|
||
module.exports.pitch = function(x, o) { | ||
console.log('[b] in pitch!!\n [remaining] => %s\n [preceding] => %s', x, o) | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = function(s) { | ||
return s; | ||
}; | ||
|
||
module.exports.pitch = function(x, o) { | ||
console.log('[c] in pitch!!\n [remaining] => %s\n [preceding] => %s', x, o) | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
var path = require('path'); | ||
|
||
module.exports = { | ||
entry: path.resolve(__dirname, 'lib/index.js'), | ||
|
||
output: { | ||
path: path.resolve(__dirname, 'dist'), | ||
filename: '[name].js' | ||
}, | ||
|
||
module: { | ||
loaders: [ | ||
{ | ||
test: /\.js$/, | ||
include: [ path.resolve(__dirname, 'lib') ], | ||
loaders: [ | ||
path.resolve(__dirname, 'loader-c.js'), | ||
path.resolve(__dirname, 'loader-b.js'), | ||
path.resolve(__dirname, 'loader-a.js'), | ||
], | ||
}, | ||
] | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.