generator-folklore 3.0.44 → 3.0.45
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.
|
@@ -22,7 +22,7 @@ class AgentsGenerator extends _generator.default {
|
|
|
22
22
|
const hasPackageJson = this.fs.exists(this.destinationPath('package.json'));
|
|
23
23
|
const existingContent = this.fs.exists(destPath) ? this.fs.read(destPath) : '';
|
|
24
24
|
const separator = '\n\n---\n\n';
|
|
25
|
-
const parts = [this.fs.read(this.templatePath('general.md')), hasComposerJson ? this.fs.read(this.templatePath('laravel.md')) : null, hasPackageJson ? this.fs.read(this.templatePath('frontend.md')) : null].filter(it => it !== null).join(separator);
|
|
25
|
+
const parts = [this.fs.read(this.templatePath('general.md')), hasComposerJson ? this.fs.read(this.templatePath('laravel.md')) : null, hasPackageJson ? this.fs.read(this.templatePath('frontend.md')) : null, this.fs.read(this.templatePath('after.md'))].filter(it => it !== null).join(separator);
|
|
26
26
|
const newContent = existingContent.length > 0 ? `${existingContent}${separator}${parts}` : parts;
|
|
27
27
|
this.fs.write(destPath, newContent);
|
|
28
28
|
}
|
|
@@ -19,3 +19,4 @@
|
|
|
19
19
|
- Organize global types in `.d.ts` files in the `types` folder
|
|
20
20
|
- Add className props for style composition and when needed add className props for inner elements
|
|
21
21
|
- Don't write string, use i18n components from react-intl
|
|
22
|
+
- Always add a `description` to i18n message and don't define `id`
|
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
"trailingComma": "all",
|
|
6
6
|
"tabWidth": 4,
|
|
7
7
|
"importOrder": [
|
|
8
|
+
"\\.global\\.s?css$",
|
|
8
9
|
"<THIRD_PARTY_MODULES>",
|
|
9
10
|
"^[./](.*)?/(utils|hooks|lib)",
|
|
10
11
|
"^[./].*(?<!(\\.[a-z]+))$",
|
|
11
|
-
"\\.
|
|
12
|
+
"\\.s?css$",
|
|
12
13
|
"\\.[a-z]+$"
|
|
13
14
|
],
|
|
14
15
|
"importOrderSeparation": true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "generator-folklore",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.45",
|
|
4
4
|
"description": "Yeoman generator for projects at Folklore",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yeoman-generator"
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"yeoman-generator": "5.9.0",
|
|
41
41
|
"yeoman-remote": "^1.0.1"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "39cebabcb64d071a301fd92e1787e276b6969a67"
|
|
44
44
|
}
|