Skip to content

Commit 670c2ac

Browse files
authored
Merge pull request #186 from cosmology-tech/build-dev
add build:dev and docs
2 parents 386ab74 + fb66988 commit 670c2ac

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

boilerplates/lerna-module/README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,20 @@ npm install __MODULENAME__
2222

2323
When first cloning the repo:
2424

25-
```
25+
```sh
2626
yarn
27+
# build the prod packages. When devs would like to navigate to the source code, this will only navigate from references to their definitions (.d.ts files) between packages.
2728
yarn build
2829
```
2930

31+
Or if you want to make your dev process smoother, you can run:
32+
33+
```sh
34+
yarn
35+
# build the dev packages with .map files, this enables navigation from references to their source code between packages.
36+
yarn build:dev
37+
```
38+
3039
## Related
3140

3241
Checkout these related projects:

boilerplates/lerna-module/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"clean": "rimraf dist/**",
2525
"prepare": "npm run build",
2626
"build": "npm run clean; tsc; tsc -p tsconfig.esm.json; npm run copy",
27+
"build:dev": "npm run clean; tsc --declarationMap; tsc -p tsconfig.esm.json; npm run copy",
2728
"lint": "eslint . --fix",
2829
"test": "jest",
2930
"test:watch": "jest --watch"

boilerplates/lerna-workspace/README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,22 @@ npm install __MODULENAME__
2020

2121
## Developing
2222

23-
2423
When first cloning the repo:
25-
```
24+
25+
```sh
2626
yarn
27+
# build the prod packages. When devs would like to navigate to the source code, this will only navigate from references to their definitions (.d.ts files) between packages.
2728
yarn build
2829
```
2930

31+
Or if you want to make your dev process smoother, you can run:
32+
33+
```sh
34+
yarn
35+
# build the dev packages with .map files, this enables navigation from references to their source code between packages.
36+
yarn build:dev
37+
```
38+
3039
## Related
3140

3241
Checkout these related projects:

boilerplates/lerna-workspace/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"scripts": {
1818
"clean": "lerna run clean",
1919
"build": "lerna run build --stream",
20+
"build:dev": "lerna run build:dev --stream; yarn symlink",
2021
"lint": "lerna run lint --parallel",
2122
"symlink": "symlink-workspace --logLevel error",
2223
"postinstall": "yarn symlink"

0 commit comments

Comments
 (0)