feat: improve contribution docs and add source maps to build (#237)
This commit is contained in:
parent
ca87869210
commit
7d6275d83a
@ -17,6 +17,8 @@ For details on contributing to documentation, see [Website Directory Readme](htt
|
||||
git clone https://github.com/StaticJsCMS/static-cms
|
||||
cd static-cms
|
||||
yarn
|
||||
cd core
|
||||
yarn
|
||||
```
|
||||
|
||||
### Run core locally
|
||||
@ -24,6 +26,7 @@ yarn
|
||||
> In `core` directory
|
||||
|
||||
```sh
|
||||
cd core # if not there already
|
||||
yarn start
|
||||
```
|
||||
|
||||
@ -34,6 +37,7 @@ yarn start
|
||||
Starts the development server. This task runs both the `clean` and `develop` scripts.
|
||||
|
||||
```sh
|
||||
cd core # if not there already
|
||||
yarn start
|
||||
```
|
||||
|
||||
@ -42,6 +46,7 @@ yarn start
|
||||
Removes the `dist` directory.
|
||||
|
||||
```sh
|
||||
cd core # if not there already
|
||||
yarn clean
|
||||
```
|
||||
|
||||
@ -50,6 +55,7 @@ yarn clean
|
||||
Runs the `clean` script and builds the @static-cms/core.
|
||||
|
||||
```sh
|
||||
cd core # if not there already
|
||||
yarn build
|
||||
```
|
||||
|
||||
@ -58,6 +64,7 @@ yarn build
|
||||
Formats code and docs according to our style guidelines.
|
||||
|
||||
```sh
|
||||
cd core # if not there already
|
||||
yarn format
|
||||
```
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"sourceMap": true,
|
||||
"declaration": true,
|
||||
"declarationDir": "dist",
|
||||
"emitDeclarationOnly": true,
|
||||
|
@ -13,6 +13,7 @@ function moduleNameToPath(libName) {
|
||||
module.exports = {
|
||||
entry: './src/index.ts',
|
||||
mode: isProduction ? 'production' : 'development',
|
||||
devtool: 'source-map',
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user