Skip to content

Commit

Permalink
chore(): add api dev container (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenshyx committed Feb 4, 2020
1 parent 6d62c0f commit a98f055
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 12 deletions.
28 changes: 28 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: '3.7'
services:
awf-api:
depends_on:
- couchbase
networks:
- intranet
environment:
- COUCH_USER=Administrator
- COUCH_PASSWORD=test123
ports:
- "8778:8778"
image: kenshyx/awf-api:latest
couchbase:
image: couchbase:community-6.0.0
ports:
- "8091-8094:8091-8094"
- "11210:11210"
networks:
- intranet
volumes:
- dbData:/opt/couchbase/var

networks:
intranet:

volumes:
dbData:
35 changes: 23 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,42 @@
"scripts": {
"bootstrap": "lerna bootstrap --no-ci",
"bootstrap:hoist": "lerna bootstrap --hoist",

"build:all": "lerna bootstrap --no-ci && lerna run tsc && npm run build:sdk && npm run pack:ui-apps && npm run extract:translations",
"build:sdk": "npm run tsc:sdk && lerna run build --scope @akashaproject/sdk --stream",

"clean": "lerna clean",
"docs": "lerna run docs --scope @akashaproject/sdk --scope @akashaproject/sdk-common",
"install:clean": "npm run clean && npm run build:all",
"test:sdk": "lerna run test --scope @akashaproject/sdk-* --stream",
"test:ui": "lerna run test --scope @akashaproject/ui-* --scope @akashaproject/design-* --stream",
"test:ui:watch": "lerna exec --parallel --scope @akashaproject/ui-* --scope @akashaproject/design-* --stream -- jest --watch",

"compile:sc": "lerna run compile:sc",
"deploy:sc": "lerna run deploy:sc",
"extract:translations": "lerna run extract:translations --stream",

"linter:check": "tslint --project tsconfig.json",
"linter:fix": "tslint --project tsconfig.json --fix",

"pack:ui-apps": "lerna run pack --scope @akashaproject/ui-* --scope @akashaproject/design-* --stream",
"pack:only": "lerna run pack --scope $AWF_PACKAGE --stream",
"pack:watch": "lerna run pack:watch --scope $AWF_PACKAGE --stream",

"tsc:sdk": "lerna run tsc --scope @akashaproject/sdk --scope @akashaproject/sdk-*",
"tsc:ui": "lerna run tsc --scope @akashaproject/design-* --scope @akashaproject/ui-*",
"tsc:scripts": "lerna run tsc --scope @akashaproject/script-*",
"watch-plugins": "lerna exec --parallel --scope @akashaproject/ui-widget-* --scope @akashaproject/ui-plugin-* -- tsc -w",
"script:dev-db": "lerna run start --scope @akashaproject/script-server-db --stream",

"start:feed-app": "lerna exec --parallel --scope translations-server --scope feed-app-dev -- npm run start --stream",
"start:translations-server": "npm run start --prefix scripts/translations-server",
"start:design-system:storybook": "lerna run storybook --scope @akashaproject/storybook --stream",
"pack:ui-apps": "lerna run pack --scope @akashaproject/ui-* --scope @akashaproject/design-* --stream",
"pack:only": "lerna run pack --scope $AWF_PACKAGE --stream",
"pack:watch": "lerna run pack:watch --scope $AWF_PACKAGE --stream",
"start:only": "lerna run start --scope $AWF_PACKAGE --stream",
"compile:sc": "lerna run compile:sc",
"deploy:sc": "lerna run deploy:sc",
"extract:translations": "lerna run extract:translations --stream",
"linter:check": "tslint --project tsconfig.json",
"linter:fix": "tslint --project tsconfig.json --fix"
"start:api": "docker-compose up -d",
"stop:api": "docker-compose stop awf-api couchbase",

"watch-plugins": "lerna exec --parallel --scope @akashaproject/ui-widget-* --scope @akashaproject/ui-plugin-* -- tsc -w",

"test:sdk": "lerna run test --scope @akashaproject/sdk-* --stream",
"test:ui": "lerna run test --scope @akashaproject/ui-* --scope @akashaproject/design-* --stream",
"test:ui:watch": "lerna exec --parallel --scope @akashaproject/ui-* --scope @akashaproject/design-* --stream -- jest --watch"
},
"devDependencies": {
"@babel/core": "7.8.4",
Expand Down

0 comments on commit a98f055

Please sign in to comment.