Skip to content

Commit

Permalink
Created prod build for packages and removed npmignore
Browse files Browse the repository at this point in the history
  • Loading branch information
souyahia-monk committed Aug 2, 2024
1 parent dda7eb2 commit 2203f25
Show file tree
Hide file tree
Showing 49 changed files with 175 additions and 79 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-demo-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
- name: ⚙️ Setting up the MonkJs project
uses: ./.github/actions/monkjs-set-up
- name: 📱 Building the demo app
run: yarn build:demo-app:staging
run: cd apps/demo-app && yarn build:staging
2 changes: 1 addition & 1 deletion .github/workflows/build-drive-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
- name: ⚙️ Setting up the MonkJs project
uses: ./.github/actions/monkjs-set-up
- name: 📱 Building the Drive app
run: yarn build:drive-app:staging
run: cd apps/drive-app && yarn build:staging
4 changes: 2 additions & 2 deletions .github/workflows/deploy-demo-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
- name: ⚙️ Setting up the MonkJs project
uses: ./.github/actions/monkjs-set-up
- name: 📱 Building the demo app
run: yarn build:demo-app:staging
run: cd apps/demo-app && yarn build:staging
- name: 📦 Uploading the artifact
uses: actions/[email protected]
with:
name: build-demo-app-staging
path: apps/demo-app/build
path: build

deploy:
name: Deploy
Expand Down
12 changes: 4 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,13 @@
"repair": "lerna repair",
"clean": "rimraf node_modules && yarn cache clean && yarn install",
"clean:all": "lerna run clean --parallel && rimraf node_modules && yarn cache clean && yarn install",
"build": "lerna run build --scope '@monkvision/*'",
"build": "yarn run build:development",
"build:development": "lerna run build:development --scope '@monkvision/*'",
"build:production": "lerna run build:production --scope '@monkvision/*'",
"build:documentation": "lerna run build --scope 'monk-documentation'",
"build:demo-app:development": "lerna run build:development --scope 'monk-demo-app'",
"build:demo-app:staging": "lerna run build:staging --scope 'monk-demo-app'",
"build:demo-app:preview": "lerna run build:preview --scope 'monk-demo-app'",
"build:drive-app:development": "lerna run build:development --scope 'drive-app'",
"build:drive-app:staging": "lerna run build:staging --scope 'drive-app'",
"build:drive-app:preview": "lerna run build:preview --scope 'drive-app'",
"version": "yarn install && git stage yarn.lock",
"deploy:packages": "yarn run build:production && lerna publish --force-publish --no-private --exact",
"deploy:documentation": "lerna run deploy --scope 'monk-documentation'",
"deploy:packages": "lerna publish --force-publish --no-private --exact",
"test": "lerna run test --parallel",
"test:packages": "lerna run test --parallel --scope '@monkvision/*'",
"test:coverage": "lerna run test:coverage --parallel",
Expand Down
5 changes: 0 additions & 5 deletions packages/analytics/.npmignore

This file was deleted.

10 changes: 9 additions & 1 deletion packages/analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@
"author": "monkvision",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
"package.json",
"LICENSE",
"README.md",
"lib"
],
"scripts": {
"clean": "rimraf lib && mkdirp lib",
"build": "yarn run clean && tsc -p tsconfig.build.json",
"build": "yarn run build:development",
"build:development": "yarn run clean && tsc -p tsconfig.build.development.json",
"build:production": "yarn run clean && tsc -p tsconfig.build.production.json",
"test": "jest",
"test:coverage": "jest --coverage",
"prettier": "prettier --check ./src ./test",
Expand Down
File renamed without changes.
6 changes: 6 additions & 0 deletions packages/analytics/tsconfig.build.production.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig.build.development.json",
"compilerOptions": {
"sourceMap": false
}
}
5 changes: 0 additions & 5 deletions packages/camera-web/.npmignore

This file was deleted.

10 changes: 9 additions & 1 deletion packages/camera-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@
"author": "monkvision",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
"package.json",
"LICENSE",
"README.md",
"lib"
],
"scripts": {
"clean": "rimraf lib && mkdirp lib",
"build": "yarn run clean && tsc -p tsconfig.build.json",
"build": "yarn run build:development",
"build:development": "yarn run clean && tsc -p tsconfig.build.development.json",
"build:production": "yarn run clean && tsc -p tsconfig.build.production.json",
"test": "jest",
"test:coverage": "jest --coverage",
"prettier": "prettier --check ./src ./test",
Expand Down
File renamed without changes.
6 changes: 6 additions & 0 deletions packages/camera-web/tsconfig.build.production.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig.build.development.json",
"compilerOptions": {
"sourceMap": false
}
}
5 changes: 0 additions & 5 deletions packages/common-ui-web/.npmignore

This file was deleted.

10 changes: 9 additions & 1 deletion packages/common-ui-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@
"version": "4.0.3",
"packageManager": "[email protected]",
"main": "lib/index.js",
"files": [
"package.json",
"LICENSE",
"README.md",
"lib"
],
"scripts": {
"clean": "rimraf lib && mkdirp lib",
"build": "yarn run clean && tsc -p tsconfig.build.json",
"build": "yarn run build:development",
"build:development": "yarn run clean && tsc -p tsconfig.build.development.json",
"build:production": "yarn run clean && tsc -p tsconfig.build.production.json",
"test": "jest",
"test:coverage": "jest --coverage",
"prettier": "prettier --check ./src",
Expand Down
File renamed without changes.
6 changes: 6 additions & 0 deletions packages/common-ui-web/tsconfig.build.production.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig.build.development.json",
"compilerOptions": {
"sourceMap": false
}
}
5 changes: 0 additions & 5 deletions packages/common/.npmignore

This file was deleted.

10 changes: 9 additions & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@
"author": "monkvision",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
"package.json",
"LICENSE",
"README.md",
"lib"
],
"scripts": {
"clean": "rimraf lib && mkdirp lib",
"build": "yarn run clean && tsc -p tsconfig.build.json",
"build": "yarn run build:development",
"build:development": "yarn run clean && tsc -p tsconfig.build.development.json",
"build:production": "yarn run clean && tsc -p tsconfig.build.production.json",
"test": "jest",
"test:coverage": "jest --coverage",
"prettier": "prettier --check ./src ./test",
Expand Down
File renamed without changes.
6 changes: 6 additions & 0 deletions packages/common/tsconfig.build.production.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig.build.development.json",
"compilerOptions": {
"sourceMap": false
}
}
5 changes: 0 additions & 5 deletions packages/inspection-capture-web/.npmignore

This file was deleted.

10 changes: 9 additions & 1 deletion packages/inspection-capture-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@
"author": "monkvision",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
"package.json",
"LICENSE",
"README.md",
"lib"
],
"scripts": {
"clean": "rimraf lib && mkdirp lib",
"build": "yarn run clean && tsc -p tsconfig.build.json",
"build": "yarn run build:development",
"build:development": "yarn run clean && tsc -p tsconfig.build.development.json",
"build:production": "yarn run clean && tsc -p tsconfig.build.production.json",
"test": "jest",
"test:coverage": "jest --coverage",
"prettier": "prettier --check ./src ./test",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig.build.development.json",
"compilerOptions": {
"sourceMap": false
}
}
5 changes: 0 additions & 5 deletions packages/monitoring/.npmignore

This file was deleted.

10 changes: 9 additions & 1 deletion packages/monitoring/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@
"author": "monkvision",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
"package.json",
"LICENSE",
"README.md",
"lib"
],
"scripts": {
"clean": "rimraf lib && mkdirp lib",
"build": "yarn run clean && tsc -p tsconfig.build.json",
"build": "yarn run build:development",
"build:development": "yarn run clean && tsc -p tsconfig.build.development.json",
"build:production": "yarn run clean && tsc -p tsconfig.build.production.json",
"test": "jest",
"test:coverage": "jest --coverage",
"prettier": "prettier --check ./src ./test",
Expand Down
File renamed without changes.
6 changes: 6 additions & 0 deletions packages/monitoring/tsconfig.build.production.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig.build.development.json",
"compilerOptions": {
"sourceMap": false
}
}
5 changes: 0 additions & 5 deletions packages/network/.npmignore

This file was deleted.

10 changes: 9 additions & 1 deletion packages/network/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@
"author": "monkvision",
"main": "lib/src/index.js",
"types": "lib/src/index.d.ts",
"files": [
"package.json",
"LICENSE",
"README.md",
"lib"
],
"scripts": {
"clean": "rimraf lib && mkdirp lib",
"build": "yarn run clean && tsc -p tsconfig.build.json",
"build": "yarn run build:development",
"build:development": "yarn run clean && tsc -p tsconfig.build.development.json",
"build:production": "yarn run clean && tsc -p tsconfig.build.production.json",
"test": "jest",
"test:coverage": "jest --coverage",
"prettier": "prettier --check ./src ./test",
Expand Down
File renamed without changes.
6 changes: 6 additions & 0 deletions packages/network/tsconfig.build.production.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig.build.development.json",
"compilerOptions": {
"sourceMap": false
}
}
5 changes: 0 additions & 5 deletions packages/posthog/.npmignore

This file was deleted.

10 changes: 9 additions & 1 deletion packages/posthog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,20 @@
"author": "monkvision",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
"package.json",
"LICENSE",
"README.md",
"lib"
],
"installConfig": {
"hoistingLimits": "workspaces"
},
"scripts": {
"clean": "rimraf lib && mkdirp lib",
"build": "yarn run clean && tsc -p tsconfig.build.json",
"build": "yarn run build:development",
"build:development": "yarn run clean && tsc -p tsconfig.build.development.json",
"build:production": "yarn run clean && tsc -p tsconfig.build.production.json",
"test": "jest",
"test:coverage": "jest --coverage",
"prettier": "prettier --check ./src ./test",
Expand Down
File renamed without changes.
6 changes: 6 additions & 0 deletions packages/posthog/tsconfig.build.production.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig.build.development.json",
"compilerOptions": {
"sourceMap": false
}
}
5 changes: 0 additions & 5 deletions packages/sentry/.npmignore

This file was deleted.

10 changes: 9 additions & 1 deletion packages/sentry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,20 @@
"author": "monkvision",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
"package.json",
"LICENSE",
"README.md",
"lib"
],
"installConfig": {
"hoistingLimits": "workspaces"
},
"scripts": {
"clean": "rimraf lib && mkdirp lib",
"build": "yarn run clean && tsc -p tsconfig.build.json",
"build": "yarn run build:development",
"build:development": "yarn run clean && tsc -p tsconfig.build.development.json",
"build:production": "yarn run clean && tsc -p tsconfig.build.production.json",
"test": "jest",
"test:coverage": "jest --coverage",
"prettier": "prettier --check ./src ./test",
Expand Down
File renamed without changes.
6 changes: 6 additions & 0 deletions packages/sentry/tsconfig.build.production.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig.build.development.json",
"compilerOptions": {
"sourceMap": false
}
}
5 changes: 0 additions & 5 deletions packages/sights/.npmignore

This file was deleted.

10 changes: 9 additions & 1 deletion packages/sights/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,18 @@
"author": "monkvision",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
"package.json",
"LICENSE",
"README.md",
"lib"
],
"scripts": {
"clean": "rimraf dist lib src/lib/data && mkdirp dist lib",
"compile": "yarn run clean && yarn run svgo && tsc -p tsconfig.compile.json",
"build": "yarn run compile && node dist/index.js && tsc -p tsconfig.build.json",
"build": "yarn run build:development",
"build:development": "yarn run compile && node dist/index.js && tsc -p tsconfig.build.development.json",
"build:production": "yarn run compile && node dist/index.js && tsc -p tsconfig.build.production.json",
"validate": "node dist/index.js --validate-only",
"test": "yarn run validate && jest",
"test:coverage": "jest --coverage",
Expand Down
File renamed without changes.
6 changes: 6 additions & 0 deletions packages/sights/tsconfig.build.production.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig.build.development.json",
"compilerOptions": {
"sourceMap": false
}
}
3 changes: 2 additions & 1 deletion packages/sights/tsconfig.compile.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "dist",
"declaration": false
"declaration": false,
"sourceMap": false
},
"include": ["src"],
"exclude": ["src/lib"]
Expand Down
5 changes: 0 additions & 5 deletions packages/types/.npmignore

This file was deleted.

Loading

0 comments on commit 2203f25

Please sign in to comment.