@icebreakers/monorepo 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ node_modules
2
+ .git
3
+ .gitignore
4
+ *.md
5
+ dist
@@ -9,10 +9,11 @@
9
9
  },
10
10
  // Silent the stylistic rules in you IDE, but still auto fix them
11
11
  "eslint.rules.customizations": [
12
- {
13
- "rule": "style/*",
14
- "severity": "off"
15
- },
12
+ // close "style/* off"
13
+ // {
14
+ // "rule": "style/*",
15
+ // "severity": "off"
16
+ // },
16
17
  {
17
18
  "rule": "format/*",
18
19
  "severity": "off"
@@ -0,0 +1,27 @@
1
+ FROM node:20-alpine AS base
2
+ ENV PNPM_HOME="/pnpm"
3
+ ENV PATH="$PNPM_HOME:$PATH"
4
+ RUN corepack enable
5
+
6
+ FROM base AS builder
7
+ COPY . /usr/src/app
8
+ WORKDIR /usr/src/app
9
+ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
10
+ RUN pnpm run -r build
11
+ RUN pnpm deploy --filter=@icebreakers/foo --prod /prod/foo
12
+ RUN pnpm deploy --filter=@icebreakers/bar --prod /prod/bar
13
+
14
+ FROM base AS foo
15
+ COPY --from=builder /prod/foo /prod/foo
16
+ WORKDIR /prod/foo
17
+ EXPOSE 8000
18
+ CMD [ "pnpm", "start" ]
19
+
20
+ FROM base AS bar
21
+ COPY --from=builder /prod/bar /prod/bar
22
+ WORKDIR /prod/bar
23
+ EXPOSE 8001
24
+ CMD [ "pnpm", "start" ]
25
+
26
+ # docker build . --target foo --tag foo:latest
27
+ # docker build . --target bar --tag bar:latest
@@ -20,7 +20,6 @@
20
20
  "^build"
21
21
  ]
22
22
  },
23
- "release": {},
24
- "start": {}
23
+ "release": {}
25
24
  }
26
25
  }
package/package.json CHANGED
@@ -1,11 +1,14 @@
1
1
  {
2
2
  "name": "@icebreakers/monorepo",
3
3
  "type": "module",
4
- "version": "0.0.4",
4
+ "version": "0.0.6",
5
5
  "description": "my monorepo config copyer",
6
- "author": "",
6
+ "author": "sonofmagic",
7
7
  "license": "MIT",
8
- "keywords": [],
8
+ "homepage": "https://github.com/sonofmagic/monorepo-template",
9
+ "keywords": [
10
+ "monorepo"
11
+ ],
9
12
  "sideEffects": false,
10
13
  "exports": {
11
14
  ".": {