dargstack_rgen 0.7.15 → 0.8.0

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.
File without changes
@@ -7,35 +7,20 @@ on:
7
7
  types: [published]
8
8
 
9
9
  jobs:
10
- test:
11
- name: Test
12
- runs-on: ubuntu-latest
13
- steps:
14
- - name: Git checkout
15
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3.1.0
16
- - name: Install
17
- run: |
18
- yarn install --frozen-lockfile
19
- - name: Test
20
- run: |
21
- yarn test
22
- docker:
23
- needs: test
24
- name: Docker
25
- uses: dargmuesli/github-actions/.github/workflows/docker.yml@0.19.10
10
+ build:
11
+ name: Build
12
+ uses: dargmuesli/github-actions/.github/workflows/docker.yml@0.21.2
26
13
  secrets:
27
14
  DOCKER_HUB_ACCESS_TOKEN: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
28
15
  DOCKER_HUB_USER_NAME: ${{ secrets.DOCKER_HUB_USER_NAME }}
29
16
  release-semantic:
30
- needs: docker
31
- name: Semantic Release
32
- uses: dargmuesli/github-actions/.github/workflows/release-semantic.yml@0.19.10
17
+ needs: build
18
+ name: Release (semantic)
19
+ uses: dargmuesli/github-actions/.github/workflows/release-semantic.yml@0.21.2
33
20
  secrets:
34
21
  GH_TOKEN: ${{ secrets.GH_TOKEN }}
35
22
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
36
23
  release-assets:
37
24
  needs: release-semantic
38
- name: Release Assets
39
- uses: dargmuesli/github-actions/.github/workflows/release-assets.yml@0.19.10
40
- with:
41
- TARGET: development
25
+ name: Release (assets)
26
+ uses: dargmuesli/github-actions/.github/workflows/release-assets.yml@0.21.2
@@ -6,7 +6,9 @@ on:
6
6
 
7
7
  jobs:
8
8
  release-schedule:
9
- name: 'Release: Scheduled'
10
- uses: dargmuesli/github-actions/.github/workflows/release-schedule.yml@0.19.10
9
+ name: Release (scheduled)
10
+ uses: dargmuesli/github-actions/.github/workflows/release-schedule.yml@0.21.2
11
11
  secrets:
12
12
  GH_TOKEN: ${{ secrets.GH_TOKEN }}
13
+ with:
14
+ IS_DEBOUNCED: ${{ github.event_name != 'workflow_dispatch' }}
package/.husky/commit-msg CHANGED
@@ -2,4 +2,4 @@
2
2
  # shellcheck source=./_/husky.sh
3
3
  . "$(dirname "$0")/_/husky.sh"
4
4
 
5
- yarn commitlint --edit "$1"
5
+ pnpm commitlint --edit "$1"
package/.nvmrc CHANGED
@@ -1 +1 @@
1
- 18
1
+ 19
package/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ # [0.8.0](https://github.com/dargmuesli/dargstack_rgen/compare/0.7.16...0.8.0) (2022-12-27)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **release:** schedule release ([1697ccd](https://github.com/dargmuesli/dargstack_rgen/commit/1697ccdc042cbc1be093e577d10e099baedb08da))
7
+
8
+
9
+ ### Features
10
+
11
+ * **docker:** move ci from action to dockerfile ([188590f](https://github.com/dargmuesli/dargstack_rgen/commit/188590f3b69e0ead3fc63de64705fae6ac116240))
12
+ * **package:** migrate to pnpm ([bf0a601](https://github.com/dargmuesli/dargstack_rgen/commit/bf0a6019a066843185062b8c941fc96f0f42cdc6))
13
+
14
+ ## [0.7.16](https://github.com/dargmuesli/dargstack_rgen/compare/0.7.15...0.7.16) (2022-12-12)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **release:** schedule release ([a9b0802](https://github.com/dargmuesli/dargstack_rgen/commit/a9b0802a3de21152d9470a5502b288c650095122))
20
+
1
21
  ## [0.7.15](https://github.com/dargmuesli/dargstack_rgen/compare/0.7.14...0.7.15) (2022-11-28)
2
22
 
3
23
 
package/Dockerfile CHANGED
@@ -1,16 +1,48 @@
1
- FROM node:19.1.0-alpine@sha256:c59fb39150e4a7ae14dfd42d3f9874398c7941784b73049c2d274115f00d36c8 AS development
1
+ FROM node:19.3.0-alpine@sha256:3ed634e0f15d3e05a1918c3949963508f7ed56350cf94156e6d804ae577849fa AS development
2
2
 
3
- ENV HUSKY=0
3
+ WORKDIR /srv/app/
4
+
5
+ VOLUME /srv/app
6
+
7
+ ENTRYPOINT ["node", "./src/generator.cjs"]
8
+
9
+
10
+ FROM node:19.3.0-alpine@sha256:3ed634e0f15d3e05a1918c3949963508f7ed56350cf94156e6d804ae577849fa AS fetch
4
11
 
5
12
  WORKDIR /srv/app/
6
13
 
7
- # Copy package files first to increase build cache hits.
8
- COPY ./package.json ./yarn.lock ./
14
+ COPY ./pnpm-lock.yaml ./
9
15
 
10
- RUN yarn install && yarn cache clean
16
+ RUN npm install -g pnpm && \
17
+ pnpm fetch
11
18
 
12
19
  COPY ./ ./
13
20
 
14
- EXPOSE 8080
21
+ RUN pnpm install --offline
22
+
23
+
24
+ FROM node:19.3.0-alpine@sha256:3ed634e0f15d3e05a1918c3949963508f7ed56350cf94156e6d804ae577849fa AS test
25
+
26
+ WORKDIR /srv/app/
27
+
28
+ COPY --from=fetch /srv/app/ ./
29
+
30
+ RUN npm install -g pnpm && \
31
+ pnpm run test
32
+
33
+
34
+ FROM node:19.3.0-alpine@sha256:3ed634e0f15d3e05a1918c3949963508f7ed56350cf94156e6d804ae577849fa AS collect
35
+
36
+ WORKDIR /srv/app/
37
+
38
+ COPY --from=fetch /srv/app/ /srv/app/
39
+ COPY --from=test /srv/app/package.json /tmp/package.json
40
+
41
+
42
+ FROM node:19.3.0-alpine@sha256:3ed634e0f15d3e05a1918c3949963508f7ed56350cf94156e6d804ae577849fa AS production
43
+
44
+ WORKDIR /srv/app/
45
+
46
+ COPY --from=collect /srv/app/ ./
15
47
 
16
- ENTRYPOINT ["node", "./src/generator.js"]
48
+ ENTRYPOINT ["node", "./src/generator.cjs"]
@@ -0,0 +1,14 @@
1
+ const commitlintConfigConventional = require('@commitlint/config-conventional')
2
+
3
+ const ruleMaxLineLength =
4
+ commitlintConfigConventional.rules['body-max-line-length']
5
+
6
+ ruleMaxLineLength[0] = process.env.CI === 'true' ? 1 : 2
7
+
8
+ module.exports = {
9
+ extends: ['@commitlint/config-conventional'],
10
+ rules: {
11
+ 'body-max-line-length': ruleMaxLineLength,
12
+ 'footer-max-line-length': ruleMaxLineLength,
13
+ },
14
+ }
package/package.json CHANGED
@@ -1,36 +1,41 @@
1
1
  {
2
2
  "name": "dargstack_rgen",
3
- "version": "0.7.15",
4
- "scheduleVersion": "0.7.15",
3
+ "version": "0.8.0",
4
+ "scheduleVersion": "0.7.17",
5
5
  "description": "Generates a DargStack stack project readme.",
6
- "main": "src/generator.js",
6
+ "main": "src/generator.cjs",
7
7
  "repository": "https://github.com/dargmuesli/dargstack_rgen.git",
8
8
  "author": "Jonas Thelemann <e-mail@jonas-thelemann.de>",
9
9
  "license": "GPL-3.0-only",
10
10
  "bin": {
11
- "dargstack_rgen": "./src/generator.js"
11
+ "dargstack_rgen": "./src/generator.cjs"
12
+ },
13
+ "type": "module",
14
+ "engines": {
15
+ "node": "19"
16
+ },
17
+ "packageManager": "pnpm@7.20.0",
18
+ "scripts": {
19
+ "postinstall": "if [ -d '.git' ] && [ -d '.husky' ]; then husky install && shx rm -rf .git/hooks && shx ln -s ../.husky .git/hooks; fi",
20
+ "test": "node src/generator.cjs -p test/example_stack -v"
12
21
  },
13
22
  "dependencies": {
14
23
  "deepmerge": "4.2.2",
15
24
  "diff": "5.1.0",
16
25
  "json2md": "2.0.0",
17
- "yaml": "2.1.3",
26
+ "yaml": "2.2.0",
18
27
  "yargs": "17.6.2"
19
28
  },
20
29
  "devDependencies": {
21
30
  "@commitlint/cli": "17.3.0",
22
31
  "@commitlint/config-conventional": "17.3.0",
23
- "eslint": "8.28.0",
32
+ "eslint": "8.30.0",
24
33
  "eslint-config-standard": "17.0.0",
25
34
  "eslint-plugin-import": "2.26.0",
35
+ "eslint-plugin-n": "15.6.0",
26
36
  "eslint-plugin-node": "11.1.0",
27
37
  "eslint-plugin-promise": "6.1.1",
28
- "eslint-plugin-standard": "4.1.0",
29
38
  "husky": "8.0.2",
30
39
  "shx": "0.3.4"
31
- },
32
- "scripts": {
33
- "prepare": "if [[ -d '.git' && -d '.husky' ]]; then husky install && shx rm -rf .git/hooks && shx ln -s ../.husky .git/hooks; fi",
34
- "test": "node src/generator.js -p test/example_stack -v"
35
40
  }
36
41
  }