Skip to content

Commit

Permalink
chore: update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
agoldis committed Oct 30, 2023
1 parent 18597e5 commit 1409a9d
Show file tree
Hide file tree
Showing 8 changed files with 23,465 additions and 14,479 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
.nx
/dist
/tmp
/out-tsc
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ cd currents-nx-example

# Create a dummy web project, choose any CSS styling
# That will create a new project with `@nrwl/cypress` pre-installed and configured
npm i -D @nrwl/web
nx g @nrwl/web:app frontend
npm i -D @nx/web
nx g @nx/web:app frontend

# Install @currents/nx
npm i -D @currents/nx@beta
npm i -D @currents/nx

# Configure a new target in apps/frontend-e2e/project.json
vim apps/frontend-e2e/project.json
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-e2e/currents.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
projectId: 'adasd',
projectId: 'Ij0RfK',
};
4 changes: 3 additions & 1 deletion apps/frontend-e2e/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"currents": {
"executor": "@currents/nx:currents",
"options": {
"key": "https://currents.dev/readme/guides/record-key",
"ciBuildId": "https://currents.dev/readme/guides/cypress-ci-build-id",
"cypressConfig": "apps/frontend-e2e/cypress.config.js",
"parallel": true,
"record": true,
Expand All @@ -15,7 +17,7 @@
},

"lint": {
"executor": "@nrwl/linter:eslint",
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["apps/frontend-e2e/**/*.{js,ts}"]
Expand Down
8 changes: 4 additions & 4 deletions apps/frontend/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"tags": [],
"targets": {
"build": {
"executor": "@nrwl/web:webpack",
"executor": "@nx/webpack:webpack",
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "production",
"options": {
Expand Down Expand Up @@ -37,7 +37,7 @@
}
},
"serve": {
"executor": "@nrwl/web:dev-server",
"executor": "@nx/webpack:dev-server",
"options": {
"buildTarget": "frontend:build"
},
Expand All @@ -48,14 +48,14 @@
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["apps/frontend/**/*.ts"]
}
},
"test": {
"executor": "@nrwl/jest:jest",
"executor": "@nx/jest:jest",
"outputs": ["coverage/apps/frontend"],
"options": {
"jestConfig": "apps/frontend/jest.config.js",
Expand Down
4 changes: 2 additions & 2 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"defaultBase": "main"
},
"cli": {
"defaultCollection": "@nrwl/web"
"defaultCollection": "@nx/web"
},
"implicitDependencies": {
"package.json": {
Expand All @@ -15,7 +15,7 @@
},
"tasksRunnerOptions": {
"default": {
"runner": "@nrwl/workspace/tasks-runners/default",
"runner": "@nx/workspace/tasks-runners/default",
"options": {
"cacheableOperations": ["build", "lint", "test", "e2e"]
}
Expand Down
Loading

0 comments on commit 1409a9d

Please sign in to comment.