-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revised "overlooked asset" detection; tesselinclude hinting. Fixes gh…
- Loading branch information
Showing
12 changed files
with
125 additions
and
55 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
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
15 changes: 15 additions & 0 deletions
15
test/unit/fixtures/project-assets-without-include-eliminated-by-dep-graph/index.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,15 @@ | ||
var path = require('path'); | ||
var fs = require('fs'); | ||
var foo = require('./mock-foo'); | ||
var nested = require('./nested/another'); | ||
|
||
console.log(foo()); | ||
console.log(nested); | ||
|
||
fs.readFile(path.normalize('node_modules/foo/package.json'), 'utf8', function(error, contents) { | ||
if (error) { | ||
process.exit(1); | ||
} | ||
console.log(contents); | ||
process.exit(0); | ||
}); |
3 changes: 3 additions & 0 deletions
3
test/unit/fixtures/project-assets-without-include-eliminated-by-dep-graph/mock-foo.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,3 @@ | ||
module.exports = function() { | ||
return 'I was included'; | ||
}; |
1 change: 1 addition & 0 deletions
1
test/unit/fixtures/project-assets-without-include-eliminated-by-dep-graph/nested/another.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 @@ | ||
console.log('testing deploy'); |
1 change: 1 addition & 0 deletions
1
...es/project-assets-without-include-eliminated-by-dep-graph/node_modules/foo/.tesselinclude
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...fixtures/project-assets-without-include-eliminated-by-dep-graph/node_modules/foo/index.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
...ures/project-assets-without-include-eliminated-by-dep-graph/node_modules/foo/package.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
test/unit/fixtures/project-assets-without-include-eliminated-by-dep-graph/package.json
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,6 @@ | ||
{ | ||
"name": "project-assets-without-include-eliminated-by-dep-graph", | ||
"version": "0.0.1", | ||
"description": "project-assets-without-include-eliminated-by-dep-graph", | ||
"main": "index.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module.exports = function() { | ||
return '!!mock foo!! <-- this string must not appear in bundle.js'; | ||
return 'I was included'; | ||
}; |
4 changes: 2 additions & 2 deletions
4
test/unit/fixtures/project-assets-without-include/package.json
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,6 +1,6 @@ | ||
{ | ||
"name": "project-include-without-ignore", | ||
"name": "project-assets-without-include", | ||
"version": "0.0.1", | ||
"description": "project-include-without-ignore", | ||
"description": "project-assets-without-include", | ||
"main": "index.js" | ||
} |