From c111bd8e6e0a272d6c7afc7cdec63fd9fe8ef4e7 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Sat, 6 Apr 2019 19:03:02 -0500 Subject: [PATCH] Adding StrawBoss configuration. --- strawboss.config.json | 31 +++++++++++++++++++++++++++++++ web/package-lock.json | 24 ++++++++++++++++++++++-- web/package.json | 4 ++++ 3 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 strawboss.config.json diff --git a/strawboss.config.json b/strawboss.config.json new file mode 100644 index 0000000..fd79c3a --- /dev/null +++ b/strawboss.config.json @@ -0,0 +1,31 @@ +{ + "name": "personal-measure", + "steps": { + "buildApi": { + "artifacts": ["personal_measure_api"], + "containerImage": "nimlang/nim:0.19.4", + "stepCmd": "nimble build", + "workingDir": "api" + }, + "buildWeb": { + "artifacts": ["pm-api-v${VERSION}.tar.gz"], + "containerImage": "node:lts-alpine", + "cmdInput": [ + "npm install", + "npm run build", + "tar czf pm-api-v${VERSION}.tar.gz" + ], + "workingDir": "web" + }, + "deployApi": { + "containerImage": "garland/aws-cli-docker", + "cmdInput": [], + "depends": ["buildApi"] + }, + "deployWeb": { + "containerImage": "garland/aws-cli-docker", + "cmdInput": [], + "depends": ["buildWeb"] + } + } +} diff --git a/web/package-lock.json b/web/package-lock.json index 02bc19f..c7278d5 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -1014,6 +1014,22 @@ "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.121.tgz", "integrity": "sha512-ORj7IBWj13iYufXt/VXrCNMbUuCTJfhzme5kx9U/UtcIPdJYuvPDUAlHlbNhz/8lKCLy9XGIZnGrqXOtQbPGoQ==" }, + "@types/lodash.assign": { + "version": "4.2.6", + "resolved": "https://registry.npmjs.org/@types/lodash.assign/-/lodash.assign-4.2.6.tgz", + "integrity": "sha512-SaReADQZqf99FUWZ/gHICOAhLfBvaUmVb9y8xCw7o5WDuqDG0YfN1a+by29eipPcV4FITfPbQMJQiOGAeOb4fw==", + "requires": { + "@types/lodash": "*" + } + }, + "@types/lodash.findindex": { + "version": "4.6.6", + "resolved": "https://registry.npmjs.org/@types/lodash.findindex/-/lodash.findindex-4.6.6.tgz", + "integrity": "sha512-quPh7tw70yhryaubH6wBvgIQgeU1PFjdoT4eaW6WCKzjIlxgImLKIv4bvJhMTUlRkMgf5VAfECKKXKuB8cexgw==", + "requires": { + "@types/lodash": "*" + } + }, "@types/lodash.merge": { "version": "4.6.5", "resolved": "https://registry.npmjs.org/@types/lodash.merge/-/lodash.merge-4.6.5.tgz", @@ -9671,8 +9687,7 @@ "lodash.assign": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-4.2.0.tgz", - "integrity": "sha1-DZnzzNem0mHRm9rrkkUAXShYCOc=", - "dev": true + "integrity": "sha1-DZnzzNem0mHRm9rrkkUAXShYCOc=" }, "lodash.clonedeep": { "version": "4.5.0", @@ -9691,6 +9706,11 @@ "integrity": "sha1-vsECT4WxvZbL6kBbI8FK1kQ6b4E=", "dev": true }, + "lodash.findindex": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/lodash.findindex/-/lodash.findindex-4.6.0.tgz", + "integrity": "sha1-oyRd7mH7m24GJLU1ElYku2nBEQY=" + }, "lodash.get": { "version": "4.4.2", "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", diff --git a/web/package.json b/web/package.json index 46926c8..8741548 100644 --- a/web/package.json +++ b/web/package.json @@ -13,11 +13,15 @@ "@fortawesome/free-solid-svg-icons": "^5.7.2", "@fortawesome/vue-fontawesome": "^0.1.5", "@types/js-cookie": "^2.2.1", + "@types/lodash.assign": "^4.2.6", + "@types/lodash.findindex": "^4.6.6", "@types/lodash.merge": "^4.6.5", "apexcharts": "^3.6.5", "axios": "^0.18.0", "js-cookie": "^2.2.0", "keen-ui": "^1.1.2", + "lodash.assign": "^4.2.0", + "lodash.findindex": "^4.6.0", "lodash.merge": "^4.6.1", "register-service-worker": "^1.5.2", "vue": "^2.6.6",