-
-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(custom-webpack): support TS for indexTransform (#689)
- Loading branch information
Showing
12 changed files
with
14,367 additions
and
11 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
5 changes: 5 additions & 0 deletions
5
packages/custom-webpack/examples/full-cycle-app/e2e/protractor-ci-itwcw.conf.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,5 @@ | ||
const config = require('./protractor-ci.conf').config; | ||
|
||
config.specs = ['./src/**/*.e2e-spec-itwcw.ts']; | ||
|
||
exports.config = config; |
14 changes: 14 additions & 0 deletions
14
packages/custom-webpack/examples/full-cycle-app/e2e/src/app.e2e-spec-itwcw.ts
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,14 @@ | ||
import { AppPage } from './app.po'; | ||
|
||
describe('workspace-project App', () => { | ||
let page: AppPage; | ||
|
||
beforeEach(() => { | ||
page = new AppPage(); | ||
}); | ||
|
||
it('should display paragraph coming from transform function', async () => { | ||
await page.navigateTo(); | ||
expect(await page.getParagraphText()).toEqual('Configuration: itwcw'); | ||
}); | ||
}); |
9 changes: 9 additions & 0 deletions
9
packages/custom-webpack/examples/full-cycle-app/index-html.transform.ts
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,9 @@ | ||
import { TargetOptions } from '@angular-builders/custom-webpack'; | ||
|
||
export default (targetOptions: TargetOptions, indexHtml: string) => { | ||
const i = indexHtml.indexOf('</body>'); | ||
const config = `<p>Configuration: ${targetOptions.configuration}</p>`; | ||
return `${indexHtml.slice(0, i)} | ||
${config} | ||
${indexHtml.slice(i)}`; | ||
}; |
Oops, something went wrong.