Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

Commit 7d6275d

Browse files
authored
feat: improve contribution docs and add source maps to build (#237)
1 parent ca87869 commit 7d6275d

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,16 @@ For details on contributing to documentation, see [Website Directory Readme](htt
1717
git clone https://github.com/StaticJsCMS/static-cms
1818
cd static-cms
1919
yarn
20+
cd core
21+
yarn
2022
```
2123

2224
### Run core locally
2325

2426
> In `core` directory
2527
2628
```sh
29+
cd core # if not there already
2730
yarn start
2831
```
2932

@@ -34,6 +37,7 @@ yarn start
3437
Starts the development server. This task runs both the `clean` and `develop` scripts.
3538

3639
```sh
40+
cd core # if not there already
3741
yarn start
3842
```
3943

@@ -42,6 +46,7 @@ yarn start
4246
Removes the `dist` directory.
4347

4448
```sh
49+
cd core # if not there already
4550
yarn clean
4651
```
4752

@@ -50,6 +55,7 @@ yarn clean
5055
Runs the `clean` script and builds the @static-cms/core.
5156

5257
```sh
58+
cd core # if not there already
5359
yarn build
5460
```
5561

@@ -58,6 +64,7 @@ yarn build
5864
Formats code and docs according to our style guidelines.
5965

6066
```sh
67+
cd core # if not there already
6168
yarn format
6269
```
6370

core/tsconfig.base.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"compilerOptions": {
3+
"sourceMap": true,
34
"declaration": true,
45
"declarationDir": "dist",
56
"emitDeclarationOnly": true,

core/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ function moduleNameToPath(libName) {
1313
module.exports = {
1414
entry: './src/index.ts',
1515
mode: isProduction ? 'production' : 'development',
16+
devtool: 'source-map',
1617
module: {
1718
rules: [
1819
{

0 commit comments

Comments
 (0)