Compare commits

...

5 Commits

Author SHA1 Message Date
c999b4a8f6 Fixed dockerfile build missing yarn
All checks were successful
continuous-integration/drone/push Build is passing
2021-09-16 18:25:35 +07:00
7a2c3dec97 Fixed lerna build
All checks were successful
continuous-integration/drone/push Build is passing
2021-09-16 18:25:11 +07:00
9ef8db077f Forgot yarn command
Some checks failed
continuous-integration/drone/push Build is failing
2021-09-16 18:20:52 +07:00
da0235c0b3 Fixed drone ci yarn command failed
Some checks failed
continuous-integration/drone/push Build is failing
2021-09-16 18:20:09 +07:00
0378f270fc Updated readme
Some checks failed
continuous-integration/drone/push Build is failing
2021-09-16 18:18:13 +07:00
6 changed files with 8 additions and 12 deletions

View File

@@ -11,6 +11,4 @@ steps:
image: d.ctdn.net/node image: d.ctdn.net/node
commands: commands:
- yarn config set registry https://r.ctdn.net - yarn config set registry https://r.ctdn.net
- cd packages/ts-common && yarn && yarn build - yarn && yarn build
- cd ../../ && yarn
- yarn build

View File

@@ -14,9 +14,7 @@ WORKDIR /app
COPY . /app COPY . /app
RUN yarn config set registry https://r.ctdn.net RUN yarn config set registry https://r.ctdn.net
RUN cd packages/ts-common && yarn && yarn build RUN yarn && yarn build
RUN cd ../../ && yarn
RUN yarn build
EXPOSE 3000 EXPOSE 3000
CMD [ "yarn" , "serve"] CMD [ "yarn" , "serve"]

View File

@@ -27,13 +27,13 @@ git submodule update --init --remote
- Add Packages - Add Packages
```shell ```shell
mkdir packages && git submodule add https://git.cubetiqs.com/CUBETIQ/ts-common.git packages/ts-common mkdir packages && git submodule add https://git.cubetiqs.com/CUBETIQ/ts-common.git packages/ts-common && git submodule add https://git.cubetiqs.com/CUBETIQ/cubetiq-express-server.git packages/cubetiq-express-server
``` ```
- Install - Install and Build Packages
```shell ```shell
yarn yarn && npx lerna run build
``` ```
- Start - Start

View File

@@ -6,7 +6,7 @@
"private": true, "private": true,
"scripts": { "scripts": {
"start": "ts-node-dev --respawn --transpile-only src/app.ts", "start": "ts-node-dev --respawn --transpile-only src/app.ts",
"build": "rm -rf dist && tsc", "build": "lerna run build && rm -rf dist && tsc",
"serve": "yarn build && node dist/app.js", "serve": "yarn build && node dist/app.js",
"bootstrap": "lerna bootstrap", "bootstrap": "lerna bootstrap",
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",