Skip to content

Commit

Permalink
adding nx
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscarz90 committed Sep 25, 2024
1 parent 2d63be2 commit ffe5dbb
Show file tree
Hide file tree
Showing 64 changed files with 4,859 additions and 20,162 deletions.
29 changes: 0 additions & 29 deletions .circleci/config.yml

This file was deleted.

1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

42 changes: 0 additions & 42 deletions .eslintrc.base.json

This file was deleted.

39 changes: 0 additions & 39 deletions .eslintrc.json

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
push:
branches:
- main
pull_request:

permissions:
actions: read
contents: read

jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

# This enables task distribution via Nx Cloud
# Run this command as early as possible, before dependencies are installed
# Learn more at https://nx.dev/ci/reference/nx-cloud-cli#npx-nxcloud-startcirun
- run: npx nx-cloud start-ci-run --distribute-on="3 linux-medium-js" --stop-agents-after="build"

# Cache node_modules
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- run: npm ci --legacy-peer-deps
- uses: nrwl/nx-set-shas@v4

# Prepend any command with "nx-cloud record --" to record its logs to Nx Cloud
# - run: npx nx-cloud record -- echo Hello World
# Nx Affected runs only tasks affected by the changes in this PR/commit. Learn more: https://nx.dev/ci/features/affected
- run: npx nx affected -t lint test build
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ testem.log
.DS_Store
Thumbs.db

.nx/cache
.nx/cache
.nx/workspace-data
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Add files here to ignore them from prettier formatting
/dist
/coverage
/.nx/cache
/.nx/cache
/.nx/workspace-data
1 change: 0 additions & 1 deletion .tool-versions

This file was deleted.

28 changes: 0 additions & 28 deletions .verdaccio/config.yml

This file was deleted.

92 changes: 49 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,76 +1,82 @@
# BismarckCs
# Bismarck

<a alt="Nx logo" href="https://nx.dev" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-logo.png" width="45"></a>

**This workspace has been generated by [Nx, Smart Monorepos · Fast CI.](https://nx.dev)**
Your new, shiny [Nx workspace](https://nx.dev) is almost ready ✨.

## Integrate with editors
[Learn more about this workspace setup and its capabilities](https://nx.dev/getting-started/tutorials/react-monorepo-tutorial?utm_source=nx_project&amp;utm_medium=readme&amp;utm_campaign=nx_projects) or run `npx nx graph` to visually explore what was created. Now, let's get you up to speed!

Enhance your Nx experience by installing [Nx Console](https://nx.dev/nx-console) for your favorite editor. Nx Console
provides an interactive UI to view your projects, run tasks, generate code, and more! Available for VSCode, IntelliJ and
comes with a LSP for Vim users.
## Finish your CI setup

## Nx plugins and code generators
[Click here to finish setting up your workspace!](https://cloud.nx.app/connect/Xfnk5zCpDt)

Add Nx plugins to leverage their code generators and automated, inferred tasks.

## Run tasks

To run the dev server for your app, use:

```sh
npx nx serve bismarck-web
```
# Add plugin
npx nx add @nx/react

# Use code generator
npx nx generate @nx/react:app demo
To create a production bundle:

# Run development server
npx nx serve demo
```sh
npx nx build bismarck-web
```

# View project details
npx nx show project demo --web
To see all available targets to run for a project, run:

```sh
npx nx show project bismarck-web
```
These targets are either [inferred automatically](https://nx.dev/concepts/inferred-tasks?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects) or defined in the `project.json` or `package.json` files.

Run `npx nx list` to get a list of available plugins and whether they have generators. Then run `npx nx list <plugin-name>` to see what generators are available.
[More about running tasks in the docs &raquo;](https://nx.dev/features/run-tasks?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)

Learn more about [code generators](https://nx.dev/features/generate-code) and [inferred tasks](https://nx.dev/concepts/inferred-tasks) in the docs.
## Add new projects

## Running tasks
While you could add new projects to your workspace manually, you might want to leverage [Nx plugins](https://nx.dev/concepts/nx-plugins?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects) and their [code generation](https://nx.dev/features/generate-code?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects) feature.

To execute tasks with Nx use the following syntax:
Use the plugin's generator to create new projects.

```
npx nx <target> <project> <...options>
To generate a new application, use:

```sh
npx nx g @nx/react:app demo
```

You can also run multiple targets:
To generate a new library, use:

```
npx nx run-many -t <target1> <target2>
```sh
npx nx g @nx/react:lib mylib
```

..or add `-p` to filter specific projects
You can use `npx nx list` to get a list of installed plugins. Then, run `npx nx list <plugin-name>` to learn about more specific capabilities of a particular plugin. Alternatively, [install Nx Console](https://nx.dev/getting-started/editor-setup?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects) to browse plugins and generators in your IDE.

```
npx nx run-many -t <target1> <target2> -p <proj1> <proj2>
```
[Learn more about Nx plugins &raquo;](https://nx.dev/concepts/nx-plugins?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects) | [Browse the plugin registry &raquo;](https://nx.dev/plugin-registry?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)

Targets can be defined in the `package.json` or `projects.json`. Learn more [in the docs](https://nx.dev/features/run-tasks).

## Set up CI!
[Learn more about Nx on CI](https://nx.dev/ci/intro/ci-with-nx#ready-get-started-with-your-provider?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)

Nx comes with local caching already built-in (check your `nx.json`). On CI you might want to go a step further.
## Install Nx Console

- [Set up remote caching](https://nx.dev/features/share-your-cache)
- [Set up task distribution across multiple machines](https://nx.dev/nx-cloud/features/distribute-task-execution)
- [Learn more how to setup CI](https://nx.dev/recipes/ci)
Nx Console is an editor extension that enriches your developer experience. It lets you run tasks, generate code, and improves code autocompletion in your IDE. It is available for VSCode and IntelliJ.

## Explore the project graph
[Install Nx Console &raquo;](https://nx.dev/getting-started/editor-setup?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)

Run `npx nx graph` to show the graph of the workspace.
It will show tasks that you can run with Nx.
## Useful links

- [Learn more about Exploring the Project Graph](https://nx.dev/core-features/explore-graph)
Learn more:

## Connect with us!
- [Learn more about this workspace setup](https://nx.dev/getting-started/tutorials/react-monorepo-tutorial?utm_source=nx_project&amp;utm_medium=readme&amp;utm_campaign=nx_projects)
- [Learn about Nx on CI](https://nx.dev/ci/intro/ci-with-nx?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
- [Releasing Packages with Nx release](https://nx.dev/features/manage-releases?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
- [What are Nx plugins?](https://nx.dev/concepts/nx-plugins?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)

- [Join the community](https://nx.dev/community)
- [Subscribe to the Nx Youtube Channel](https://www.youtube.com/@nxdevtools)
- [Follow us on Twitter](https://twitter.com/nxdevtools)
And join the Nx community:
- [Discord](https://go.nx.dev/community)
- [Follow us on X](https://twitter.com/nxdevtools) or [LinkedIn](https://www.linkedin.com/company/nrwl)
- [Our Youtube channel](https://www.youtube.com/@nxdevtools)
- [Our blog](https://nx.dev/blog?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects)
10 changes: 0 additions & 10 deletions apps/bismarck-web-e2e/.eslintrc.json

This file was deleted.

18 changes: 0 additions & 18 deletions apps/bismarck-web-e2e/cypress.config.ts

This file was deleted.

9 changes: 0 additions & 9 deletions apps/bismarck-web-e2e/project.json

This file was deleted.

13 changes: 0 additions & 13 deletions apps/bismarck-web-e2e/src/e2e/app.cy.ts

This file was deleted.

5 changes: 0 additions & 5 deletions apps/bismarck-web-e2e/src/fixtures/example.json

This file was deleted.

1 change: 0 additions & 1 deletion apps/bismarck-web-e2e/src/support/app.po.ts

This file was deleted.

Loading

0 comments on commit ffe5dbb

Please sign in to comment.