chore(repo): update repo to use nx 12.3-beta.2 and latest @nrwl/nx-cloud

This commit is contained in:
vsavkin 2021-05-12 09:55:12 -04:00 committed by Victor Savkin
parent 7352fd0c1e
commit 3dadb304ad
5 changed files with 37 additions and 32 deletions

View File

@ -124,6 +124,9 @@ jobs:
- run: - run:
name: Run Unit Tests name: Run Unit Tests
command: npx nx affected --target=test --parallel --max-parallel=2 command: npx nx affected --target=test --parallel --max-parallel=2
- run:
name: Run Linting
command: npx nx affected --target=lint --parallel --max-parallel=4
- run: - run:
name: Run E2E Tests name: Run E2E Tests
command: npx nx affected --target=e2e command: npx nx affected --target=e2e
@ -156,6 +159,9 @@ jobs:
- run: - run:
name: Run Unit Tests name: Run Unit Tests
command: npx nx affected --target=test --base=HEAD~1 --parallel --max-parallel=2 command: npx nx affected --target=test --base=HEAD~1 --parallel --max-parallel=2
- run:
name: Run Linting
command: npx nx affected --target=lint --base=HEAD~1 --parallel --max-parallel=4
- run: - run:
name: Run E2E Tests name: Run E2E Tests
command: npx nx affected --target=e2e --base=HEAD~1 command: npx nx affected --target=e2e --base=HEAD~1

View File

@ -8,7 +8,7 @@
"default": { "default": {
"runner": "@nrwl/nx-cloud", "runner": "@nrwl/nx-cloud",
"options": { "options": {
"accessToken": "OTM4MGQ1NDctZGRjMy00ZDlmLThkYzQtOTU3MDhkNWZhZjcwfHJlYWQ=", "accessToken": "YzVhYjFiNzAtYTYxZS00OWM3LTlkOGYtZjRmOGRlNDY4MTJhfHJlYWQtd3JpdGU=",
"cacheableOperations": ["build", "build-base", "test", "lint", "e2e"], "cacheableOperations": ["build", "build-base", "test", "lint", "e2e"],
"canTrackAnalytics": false, "canTrackAnalytics": false,
"showUsageWarnings": true, "showUsageWarnings": true,

View File

@ -1,6 +1,6 @@
{ {
"name": "@nrwl/nx-source", "name": "@nrwl/nx-source",
"version": "12.2.0", "version": "12.3.0-beta.2",
"description": "Powerful, Extensible Dev Tools", "description": "Powerful, Extensible Dev Tools",
"homepage": "https://nx.dev", "homepage": "https://nx.dev",
"private": true, "private": true,
@ -64,7 +64,7 @@
"@nrwl/linter": "12.3.0-beta.1", "@nrwl/linter": "12.3.0-beta.1",
"@nrwl/next": "12.3.0-beta.1", "@nrwl/next": "12.3.0-beta.1",
"@nrwl/node": "12.3.0-beta.1", "@nrwl/node": "12.3.0-beta.1",
"@nrwl/nx-cloud": "12.1.1-beta.5", "@nrwl/nx-cloud": "12.1.1-beta.12",
"@nrwl/tao": "12.3.0-beta.1", "@nrwl/tao": "12.3.0-beta.1",
"@nrwl/web": "12.3.0-beta.1", "@nrwl/web": "12.3.0-beta.1",
"@nrwl/workspace": "12.3.0-beta.1", "@nrwl/workspace": "12.3.0-beta.1",

View File

@ -8,31 +8,30 @@ export default async function run(
taskGraph: TaskGraph, taskGraph: TaskGraph,
hasher: Hasher hasher: Hasher
): Promise<Hash> { ): Promise<Hash> {
if (task.overrides['hasTypeAwareRules'] === true) {
return hasher.hashTaskWithDepsAndContext(task); return hasher.hashTaskWithDepsAndContext(task);
// if (task.overrides['hasTypeAwareRules'] === true) { }
// return hasher.hashTaskWithDepsAndContext(task); const sources = await hasher.hashSource(task);
// } const deps = allDeps(task.id, taskGraph);
// const sources = await hasher.hashSource(task); const nxJson = readJsonFile('nx.json');
// const deps = allDeps(task.id, taskGraph); const tags = deps
// const nxJson = readJsonFile('nx.json'); .map((d) => (nxJson.projects[d].tags || []).join('|'))
// const tags = deps .join('|');
// .map((d) => (nxJson.projects[d].tags || []).join('|')) const context = await hasher.hashContext();
// .join('|'); return {
// const context = await hasher.hashContext(); value: hasher.hashArray([
// return { sources,
// value: hasher.hashArray([ tags,
// sources, context.implicitDeps.value,
// tags, context.runtime.value,
// context.implicitDeps.value, ]),
// context.runtime.value, details: {
// ]), command: null,
// details: { runtime: context.runtime.runtime,
// command: null, implicitDeps: context.implicitDeps.sources,
// runtime: context.runtime.runtime, sources: { [task.target.project]: sources },
// implicitDeps: context.implicitDeps.sources, },
// sources: { [task.target.project]: sources }, };
// },
// };
} }
function allDeps(taskId: string, taskGraph: TaskGraph) { function allDeps(taskId: string, taskGraph: TaskGraph) {

View File

@ -2813,10 +2813,10 @@
webpack-merge "4.2.1" webpack-merge "4.2.1"
webpack-node-externals "1.7.2" webpack-node-externals "1.7.2"
"@nrwl/nx-cloud@12.1.1-beta.5": "@nrwl/nx-cloud@12.1.1-beta.12":
version "12.1.1-beta.5" version "12.1.1-beta.12"
resolved "https://registry.yarnpkg.com/@nrwl/nx-cloud/-/nx-cloud-12.1.1-beta.5.tgz#4eb1402711be37f273f71831cf6960098855ed2b" resolved "https://registry.yarnpkg.com/@nrwl/nx-cloud/-/nx-cloud-12.1.1-beta.12.tgz#91c4b45ab71bc73d99014f54b3c84f3485c35328"
integrity sha512-2eIGXyIClWM5cq7rzAszEsXuRchFP5Olt2A1x+O+yAdgb8M7DtpmtVnPmTCGRuD8RjBVRhDxFdX6+dOXuw5Sog== integrity sha512-ZMYidr1m9qxh5+tRCl3eDJCpoaMRc4ovHHKkOxN/6T4JxWE1JQPyKnRe4YYMvwX/OixV/SrppE5UM7nNdd9pcw==
dependencies: dependencies:
axios "^0.21.1" axios "^0.21.1"
chalk "4.1.0" chalk "4.1.0"