Skip to content
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

feat(ssr): adds SSR support #237

Merged
merged 9 commits into from
Jun 28, 2022
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
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Build and Test Project

on:
push:
Expand All @@ -12,21 +12,21 @@ jobs:
strategy:
matrix:
os: ['ubuntu-latest']
node: ['14','16', '18']
node: ['14']
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm ci --force
run: npm i --legacy-peer-deps
- name: Lint
run: npm run lint
- name: Format check
run: npm run format:check
- name: Build
run: npm run build --configuration=production
run: npm run build --configuration=production && npm run build:ngx-cookie-service-ssr --configuration=production
- name: Test
run: npm run test --configuration=ci
env:
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/npm_publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish to NPM
name: Publish ngx-cookie-service to NPM
on:
push:
### Publish on new tag release
Expand All @@ -11,13 +11,11 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 16
- name: Install Angular CLI
run: npm install -g @angular/cli @angular/core
node-version: 14
- name: Install NPM Dependencies
run: npm ci --force
run: npm i --legacy-peer-deps
- name: Build project
run: ng build --configuration production --project=ngx-cookie-service
run: npm run build:ngx-cookie-service-ssr --configuration=production
- name: Publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/npm_publish_ssr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish ngx-cookie-service-ssr to NPM
on:
push:
### Publish on new tag release
tags:
- v*
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 14
- name: Install NPM Dependencies
run: npm i --legacy-peer-deps
- name: Build project
run: npm run build --configuration production --project=ngx-cookie-service-ssr
- name: Publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: dist/ngx-cookie-service-ssr/package.json
access: public
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# 14.0.0
Copy link
Owner

Choose a reason for hiding this comment

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

nice!

## What's Changed
* feat(core): adds Angular 14 support by @pavankjadda in https://github.com/stevermeister/ngx-cookie-service/pull/234
* chore(cicd): updates github actions to force install deps by @pavankjadda in https://github.com/stevermeister/ngx-cookie-service/pull/236


# 13.2.1
### What's Changed
* chore(deps): bump ejs from 3.1.6 to 3.1.7 by @dependabot in https://github.com/stevermeister/ngx-cookie-service/pull/226
* chore(deps): bump async from 2.6.3 to 2.6.4 by @dependabot in https://github.com/stevermeister/ngx-cookie-service/pull/227

# 13.2.0

### New Features
Expand Down
31 changes: 31 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,37 @@
}
}
}
},
"ngx-cookie-service-ssr": {
"projectType": "library",
"root": "projects/ngx-cookie-service-ssr",
"sourceRoot": "projects/ngx-cookie-service-ssr/src",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"project": "projects/ngx-cookie-service-ssr/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/ngx-cookie-service-ssr/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "projects/ngx-cookie-service-ssr/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/ngx-cookie-service-ssr/src/test.ts",
"tsConfig": "projects/ngx-cookie-service-ssr/tsconfig.spec.json",
"karmaConfig": "projects/ngx-cookie-service-ssr/karma.conf.js"
}
}
}
}
},
"cli": {
Expand Down
Loading