-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from srleecode/7.1.2
chore: updated to 17.1.2
- Loading branch information
Showing
45 changed files
with
5,780 additions
and
5,336 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"singleQuote": true | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { execSync } from 'child_process'; | ||
import { rimrafSync } from 'rimraf'; | ||
|
||
const getNormalisedPath = (path) => | ||
path.replace(/\\/g, '/').replace(/\/\//g, '/'); | ||
|
||
const e2eProjects = [ | ||
'e2e-domain-cypress-domain-test', | ||
'e2e-domain-front-end-angular', | ||
'e2e-domain-grouping-folder', | ||
'e2e-domain-mock-file', | ||
]; | ||
|
||
const cleanUp = () => | ||
rimrafSync(getNormalisedPath(`${process.cwd()}/tmp/nx-e2e/proj`)); | ||
|
||
for (const project of e2eProjects) { | ||
console.log('Cleaning temp project'); | ||
cleanUp(); | ||
execSync(`npx nx e2e ${project} --skip-nx-cache`, { | ||
stdio: 'inherit', | ||
}); | ||
} | ||
console.log('Cleaning temp project'); | ||
cleanUp(); |
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
13 changes: 0 additions & 13 deletions
13
e2e/domain/front-end/angular/src/data-access-layer.spec.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,33 +1,19 @@ | ||
import { fileExists, readJson, runNxCommandAsync } from '@nx/plugin/testing'; | ||
import { | ||
checkFilesExist, | ||
fileExists, | ||
readJson, | ||
runNxCommandAsync, | ||
} from '@nx/plugin/testing'; | ||
|
||
describe('remove', () => { | ||
const groupingFolder = 'libs/ng-test-app/new-domain'; | ||
beforeAll(async () => { | ||
|
||
it('should remove domain grouping folder and project references', async () => { | ||
await runNxCommandAsync( | ||
`generate @srleecode/domain:removeGroupingFolder --groupingFolder ${groupingFolder}`, | ||
{ silenceError: true } | ||
{ silenceError: true }, | ||
).then((rsp) => console.log(rsp)); | ||
}, 240000); | ||
|
||
it('should remove domain grouping folder', async () => { | ||
expect(fileExists(`${groupingFolder}/util/src/index.ts`)).toBe(false); | ||
}); | ||
|
||
it('should remove project references', async () => { | ||
const eslint = readJson('.eslintrc.json'); | ||
const depConstraints = | ||
eslint.overrides[0].rules['@nx/enforce-module-boundaries'][1] | ||
.depConstraints; | ||
expect(JSON.stringify(depConstraints)).not.toMatch( | ||
'scope:ng-test-app-new-domain' | ||
); | ||
const tsConfig = readJson('tsconfig.base.json'); | ||
const tsConfigPaths = Object.keys(tsConfig.compilerOptions.paths); | ||
expect(tsConfigPaths).not.toContainEqual( | ||
'@proj/ng-test-app/new-domain/util' | ||
); | ||
expect(tsConfigPaths).not.toContainEqual( | ||
'@proj/ng-test-app/new-domain/util/testing' | ||
); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.