@jakubmazanec/carson-templates 7.1.0 → 7.2.0-unstable.b8904660
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 +3 -3
- package/templates/prettier.config.cjs.ejs +7 -4
- package/templates/projects/carson-templates/eslint.config.js.ejs +2 -0
- package/templates/projects/changesets-changelog/eslint.config.mjs.ejs +1 -0
- package/templates/projects/eslint-config/eslint.config.js.ejs +1 -0
- package/templates/projects/library/eslint.config.js.ejs +1 -0
- package/templates/projects/react-library/prettier.config.cjs.ejs +7 -4
- package/templates/projects/remix-app/eslint.config.js.ejs +1 -0
- package/templates/projects/remix-app/prettier.config.cjs.ejs +7 -4
- package/templates/projects/remix-app/react-router.config.ts.ejs +10 -8
- package/templates/typedoc.config.cjs.ejs +4 -3
- package/templates/workspace/eslint.config.js.ejs +1 -0
- package/templates/workspace/prettier.config.cjs.ejs +20 -1
- package/templates/workspace/renovate.json.ejs +36 -28
- package/templates/workspace/tsconfig.json.ejs +8 -5
- package/templates/workspace/turbo.json.ejs +49 -46
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jakubmazanec/carson-templates",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.0-unstable.b8904660",
|
|
4
4
|
"description": "Collection of Carson templates.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"semver": "^7.7.3"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@jakubmazanec/carson": "
|
|
37
|
+
"@jakubmazanec/carson": "3.0.4-unstable.b8904660",
|
|
38
38
|
"@jakubmazanec/eslint-config": "^4.1.0",
|
|
39
39
|
"@jakubmazanec/fs-utils": "^0.2.0",
|
|
40
40
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"zen-observable": "^0.10.0"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@jakubmazanec/carson": "
|
|
61
|
+
"@jakubmazanec/carson": "3.0.4-unstable.b8904660"
|
|
62
62
|
},
|
|
63
63
|
"packageManager": "npm@11.3.0",
|
|
64
64
|
"engines": {
|
|
@@ -3,10 +3,13 @@ to: 'prettier.config.cjs'
|
|
|
3
3
|
strategy: overwrite
|
|
4
4
|
---
|
|
5
5
|
<%
|
|
6
|
-
let prettierConfig =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
let prettierConfig = lodash.merge(
|
|
7
|
+
{
|
|
8
|
+
...PRETTIER_OPTIONS,
|
|
9
|
+
plugins: ['prettier-plugin-packagejson'],
|
|
10
|
+
},
|
|
11
|
+
project.config.overrides?.prettierConfig ?? {},
|
|
12
|
+
);
|
|
10
13
|
-%>
|
|
11
14
|
/**
|
|
12
15
|
* DO NOT EDIT!
|
|
@@ -9,6 +9,7 @@ strategy: overwrite
|
|
|
9
9
|
*
|
|
10
10
|
* Run `npx carson update workspace` to regenerate.
|
|
11
11
|
*/
|
|
12
|
+
|
|
12
13
|
import main, {nodejs, prettier} from '@jakubmazanec/eslint-config';
|
|
13
14
|
|
|
14
15
|
export default [
|
|
@@ -18,4 +19,5 @@ export default [
|
|
|
18
19
|
{
|
|
19
20
|
ignores: <%- JSON.stringify(LINT_IGNORES, null, 2) %>,
|
|
20
21
|
},
|
|
22
|
+
<%- project.config.overrides?.eslintConfig ? JSON.stringify(project.config.overrides.eslintConfig, null, 2) : '' %>
|
|
21
23
|
];
|
|
@@ -3,10 +3,13 @@ to: 'prettier.config.cjs'
|
|
|
3
3
|
strategy: overwrite
|
|
4
4
|
---
|
|
5
5
|
<%
|
|
6
|
-
let prettierConfig =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
let prettierConfig = lodash.merge(
|
|
7
|
+
{
|
|
8
|
+
...PRETTIER_OPTIONS,
|
|
9
|
+
plugins: ['prettier-plugin-packagejson', 'prettier-plugin-tailwindcss'],
|
|
10
|
+
},
|
|
11
|
+
project.config.overrides?.prettierConfig ?? {},
|
|
12
|
+
);
|
|
10
13
|
-%>
|
|
11
14
|
/**
|
|
12
15
|
* DO NOT EDIT!
|
|
@@ -3,10 +3,13 @@ to: 'prettier.config.cjs'
|
|
|
3
3
|
strategy: overwrite
|
|
4
4
|
---
|
|
5
5
|
<%
|
|
6
|
-
let prettierConfig =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
let prettierConfig = lodash.merge(
|
|
7
|
+
{
|
|
8
|
+
...PRETTIER_OPTIONS,
|
|
9
|
+
plugins: ['prettier-plugin-packagejson', 'prettier-plugin-tailwindcss'],
|
|
10
|
+
},
|
|
11
|
+
project.config.overrides?.prettierConfig ?? {},
|
|
12
|
+
);
|
|
10
13
|
-%>
|
|
11
14
|
/**
|
|
12
15
|
* DO NOT EDIT!
|
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
to: 'react-router.config.ts'
|
|
3
3
|
strategy: overwrite
|
|
4
4
|
---
|
|
5
|
+
<%
|
|
6
|
+
let reactRouterConfig = lodash.merge(
|
|
7
|
+
{
|
|
8
|
+
appDirectory: SOURCE_DIRECTORY,
|
|
9
|
+
ssr: true,
|
|
10
|
+
},
|
|
11
|
+
project.config.overrides?.reactRouterConfig ?? {},
|
|
12
|
+
);
|
|
13
|
+
-%>
|
|
5
14
|
/**
|
|
6
15
|
* DO NOT EDIT!
|
|
7
16
|
* This file was autogenerated by Carson.
|
|
@@ -11,12 +20,5 @@ strategy: overwrite
|
|
|
11
20
|
*/
|
|
12
21
|
|
|
13
22
|
import {type Config} from '@react-router/dev/config';
|
|
14
|
-
import _ from 'lodash';
|
|
15
23
|
|
|
16
|
-
export default
|
|
17
|
-
{
|
|
18
|
-
appDirectory: <%- JSON.stringify(SOURCE_DIRECTORY) %>,
|
|
19
|
-
ssr: true,
|
|
20
|
-
},
|
|
21
|
-
<%- JSON.stringify(project.config.overrides?.reactRouterConfig ?? {}, null, 2) %>,
|
|
22
|
-
) satisfies Config;
|
|
24
|
+
export default <%- JSON.stringify(reactRouterConfig, null, 2) %> satisfies Config;
|
|
@@ -1,3 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
2
|
+
to: 'prettier.config.cjs'
|
|
3
|
+
strategy: overwrite
|
|
3
4
|
---
|
|
5
|
+
<%
|
|
6
|
+
let prettierConfig = lodash.merge(
|
|
7
|
+
{
|
|
8
|
+
...PRETTIER_OPTIONS,
|
|
9
|
+
plugins: ['prettier-plugin-packagejson'],
|
|
10
|
+
},
|
|
11
|
+
workspace.config.overrides?.prettierConfig ?? {},
|
|
12
|
+
);
|
|
13
|
+
-%>
|
|
14
|
+
/**
|
|
15
|
+
* DO NOT EDIT!
|
|
16
|
+
* This file was autogenerated by Carson.
|
|
17
|
+
* Changes may cause incorrect behavior and will be lost when the file is regenerated.
|
|
18
|
+
*
|
|
19
|
+
* Run `npx carson update workspace` to regenerate.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
module.exports = <%- JSON.stringify(prettierConfig, null, 2) %>;
|
|
@@ -2,33 +2,41 @@
|
|
|
2
2
|
to: 'renovate.json'
|
|
3
3
|
strategy: overwrite
|
|
4
4
|
---
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
<%
|
|
6
|
+
let renovateConfig = lodash.merge(
|
|
7
|
+
{
|
|
8
|
+
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
|
|
9
|
+
extends: [
|
|
10
|
+
':dependencyDashboard',
|
|
11
|
+
':ignoreModulesAndTests',
|
|
12
|
+
'group:monorepos',
|
|
13
|
+
'group:recommended',
|
|
14
|
+
'replacements:all',
|
|
15
|
+
'workarounds:all',
|
|
16
|
+
],
|
|
17
|
+
|
|
18
|
+
enabledManagers: ['npm', 'nodenv', 'nvm', 'github-actions'],
|
|
19
|
+
rangeStrategy: 'bump',
|
|
20
|
+
minimumReleaseAge: '14 days',
|
|
21
|
+
|
|
22
|
+
packageRules: [
|
|
23
|
+
{
|
|
24
|
+
matchUpdateTypes: ['major', 'minor', 'patch'],
|
|
25
|
+
matchDepTypes: ['devDependencies'],
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
matchDepTypes: ['peerDependencies'],
|
|
29
|
+
rangeStrategy: 'replace',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
matchDepTypes: ['overrides'],
|
|
33
|
+
enabled: false,
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
workspace.config.overrides?.renovate ?? {},
|
|
38
|
+
);
|
|
39
|
+
-%>
|
|
40
|
+
<%- JSON.stringify(renovateConfig, null, 2) %>
|
|
15
41
|
|
|
16
|
-
"enabledManagers": ["npm", "nodenv", "nvm", "github-actions"],
|
|
17
|
-
"rangeStrategy": "bump",
|
|
18
|
-
"minimumReleaseAge": "14 days",
|
|
19
42
|
|
|
20
|
-
"packageRules": [
|
|
21
|
-
{
|
|
22
|
-
"matchUpdateTypes": ["major", "minor", "patch"],
|
|
23
|
-
"matchDepTypes": ["devDependencies"]
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"matchDepTypes": ["peerDependencies"],
|
|
27
|
-
"rangeStrategy": "replace"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"matchDepTypes": ["overrides"],
|
|
31
|
-
"enabled": false
|
|
32
|
-
}
|
|
33
|
-
]
|
|
34
|
-
}
|
|
@@ -3,14 +3,17 @@ to: 'tsconfig.json'
|
|
|
3
3
|
strategy: overwrite
|
|
4
4
|
---
|
|
5
5
|
<%
|
|
6
|
-
let tsconfig =
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
let tsconfig = lodash.merge(
|
|
7
|
+
{
|
|
8
|
+
compilerOptions: {
|
|
9
|
+
...TSCONFIG_COMPILER_OPTIONS,
|
|
9
10
|
noEmit: true,
|
|
10
11
|
rootDir: '.',
|
|
12
|
+
},
|
|
13
|
+
include: ['./*', './tools/**/*'],
|
|
11
14
|
},
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
workspace.config.overrides?.tsconfig ?? {},
|
|
16
|
+
);
|
|
14
17
|
-%>
|
|
15
18
|
//
|
|
16
19
|
// DO NOT EDIT!
|
|
@@ -3,54 +3,57 @@ to: 'turbo.json'
|
|
|
3
3
|
strategy: overwrite
|
|
4
4
|
---
|
|
5
5
|
<%
|
|
6
|
-
let turboConfig =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
6
|
+
let turboConfig = lodash.merge(
|
|
7
|
+
{
|
|
8
|
+
$schema: 'https://turborepo.org/schema.json',
|
|
9
|
+
tasks: {
|
|
10
|
+
build: {
|
|
11
|
+
dependsOn: ['^build', 'codegen'],
|
|
12
|
+
outputs: [`${BUILD_DIRECTORY}/**`],
|
|
13
|
+
},
|
|
14
|
+
clean: {
|
|
15
|
+
cache: false,
|
|
16
|
+
},
|
|
17
|
+
codegen: {
|
|
18
|
+
cache: false,
|
|
19
|
+
},
|
|
20
|
+
develop: {
|
|
21
|
+
dependsOn: ['^build', 'codegen'],
|
|
22
|
+
cache: false,
|
|
23
|
+
persistent: true,
|
|
24
|
+
},
|
|
25
|
+
document: {
|
|
26
|
+
dependsOn: ['^build', 'codegen'],
|
|
27
|
+
outputs: ['docs/**'],
|
|
28
|
+
},
|
|
29
|
+
format: {
|
|
30
|
+
cache: false,
|
|
31
|
+
},
|
|
32
|
+
lint: {
|
|
33
|
+
dependsOn: ['^build', 'codegen'],
|
|
34
|
+
outputs: [],
|
|
35
|
+
},
|
|
36
|
+
test: {
|
|
37
|
+
dependsOn: ['^build', 'codegen', 'typecheck', 'lint'],
|
|
38
|
+
outputs: ['coverage/**'],
|
|
39
|
+
},
|
|
40
|
+
typecheck: {
|
|
41
|
+
dependsOn: ['^build', 'codegen'],
|
|
42
|
+
outputs: [],
|
|
43
|
+
},
|
|
42
44
|
},
|
|
45
|
+
globalEnv: ['CI'],
|
|
46
|
+
globalDependencies: [
|
|
47
|
+
'.editorconfig',
|
|
48
|
+
'.prettierignore',
|
|
49
|
+
'eslint.config.js',
|
|
50
|
+
'prettier.config.cjs',
|
|
51
|
+
'tsconfig.json',
|
|
52
|
+
'tsconfig.typecheck.json',
|
|
53
|
+
],
|
|
43
54
|
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
'.editorconfig',
|
|
47
|
-
'.prettierignore',
|
|
48
|
-
'eslint.config.js',
|
|
49
|
-
'prettier.config.cjs',
|
|
50
|
-
'tsconfig.json',
|
|
51
|
-
'tsconfig.typecheck.json',
|
|
52
|
-
],
|
|
53
|
-
};
|
|
55
|
+
workspace.config.overrides?.turbo ?? {},
|
|
56
|
+
);
|
|
54
57
|
|
|
55
58
|
if (workspace.projects.some((project) => project.config.deployment?.appName)) {
|
|
56
59
|
turboConfig.globalEnv.push('VITE_APP_URL');
|