@icanbwell/bwell-sdk-ts 0.1.0-rc.1713985944

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,61 @@
1
+ # BWell SDK Typescript
2
+
3
+ ## Set-Up
4
+
5
+ After pulling the code base from the GIT repo follow the next steps to install and run the sdk.
6
+
7
+ 1. Open a terminal in the home directory of the typescript sdk:
8
+
9
+ ```bash
10
+ cd ./bwell-sdk-typescript
11
+ ```
12
+
13
+ 2. Install dependencies
14
+
15
+ ```bash
16
+ npm install
17
+ ```
18
+
19
+ ## Commands
20
+
21
+ ### Build
22
+
23
+ Compiles typescript to `dist` directory after cleaning directory
24
+
25
+ ```bash
26
+ npm run build
27
+ ```
28
+
29
+ ### Testing
30
+
31
+ Runs all test verbosely and reports coverage
32
+
33
+ ```bash
34
+ npm test
35
+ ```
36
+
37
+ #### Coverage
38
+
39
+ Open coverage report in browser.
40
+
41
+ ```bash
42
+ npm run coverage
43
+ ```
44
+
45
+ ### Formatting
46
+
47
+ Run [prettier](https://prettier.io/) and format all files that do not conform to
48
+ [prettier config](./prettier.config.js).
49
+
50
+ ```bash
51
+ npm run format
52
+ ```
53
+
54
+ ### Linting
55
+
56
+ Runs [eslint](https://eslint.org/) and reports any warnings or errors. Does not fix
57
+ errors.
58
+
59
+ ```bash
60
+ npm run lint
61
+ ```
@@ -0,0 +1,3 @@
1
+ export declare class BWellSDK {
2
+ hello(): string;
3
+ }
package/dist/index.js ADDED
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BWellSDK = void 0;
4
+ class BWellSDK {
5
+ hello() {
6
+ return "World!";
7
+ }
8
+ }
9
+ exports.BWellSDK = BWellSDK;
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@icanbwell/bwell-sdk-ts",
3
+ "version": "0.1.0-rc.1713985944",
4
+ "description": "b.well TypeScript SDK",
5
+ "license": "UNLICENSED",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/icanbwell/bwell-sdk",
14
+ "directory": "bwell-sdk-typescript"
15
+ },
16
+ "scripts": {
17
+ "build": "tsc",
18
+ "clean": "rimraf ./dist",
19
+ "coverage": "open ./coverage/lcov-report/index.html",
20
+ "format": "prettier . --write",
21
+ "lint": "eslint .",
22
+ "prebuild": "npm run clean",
23
+ "prettier": "prettier",
24
+ "prepublishOnly": "npm run build",
25
+ "prepare": "cd .. && node ./bwell-sdk-typescript/.husky/install.mjs",
26
+ "test": "jest"
27
+ },
28
+ "devDependencies": {
29
+ "@eslint/js": "^9.0.0",
30
+ "@types/jest": "^29.5.12",
31
+ "eslint": "^8.57.0",
32
+ "eslint-config-prettier": "^9.1.0",
33
+ "eslint-plugin-sonarjs": "^0.25.1",
34
+ "globals": "^15.0.0",
35
+ "husky": "^9.0.11",
36
+ "jest": "^29.7.0",
37
+ "lint-staged": "^15.2.2",
38
+ "prettier": "^3.2.5",
39
+ "rimraf": "^5.0.5",
40
+ "ts-jest": "^29.1.2",
41
+ "ts-node": "^10.9.2",
42
+ "typescript": "^5.4.4",
43
+ "typescript-eslint": "^7.6.0"
44
+ },
45
+ "lint-staged": {
46
+ "*.{js,ts}": "eslint --cache",
47
+ "*.{js,ts,md}": "prettier --write"
48
+ }
49
+ }