@adhese/sdk-devtools 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,57 @@
1
+ # Adhese SDK
2
+
3
+ ## Introduction
4
+ This monorepo contains the Adhese SDK for web. The project uses Turborepo to manage the monorepo. Make sure to run
5
+ everything from the root of the project.
6
+
7
+ ## Running the project
8
+ Install dependencies:
9
+ ```
10
+ npm i
11
+ ```
12
+ > Only use `npm` to install dependencies. `pnpm` and `yarn` will create their own lockfiles and will cause issues when
13
+ > maintaining the project.
14
+
15
+ ### Dev mode
16
+ Start the dev server:
17
+ ```bash
18
+ npm run dev
19
+ ```
20
+
21
+ This will spin up multiple processes at the same time depending on the package or app own configuration. In general,
22
+ packages will start the test runner in watch mode and the docs app will start a dev server. For example, the
23
+ `apps/example` will start a test server on `localhost:5173`.
24
+
25
+ ### Testing
26
+ Run all tests:
27
+ ```bash
28
+ npm run test
29
+ ```
30
+
31
+ This will run all tests in packages that have tests configured. It will also report test coverage. Currently, all
32
+ projects use [Vitest](https://vitest.dev/) as the test runner.
33
+
34
+ ### Building
35
+ Build all packages:
36
+ ```bash
37
+ npm run build
38
+ ```
39
+
40
+ This will build all packages and apps.
41
+
42
+ ### Linting
43
+ Lint all packages:
44
+ ```bash
45
+ npm run lint
46
+ ```
47
+
48
+ This will lint all packages and apps. Currently, all projects use [ESLint](https://eslint.org/) as the linter.
49
+
50
+ ## Installing new dependencies
51
+ When installing new dependencies, consider the following:
52
+ - Do I need this dependency in all packages?
53
+ - If yes, install it in the root of the project using `npm install <package>`.
54
+ - If no, install it in the package that needs it using `npm install <package> -w <package-name>`.
55
+ - Is it a dev dependency?
56
+ - If no, make sure to separately install into the `packages/sdk/package.json` to make sure that the dependency is not
57
+ included in the bundle as NPM will handle the dependency.