@jakubmazanec/carson-templates 2.2.1 → 2.3.0-unstable.1e4eb94

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jakubmazanec/carson-templates",
3
- "version": "2.2.1",
3
+ "version": "2.3.0-unstable.1e4eb94",
4
4
  "description": "Collection of Carson templates.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -2,6 +2,13 @@
2
2
  to: '.eslintrc.cjs'
3
3
  strategy: overwrite
4
4
  ---
5
+ <%
6
+ let lintIgnorePatterns = [
7
+ ...LINT_IGNORE_PATTERNS,
8
+ 'dbschema/edgeql-js/',
9
+ 'dbschema/interfaces.*',
10
+ ];
11
+ -%>
5
12
  /**
6
13
  * DO NOT EDIT!
7
14
  * This file was autogenerated by Carson.
@@ -17,5 +24,5 @@ module.exports = {
17
24
  '@jakubmazanec/eslint-config/nodejs',
18
25
  '@jakubmazanec/eslint-config/prettier',
19
26
  ],
20
- ignorePatterns: <%- JSON.stringify(LINT_IGNORE_PATTERNS, null, 2) %>,
27
+ ignorePatterns: <%- JSON.stringify(lintIgnorePatterns, null, 2) %>,
21
28
  };
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  to: 'Dockerfile'
3
+ if: <%- Boolean(project.config.deployment?.appName) %>
3
4
  strategy: overwrite
4
5
  ---
5
6
  <%
@@ -0,0 +1,7 @@
1
+ ---
2
+ to: 'edgedb.toml'
3
+ if: <%- Boolean(project.config.deployment?.dbInstance) %>
4
+ strategy: overwrite
5
+ ---
6
+ [edgedb]
7
+ server-version = "5.2"
@@ -46,6 +46,30 @@ jobs:
46
46
  node-version: 20
47
47
  registry-url: 'https://registry.npmjs.org'
48
48
 
49
+ <%
50
+ if (workspace.projects.some((project) => project.config.deployment?.dbInstance)) {
51
+ -%>
52
+
53
+ - uses: edgedb/setup-edgedb@v1
54
+ - with:
55
+ server-version: none
56
+ <%
57
+ }
58
+
59
+ for (let project of workspace.projects) {
60
+ if (project.config.deployment?.dbInstance) {
61
+ -%>
62
+
63
+ - name: Authenticate EdgeDB Cloud
64
+ env:
65
+ EDGEDB_SECRET_KEY: ${{ secrets.EDGEDB_TOKEN }}
66
+ run: |
67
+ edgedb project init --link <%- project.config.deployment?.dbInstance %>
68
+ <%
69
+ }
70
+ }
71
+ -%>
72
+
49
73
  - name: Install packages
50
74
  run: npm ci
51
75