Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
25 changes: 25 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash

set -eo pipefail

rm -rf dist

yarn ngc -p modules/common/tsconfig.lib.json
cp modules/common/package.json dist/packages/common/package.json
cp modules/common/README.md dist/packages/common/README.md

yarn ngc -p modules/express-engine/tsconfig.fortokens.json
cp modules/express-engine/package.json dist/packages/express-engine/package.json
cp modules/express-engine/README.md dist/packages/express-engine/README.md

yarn ngc -p modules/aspnetcore-engine/tsconfig.fortokens.json
cp modules/aspnetcore-engine/package.json dist/packages/aspnetcore-engine/package.json
cp modules/aspnetcore-engine/README.md dist/packages/aspnetcore-engine/README.md

yarn ngc -p modules/hapi-engine/tsconfig.fortokens.json
cp modules/hapi-engine/package.json dist/packages/hapi-engine/package.json
cp modules/hapi-engine/README.md dist/packages/hapi-engine/README.md

yarn ngc -p modules/module-map-ngfactory-loader/tsconfig.lib.json
cp modules/module-map-ngfactory-loader/package.json dist/packages/module-map-ngfactory-loader/package.json
cp modules/module-map-ngfactory-loader/README.md dist/packages/module-map-ngfactory-loader/README.md
1 change: 0 additions & 1 deletion modules/aspnetcore-engine/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
export { ngAspnetCoreEngine } from './src/main';
export { createTransferScript } from './src/create-transfer-script';

export { REQUEST, ORIGIN_URL } from './src/tokens';

export { IEngineOptions } from './src/interfaces/engine-options';
export { IRequestParams } from './src/interfaces/request-params';
Expand Down
2 changes: 1 addition & 1 deletion modules/aspnetcore-engine/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { platformDynamicServer } from '@angular/platform-server';
import { DOCUMENT } from '@angular/common';
import { ResourceLoader } from '@angular/compiler';

import { REQUEST, ORIGIN_URL } from './tokens';
import { REQUEST, ORIGIN_URL } from '../tokens';
import { FileLoader } from './file-loader';
import { IEngineOptions } from './interfaces/engine-options';
import { IEngineRenderResult } from './interfaces/engine-render-result';
Expand Down
7 changes: 7 additions & 0 deletions modules/aspnetcore-engine/tsconfig.fortokens.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.lib.json",
"files": [
"./index.ts",
"./tokens.ts"
]
}
2 changes: 1 addition & 1 deletion modules/common/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
* found in the LICENSE file at https://angular.io/license
*/
export { TransferHttpCacheModule } from './src/transfer_http';
export { StateTransferInitializerModule } from './src/state-transfer-initilizer/module';
// export { StateTransferInitializerModule } from './src/state-transfer-initilizer/module';
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't export this into v5 since it actually fails to compile and hasn't been validated.

1 change: 0 additions & 1 deletion modules/express-engine/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@
* found in the LICENSE file at https://angular.io/license
*/
export { ngExpressEngine, NgSetupOptions, RenderOptions } from './src/main';
export { RESPONSE, REQUEST } from './src/tokens';
2 changes: 1 addition & 1 deletion modules/express-engine/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
} from '@angular/platform-server';

import { FileLoader } from './file-loader';
import { REQUEST, RESPONSE } from './tokens';
import { REQUEST, RESPONSE } from '../tokens';

/**
* These are the allowed options for the engine
Expand Down
7 changes: 7 additions & 0 deletions modules/express-engine/tsconfig.fortokens.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.lib.json",
"files": [
"./index.ts",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need the ./ here, or elsewhere

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was like that in the other tsconfigs so being consistent

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok then that's fine, didn't realize it was like that

"./tokens.ts"
]
}
1 change: 0 additions & 1 deletion modules/hapi-engine/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@
* found in the LICENSE file at https://angular.io/license
*/
export { ngHapiEngine, NgSetupOptions, RenderOptions } from './src/main';
export { RESPONSE, REQUEST } from './src/tokens';
2 changes: 1 addition & 1 deletion modules/hapi-engine/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
} from '@angular/platform-server';

import { FileLoader } from './file-loader';
import { REQUEST, RESPONSE } from './tokens';
import { REQUEST, RESPONSE } from '../tokens';

/**
* These are the allowed options for the engine
Expand Down
7 changes: 7 additions & 0 deletions modules/hapi-engine/tsconfig.fortokens.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.lib.json",
"files": [
"./index.ts",
"./tokens.ts"
]
}
12 changes: 6 additions & 6 deletions publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

set -x

npm run build
./build.sh

npm publish --access public dist/releases/common
npm publish --access public dist/releases/express-engine
npm publish --access public dist/releases/aspnetcore-engine
npm publish --access public dist/releases/module-map-ngfactory-loader
npm publish --access public dist/releases/hapi-engine
npm publish --access public dist/packages/common
npm publish --access public dist/packages/express-engine
npm publish --access public dist/packages/aspnetcore-engine
npm publish --access public dist/packages/module-map-ngfactory-loader
npm publish --access public dist/packages/hapi-engine