Skip to content

Commit

Permalink
Merge pull request #6 from insight-platform/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
ksendart committed Oct 26, 2023
2 parents 7a61742 + 4442444 commit b9769f1
Show file tree
Hide file tree
Showing 104 changed files with 1,699 additions and 397 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
"error",
{
"type": "attribute",
"prefix": "sf",
"prefix": "savant",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "sf",
"prefix": "savant",
"style": "kebab-case"
}
],
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ WORKDIR /tmp/savant-metadata-explorer
COPY package.json package-lock.json /tmp/savant-metadata-explorer/
RUN npm install
COPY . /tmp/savant-metadata-explorer
RUN npm run build:savant-lib
RUN npm run build:prod

FROM nginx:1.17.1-alpine
COPY --from=build /tmp/savant-metadata-explorer/dist/savant-lib /usr/share/nginx/html
COPY --from=build /tmp/savant-metadata-explorer/dist/savant-metadata-explorer /usr/share/nginx/html

COPY default.conf /etc/nginx/conf.d/default.conf.template
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# SavantMetadataExplorer

### Run locally

1. $ npm install
2. $ npm run build:savant-lib
3. $ npm run start

### Run in Docker

1. $ docker build -t savant-image .
2. $ docker run --name savant-container --env API_URL=http://176.120.24.131:16686/ -d -p 8080:80 savant-image
56 changes: 49 additions & 7 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": 1,
"newProjectRoot": "projects",
"projects": {
"SavantFrame": {
"SavantMetadataExplorer": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
Expand All @@ -12,7 +12,7 @@
},
"root": "",
"sourceRoot": "src",
"prefix": "sf",
"prefix": "savant",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
Expand Down Expand Up @@ -44,8 +44,8 @@
"budgets": [
{
"type": "initial",
"maximumWarning": "1mb",
"maximumError": "10mb"
"maximumWarning": "5mb",
"maximumError": "15mb"
},
{
"type": "anyComponentStyle",
Expand Down Expand Up @@ -73,18 +73,18 @@
},
"configurations": {
"production": {
"browserTarget": "SavantFrame:build:production"
"browserTarget": "SavantMetadataExplorer:build:production"
},
"development": {
"browserTarget": "SavantFrame:build:development"
"browserTarget": "SavantMetadataExplorer:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "SavantFrame:build"
"browserTarget": "SavantMetadataExplorer:build"
}
},
"test": {
Expand Down Expand Up @@ -117,6 +117,48 @@
}
}
}
},
"savant-lib": {
"projectType": "library",
"root": "projects/savant-lib",
"sourceRoot": "projects/savant-lib/src",
"prefix": "savant-lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"project": "projects/savant-lib/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/savant-lib/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "projects/savant-lib/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"tsConfig": "projects/savant-lib/tsconfig.spec.json",
"polyfills": [
"zone.js",
"zone.js/testing"
]
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"projects/savant-lib/**/*.ts",
"projects/savant-lib/**/*.html"
]
}
}
}
}
},
"cli": {
Expand Down
Loading

0 comments on commit b9769f1

Please sign in to comment.