foobara-empty-typescript-react-project-generator 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6868e43f6619b9b24990d71dfdb7d9eff332ac8770b2af04aed483b88684fda1
4
- data.tar.gz: 5c2ee6300e9f4248e88f5428ab3692a1d5da435ce3ddcb8e175cbc956b8d8353
3
+ metadata.gz: 7d2de82e547950b5f6874b942d5e53ed8c5ea7a7ae23dac3939f9ff6d4c30e9f
4
+ data.tar.gz: a790d1445df69542e132d3004cfc237287847e9a278934ec1da62ef8b0b8fe3f
5
5
  SHA512:
6
- metadata.gz: eb32ddf157e53e8fde840b8daf47500bd9f9f96e57790749bf075cf33e62f36eee02cc5071a569b800c65858e5703ff3c3ab73e97fd532e4dd151f6c91c01f62
7
- data.tar.gz: ca53360a14e98eb82bd9e9a9ba08feefc99ded986c8101705576e522db6ee410644ae05c1b7bb3953f25105a36a19274a18ef893204987c7e998643ae958b7b0
6
+ metadata.gz: '085b1c412cbc858788160b949916a2d9fc73d15153baa81c20c5bebc155a23306835fb75985ff63d91f466c4b5172d6ff2d9428906858fe1147b85f16c4fa38f'
7
+ data.tar.gz: 4c16639faf6219c17b2527f7039e4253af2f2286924cb5bbac15cac36186cc9780cf9fecb15026d81fab64972d6e756a38dfe94eed1ede24893ee8022b13f416
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## [0.0.4] - 2025-01-07
2
+
3
+ - Fix bug caused by uncorrectable lint violation in generated project
4
+ - Bump Ruby to 3.4.1
5
+
1
6
  ## [0.0.3] - 2024-06-21
2
7
 
3
8
  - Include hidden template files/directories in gem
@@ -52,6 +52,7 @@ module Foobara
52
52
  def run_pre_generation_tasks
53
53
  run_npx_create_react_app
54
54
  add_necessary_dev_dependencies_for_eslint
55
+ fix_uncorrectable_lint_violations
55
56
  eslint_fix
56
57
  git_init
57
58
  git_add_all
@@ -96,6 +97,14 @@ module Foobara
96
97
  push_to_github
97
98
  end
98
99
 
100
+ def fix_uncorrectable_lint_violations
101
+ Dir.chdir(project_directory) do
102
+ web_vitals_contents = File.read("src/reportWebVitals.ts")
103
+ web_vitals_contents.gsub!("if (onPerfEntry && ", "if (onPerfEntry != null && ")
104
+ File.write("src/reportWebVitals.ts", web_vitals_contents)
105
+ end
106
+ end
107
+
99
108
  def eslint_fix
100
109
  puts "linting..."
101
110
 
@@ -39,5 +39,7 @@ module.exports = {
39
39
  "@typescript-eslint/triple-slash-reference": "off",
40
40
  "@typescript-eslint/explicit-function-return-type": "off",
41
41
  "@typescript-eslint/no-floating-promises": "off",
42
+ "react/jsx-indent" : ["error", 2],
43
+ "react/jsx-indent-props": ["error", 2]
42
44
  }
43
45
  }
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara-empty-typescript-react-project-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-06-22 00:00:00.000000000 Z
10
+ date: 2025-01-07 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: foobara
@@ -38,7 +37,6 @@ dependencies:
38
37
  - - ">="
39
38
  - !ruby/object:Gem::Version
40
39
  version: '0'
41
- description:
42
40
  email:
43
41
  - azimux@gmail.com
44
42
  executables: []
@@ -68,7 +66,6 @@ metadata:
68
66
  source_code_uri: https://github.com/foobara/generators-empty-typescript-react-project-generator
69
67
  changelog_uri: https://github.com/foobara/generators-empty-typescript-react-project-generator/blob/main/CHANGELOG.md
70
68
  rubygems_mfa_required: 'true'
71
- post_install_message:
72
69
  rdoc_options: []
73
70
  require_paths:
74
71
  - lib
@@ -76,15 +73,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
76
73
  requirements:
77
74
  - - ">="
78
75
  - !ruby/object:Gem::Version
79
- version: 3.2.2
76
+ version: 3.4.0
80
77
  required_rubygems_version: !ruby/object:Gem::Requirement
81
78
  requirements:
82
79
  - - ">="
83
80
  - !ruby/object:Gem::Version
84
81
  version: '0'
85
82
  requirements: []
86
- rubygems_version: 3.4.10
87
- signing_key:
83
+ rubygems_version: 3.6.2
88
84
  specification_version: 4
89
85
  summary: Generates empty typescript react projects
90
86
  test_files: []