Skip to content

Commit

Permalink
Merge pull request #39 from PacktPublishing/add-base-href
Browse files Browse the repository at this point in the history
Add base href to all projects (all NX projects)
  • Loading branch information
AhsanAyaz committed Mar 25, 2024
2 parents d855b83 + a238810 commit 7453e2a
Show file tree
Hide file tree
Showing 230 changed files with 21,198 additions and 16,292 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Deploy
on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- name: Use Node.js
uses: actions/setup-node@v4.0.2
with:
node-version: '18'
- name: Install dependencies
run: npm i
- name: Deploy
run: npm run deploy
3 changes: 1 addition & 2 deletions .github/workflows/main.yml → .github/workflows/sanity.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Build
name: Sanity
on:
push:
branches:
- main
pull_request:
types: [opened, reopened]
branches:
- main

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ speed-measure-plugin*.json
*.launch
.settings/
*.sublime-workspace
dist

# IDE - VSCode
.vscode/*
Expand Down
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,21 @@
{
"name": "Run replace toolbar test",
"request": "launch",
"runtimeArgs": [
"run",
"ng-cookbook-recipe:test",
"--watch",
"--verbose"
],
"runtimeExecutable": "nx",
"cwd": "${workspaceFolder}/codewithahsan",
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
}, {
"name": "Run add-base-href test",
"request": "launch",
"runtimeArgs": [
"run",
"ng-cookbook-recipe:test",
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Then from the project root, run the following:
npm install
```
This should install the dependencies of both the `start` and `final` monorepos.

## Serve Projects
Serve both the start and final projects, or one of them as follows:

Expand Down
5 changes: 1 addition & 4 deletions codewithahsan/e2e/fake-be-e2e/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["e2e/fake-be-e2e/**/*.{js,ts}"]
}
"outputs": ["{options.outputFile}"]
}
}
}
5 changes: 1 addition & 4 deletions codewithahsan/e2e/fake-be/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["e2e/fake-be/**/*.ts"]
}
"outputs": ["{options.outputFile}"]
},
"test": {
"executor": "@nx/jest:jest",
Expand Down

0 comments on commit 7453e2a

Please sign in to comment.