Skip to content

Commit fe7bbb0

Browse files
authored
[202409251157] - Add monorepo and empty data structure lib project (#95)
* modify files * adding plugin * adding libs * add mono repo * add data structures project
1 parent 4deecec commit fe7bbb0

26 files changed

+1178
-249
lines changed

.circleci/config.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
version: 2.1
2+
3+
orbs:
4+
5+
6+
jobs:
7+
main:
8+
docker:
9+
- image: cimg/node:lts-browsers
10+
steps:
11+
- checkout
12+
13+
# This enables task distribution via Nx Cloud
14+
# Run this command as early as possible, before dependencies are installed
15+
# Learn more at https://nx.dev/ci/reference/nx-cloud-cli#npx-nxcloud-startcirun
16+
- run: npx nx-cloud start-ci-run --distribute-on="3 linux-medium-js" --stop-agents-after="build"
17+
18+
- run: npm ci --legacy-peer-deps
19+
- nx/set-shas:
20+
main-branch-name: 'main'
21+
22+
# Prepend any command with "nx-cloud record --" to record its logs to Nx Cloud
23+
# - run: npx nx-cloud record -- echo Hello World
24+
# Nx Affected runs only tasks affected by the changes in this PR/commit. Learn more: https://nx.dev/ci/features/affected
25+
- run: npx nx affected --base=$NX_BASE --head=$NX_HEAD -t lint test build
26+
27+
workflows:
28+
version: 2
29+
30+
ci:
31+
jobs:
32+
- main

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
## Finish your CI setup
1010

11-
[Click here to finish setting up your workspace!](https://cloud.nx.app/connect/Xfnk5zCpDt)
11+
[Click here to finish setting up your workspace!](https://cloud.nx.app/connect/lvBhrJQl8C)
1212

1313

1414
## Run tasks

apps/bismarck-web/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<meta name="viewport" content="width=device-width, initial-scale=1" />
99
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
10-
<link rel="stylesheet" href="/src/styles.scss" />
10+
<link rel="stylesheet" href="/src/styles.css" />
1111
</head>
1212
<body>
1313
<div id="root"></div>

apps/bismarck-web/postcss.config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
const { join } = require('path');
2+
3+
// Note: If you use library-specific PostCSS/Tailwind configuration then you should remove the `postcssConfig` build
4+
// option from your application's configuration (i.e. project.json).
5+
//
6+
// See: https://nx.dev/guides/using-tailwind-css-in-react#step-4:-applying-configuration-to-libraries
7+
8+
module.exports = {
9+
plugins: {
10+
tailwindcss: {
11+
config: join(__dirname, 'tailwind.config.js'),
12+
},
13+
autoprefixer: {},
14+
},
15+
};

apps/bismarck-web/src/app/app.module.scss

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/bismarck-web/src/app/app.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
2-
import styles from './app.module.scss';
3-
41
import NxWelcome from './nx-welcome';
52

63
export function App() {

apps/bismarck-web/src/app/nx-welcome.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ export function NxWelcome({ title }: { title: string }) {
721721
<p>Your Nx Cloud remote cache setup is almost complete.</p>
722722

723723
<a
724-
href="https://cloud.nx.app/connect/jL4XBgOm3w"
724+
href="https://cloud.nx.app/connect/QOdLPP3Ksv"
725725
target="_blank"
726726
rel="noreferrer"
727727
>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
14
/* You can add global styles to this file, and also import other style files */

apps/bismarck-web/tailwind.config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const { createGlobPatternsForDependencies } = require('@nx/react/tailwind');
2+
const { join } = require('path');
3+
4+
/** @type {import('tailwindcss').Config} */
5+
module.exports = {
6+
content: [
7+
join(
8+
__dirname,
9+
'{src,pages,components,app}/**/*!(*.stories|*.spec).{ts,tsx,html}'
10+
),
11+
...createGlobPatternsForDependencies(__dirname),
12+
],
13+
theme: {
14+
extend: {},
15+
},
16+
plugins: [],
17+
};

bismarck-cs.code-workspace

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)