Repository navigation
test(aio): fix running docs examples against local builds #18520
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,12 +41,9 @@ const ANGULAR_PACKAGES = [ | |
| 'platform-browser-dynamic', | ||
| 'platform-server', | ||
| 'router', | ||
| 'tsc-wrapped', | ||
| 'upgrade', | ||
| ]; | ||
| const ANGULAR_TOOLS_PACKAGES_PATH = path.resolve(ANGULAR_DIST_PATH, 'tools', '@angular'); | ||
| const ANGULAR_TOOLS_PACKAGES = [ | ||
| 'tsc-wrapped' | ||
| ]; | ||
|
|
||
| const EXAMPLE_CONFIG_FILENAME = 'example-config.json'; | ||
|
|
||
|
|
@@ -63,7 +60,6 @@ class ExampleBoilerPlate { | |
| // Replace the Angular packages with those from the dist folder, if necessary | ||
| if (useLocal) { | ||
| ANGULAR_PACKAGES.forEach(packageName => this.overridePackage(ANGULAR_PACKAGES_PATH, packageName)); | ||
| ANGULAR_TOOLS_PACKAGES.forEach(packageName => this.overridePackage(ANGULAR_TOOLS_PACKAGES_PATH, packageName)); | ||
| } | ||
|
|
||
| // Get all the examples folders, indicated by those that contain a `example-config.json` file | ||
|
|
@@ -111,7 +107,7 @@ class ExampleBoilerPlate { | |
| const sourceFolder = path.resolve(basePath, packageName); | ||
| const destinationFolder = path.resolve(SHARED_NODE_MODULES_PATH, '@angular', packageName); | ||
| shelljs.rm('-rf', destinationFolder); | ||
| fs.ensureSymlinkSync(sourceFolder, destinationFolder); | ||
| fs.copySync(sourceFolder, destinationFolder); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why this change?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can't try on Windows, but it didn't work on Ubuntu either. I was getting errors from files in
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe we could get by, by copying the symlinks (instead of re-symlinking) from
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, that wouldn't actually work, because we symlink to the
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So, I confirmed the symlinking fails on Travis too, so it was not a local issue in my Ubuntu VM. |
||
| } | ||
|
|
||
| getFoldersContaining(basePath, filename, ignore) { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,7 +39,7 @@ function runE2e() { | |
| if (argv.setup) { | ||
| // Run setup. | ||
| console.log('runE2e: copy boilerplate'); | ||
| const spawnInfo = spawnExt('yarn', ['boilerplate:add', argv.local ? '-- --local': ''], { cwd: AIO_PATH }); | ||
| const spawnInfo = spawnExt('yarn', ['boilerplate:add', '--', argv.local ? '--local' : ''], { cwd: AIO_PATH }); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good spot. |
||
| promise = spawnInfo.promise | ||
| .then(() => { | ||
| console.log('runE2e: update webdriver'); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did someone move the tsc-wrapped folder?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahah!
619e625