Skip to content

Commit 40960e1

Browse files
Created prod build for packages and removed npmignore (#823)
1 parent dda7eb2 commit 40960e1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+175
-79
lines changed

.github/workflows/build-demo-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
- name: ⚙️ Setting up the MonkJs project
2121
uses: ./.github/actions/monkjs-set-up
2222
- name: 📱 Building the demo app
23-
run: yarn build:demo-app:staging
23+
run: cd apps/demo-app && yarn build:staging

.github/workflows/build-drive-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
- name: ⚙️ Setting up the MonkJs project
2121
uses: ./.github/actions/monkjs-set-up
2222
- name: 📱 Building the Drive app
23-
run: yarn build:drive-app:staging
23+
run: cd apps/drive-app && yarn build:staging

.github/workflows/deploy-demo-app.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ jobs:
2020
- name: ⚙️ Setting up the MonkJs project
2121
uses: ./.github/actions/monkjs-set-up
2222
- name: 📱 Building the demo app
23-
run: yarn build:demo-app:staging
23+
run: cd apps/demo-app && yarn build:staging
2424
- name: 📦 Uploading the artifact
2525
uses: actions/[email protected]
2626
with:
2727
name: build-demo-app-staging
28-
path: apps/demo-app/build
28+
path: build
2929

3030
deploy:
3131
name: Deploy

package.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,13 @@
1717
"repair": "lerna repair",
1818
"clean": "rimraf node_modules && yarn cache clean && yarn install",
1919
"clean:all": "lerna run clean --parallel && rimraf node_modules && yarn cache clean && yarn install",
20-
"build": "lerna run build --scope '@monkvision/*'",
20+
"build": "yarn run build:development",
21+
"build:development": "lerna run build:development --scope '@monkvision/*'",
22+
"build:production": "lerna run build:production --scope '@monkvision/*'",
2123
"build:documentation": "lerna run build --scope 'monk-documentation'",
22-
"build:demo-app:development": "lerna run build:development --scope 'monk-demo-app'",
23-
"build:demo-app:staging": "lerna run build:staging --scope 'monk-demo-app'",
24-
"build:demo-app:preview": "lerna run build:preview --scope 'monk-demo-app'",
25-
"build:drive-app:development": "lerna run build:development --scope 'drive-app'",
26-
"build:drive-app:staging": "lerna run build:staging --scope 'drive-app'",
27-
"build:drive-app:preview": "lerna run build:preview --scope 'drive-app'",
2824
"version": "yarn install && git stage yarn.lock",
25+
"deploy:packages": "yarn run build:production && lerna publish --force-publish --no-private --exact",
2926
"deploy:documentation": "lerna run deploy --scope 'monk-documentation'",
30-
"deploy:packages": "lerna publish --force-publish --no-private --exact",
3127
"test": "lerna run test --parallel",
3228
"test:packages": "lerna run test --parallel --scope '@monkvision/*'",
3329
"test:coverage": "lerna run test:coverage --parallel",

packages/analytics/.npmignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/analytics/package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,17 @@
77
"author": "monkvision",
88
"main": "lib/index.js",
99
"types": "lib/index.d.ts",
10+
"files": [
11+
"package.json",
12+
"LICENSE",
13+
"README.md",
14+
"lib"
15+
],
1016
"scripts": {
1117
"clean": "rimraf lib && mkdirp lib",
12-
"build": "yarn run clean && tsc -p tsconfig.build.json",
18+
"build": "yarn run build:development",
19+
"build:development": "yarn run clean && tsc -p tsconfig.build.development.json",
20+
"build:production": "yarn run clean && tsc -p tsconfig.build.production.json",
1321
"test": "jest",
1422
"test:coverage": "jest --coverage",
1523
"prettier": "prettier --check ./src ./test",
File renamed without changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig.build.development.json",
3+
"compilerOptions": {
4+
"sourceMap": false
5+
}
6+
}

packages/camera-web/.npmignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/camera-web/package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,17 @@
77
"author": "monkvision",
88
"main": "lib/index.js",
99
"types": "lib/index.d.ts",
10+
"files": [
11+
"package.json",
12+
"LICENSE",
13+
"README.md",
14+
"lib"
15+
],
1016
"scripts": {
1117
"clean": "rimraf lib && mkdirp lib",
12-
"build": "yarn run clean && tsc -p tsconfig.build.json",
18+
"build": "yarn run build:development",
19+
"build:development": "yarn run clean && tsc -p tsconfig.build.development.json",
20+
"build:production": "yarn run clean && tsc -p tsconfig.build.production.json",
1321
"test": "jest",
1422
"test:coverage": "jest --coverage",
1523
"prettier": "prettier --check ./src ./test",

0 commit comments

Comments
 (0)