js_dependency 0.3.7 → 0.3.10

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: eed9f17f75fff9405d112f14ac2cccffffa9ecce728c718ff9a14eda3396c5ba
4
- data.tar.gz: 645a8b5ab4363e2d1c4d7f6b25c79c0908d3f4a8ed78a928590c8d25e841c0e4
3
+ metadata.gz: 153a609f4227a43182ed6e6a469bcfe466ffe130c5f6d8033771545ca13b4198
4
+ data.tar.gz: 32cd8dd2ec33e8906b0bad39c8a4a6378e4909285486f52b6c93915891bed8bb
5
5
  SHA512:
6
- metadata.gz: 2b1160dfd6319369750cf8d10feffd4b703aa72ba1d0199e5e1e9bb341316beda0a07e7982f83675435e9642edd29fd999d5953c32c5f90aa95b2b81322f8ed8
7
- data.tar.gz: ff0eb122ee309e0ba743c5c422e6ff21641e04131d5ec3da650781ec2e22f6878cbeaf2e006e03fc68dd170d64b80ca5d91471fa3259d4b4384bb67d9853782a
6
+ metadata.gz: 63e3437906da40a60ed9e129dc8b2a3157221a61d34982bce433dfb8f8b3c7ee198cba9c85b6f230079db5a3a08fe9bb1c103d38763ce139a5aed81ecf5c9e10
7
+ data.tar.gz: cf47aa344e700868b2dd76c67ad4323acc2a47e9f0e4d9736d0ae30a981715bb639c52b4d9322b243122879abaf892b314479d39a3c29e4dba56df848cfbe0a0
data/.rubocop_todo.yml CHANGED
@@ -1,47 +1,42 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2022-08-11 04:37:50 UTC using RuboCop version 1.34.1.
3
+ # on 2022-08-13 03:35:35 UTC using RuboCop version 1.34.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 5
9
+ # Offense count: 3
10
10
  # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes.
11
11
  Metrics/AbcSize:
12
- Max: 42
13
-
14
- # Offense count: 1
15
- # Configuration parameters: CountComments, CountAsOne.
16
- Metrics/ClassLength:
17
- Max: 129
12
+ Max: 33
18
13
 
19
- # Offense count: 5
14
+ # Offense count: 3
20
15
  # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
21
16
  Metrics/CyclomaticComplexity:
22
- Max: 18
17
+ Max: 19
23
18
 
24
- # Offense count: 9
19
+ # Offense count: 8
25
20
  # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
26
21
  Metrics/MethodLength:
27
- Max: 26
22
+ Max: 19
28
23
 
29
24
  # Offense count: 3
30
25
  # Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
31
26
  Metrics/ParameterLists:
32
27
  Max: 9
33
28
 
34
- # Offense count: 5
29
+ # Offense count: 3
35
30
  # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
36
31
  Metrics/PerceivedComplexity:
37
- Max: 19
32
+ Max: 20
38
33
 
39
34
  # Offense count: 1
40
35
  Style/MultilineBlockChain:
41
36
  Exclude:
42
37
  - 'lib/js_dependency/mermaid/root.rb'
43
38
 
44
- # Offense count: 4
39
+ # Offense count: 9
45
40
  # This cop supports safe autocorrection (--autocorrect).
46
41
  # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
47
42
  # URISchemes: http, https
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.3.10] - 2022-08-13
4
+
5
+ - Add file_config options to specify configuration yaml which user like.
6
+
7
+ ## [0.3.9] - 2022-08-12
8
+
9
+ - Add alias_paths options of hash.
10
+
11
+ ## [0.3.8] - 2022-08-11
12
+
13
+ - `.js_dependecy.yaml` is arrowed for configuration file name.
14
+ - Refactor codes.
15
+ - Add test codes.
16
+
3
17
  ## [0.3.7] - 2022-08-11
4
18
 
5
19
  - If target is index.js, orphan include in analysis.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- js_dependency (0.3.7)
4
+ js_dependency (0.3.10)
5
5
  pathname
6
6
  thor
7
7
  yaml
data/README.md CHANGED
@@ -46,6 +46,12 @@ excludes: # Exclude words that you want to skip from export.
46
46
  - excludeWord2
47
47
  ```
48
48
 
49
+ If you want to specify .js_dependency.yml as another path, you can add option path by `-f` option.
50
+
51
+ ```shell
52
+ js_dependency -f path/to/yourfilename.yml
53
+ ```
54
+
49
55
  Each parameter is overridden by the command line.
50
56
 
51
57
  ```
@@ -56,6 +62,7 @@ parent_analyze_level -> -p
56
62
  name_level -> -n
57
63
  output_path -> -o
58
64
  exclude -> -e
65
+ alias_paths -> -a
59
66
  ```
60
67
 
61
68
  #### Export Mermaid Format
@@ -63,31 +70,31 @@ exclude -> -e
63
70
  ##### Single target path
64
71
 
65
72
  ```shell
66
- js_dependency -s ./src -t ./src/App.vue -o ./mermaid.txt -c 2 -p 2 -n 1
73
+ js_dependency -s ./src -t ./src/App.vue -o ./mermaid.txt -c 2 -p 2 -n 1 -a @:./pages
67
74
  ```
68
75
 
69
76
  ##### Multiple target paths
70
77
 
71
78
  ```shell
72
- js_dependency -s ./src -t ./src/App.vue ./src/components/Sub.vue -o ./mermaid.txt -c 2 -p 2 -n 1
79
+ js_dependency -s ./src -t ./src/App.vue ./src/components/Sub.vue -o ./mermaid.txt -c 2 -p 2 -n 1 -a @:./pages
73
80
  ```
74
81
 
75
- ##### Exclude path which iclude exclude words `-e` from output
82
+ ##### Exclude path which include exclude words `-e` from output
76
83
 
77
84
  ```shell
78
- js_dependency -s ./src -t ./src/App.vue -o ./mermaid.txt -c 2 -p 2 -n 1 -e excludeWord1 excludeWord2
85
+ js_dependency -s ./src -t ./src/App.vue -o ./mermaid.txt -c 2 -p 2 -n 1 -e excludeWord1 excludeWord2 -a @:./pages
79
86
  ```
80
87
 
81
88
  #### Export parents components list
82
89
 
83
90
  ```shell
84
- js_dependency parents -s ./src -t ./src/App.vue -o ./parents.txt -p 2
91
+ js_dependency parents -s ./src -t ./src/App.vue -o ./parents.txt -p 2 -a @:./pages
85
92
  ```
86
93
 
87
94
  #### Export children components list
88
95
 
89
96
  ```shell
90
- js_dependency childrent -s ./src -t ./src/App.vue -o ./children.txt -c 2
97
+ js_dependency childrent -s ./src -t ./src/App.vue -o ./children.txt -c 2 -a @:./pages
91
98
  ```
92
99
 
93
100
  #### Export orphan components list
@@ -95,7 +102,7 @@ js_dependency childrent -s ./src -t ./src/App.vue -o ./children.txt -c 2
95
102
  Components that are not used in other components.
96
103
 
97
104
  ```shell
98
- js_dependency orphan -s ./src
105
+ js_dependency orphan -s ./src -a @:./pages
99
106
  ```
100
107
 
101
108
  #### Export left components list
@@ -103,7 +110,7 @@ js_dependency orphan -s ./src
103
110
  Components that do not import other components.
104
111
 
105
112
  ```shell
106
- js_dependency leave -s ./src
113
+ js_dependency leave -s ./src -a @:./pages
107
114
  ```
108
115
 
109
116
  ### By ruby code
@@ -8,152 +8,101 @@ module JsDependency
8
8
  default_command :export_mermaid
9
9
 
10
10
  desc "export_mermaid", "Output mermaid flowchart string."
11
- option :src_path, type: :string, aliases: "-s", desc: "Root folder."
12
- option :target_paths, type: :array, aliases: "-t", desc: "Target file that you want to analyze."
13
- option :output_path, type: :string, aliases: "-o", desc: "Output file path"
14
- option :child_analyze_level, type: :numeric, aliases: "-c", desc: "Output level of child dependency"
15
- option :parent_analyze_level, type: :numeric, aliases: "-p", desc: "Output level of parent dependency"
16
- option :name_level, type: :numeric, aliases: "-n", desc: "Output name level"
17
- option :excludes, type: :array, aliases: "-e", desc: "Exclude the word that is included in the path"
11
+ method_option :src_path, type: :string, aliases: "-s", desc: "Root folder."
12
+ method_option :target_paths, type: :array, aliases: "-t", desc: "Target file that you want to analyze."
13
+ method_option :output_path, type: :string, aliases: "-o", desc: "Output file path"
14
+ method_option :child_analyze_level, type: :numeric, aliases: "-c", desc: "Output level of child dependency"
15
+ method_option :parent_analyze_level, type: :numeric, aliases: "-p", desc: "Output level of parent dependency"
16
+ method_option :name_level, type: :numeric, aliases: "-n", desc: "Output name level"
17
+ method_option :excludes, type: :array, aliases: "-e", desc: "Exclude the word that is included in the path"
18
+ method_option :alias_paths, type: :hash, aliases: "-a", desc: "Alias paths by hash format."
19
+ method_option :file_config, type: :string, aliases: "-f", desc: "Configuration file path."
18
20
 
19
21
  def export_mermaid
20
- pathname = Pathname.new(".js_dependency.yml")
21
- args = {}
22
- args = YAML.safe_load(pathname.read) if pathname.exist?
23
-
24
- src_path = options[:src_path] || args["src_path"]
25
- target_paths = options[:target_paths] || (args["target_path"].is_a?(String) ? [args["target_path"]] : args["target_path"])
26
- child_analyze_level = options[:child_analyze_level] || args["child_analyze_level"] || 2
27
- parent_analyze_level = options[:parent_analyze_level] || args["parent_analyze_level"] || 2
28
- output_path = options[:output_path] || args["output_path"] || nil
29
- alias_paths = args["alias_paths"] || nil
30
- name_level = options[:name_level] || args["name_level"] || 1
31
- excludes = if options[:excludes]&.length&.positive?
32
- options[:excludes]
33
- elsif args["excludes"]
34
- args["excludes"]
35
- end
36
-
37
- str = JsDependency.export_mermaid(
38
- src_path,
39
- target_paths,
40
- child_analyze_level: child_analyze_level,
41
- parent_analyze_level: parent_analyze_level,
42
- output_path: output_path,
43
- alias_paths: alias_paths,
44
- name_level: name_level,
45
- excludes: excludes
22
+ args = JsDependency::CliUtils::Yaml.new(path: options[:file_config]).args
23
+ config = JsDependency::CliUtils::Config.new(options, args)
24
+ puts JsDependency.export_mermaid(
25
+ config.src_path,
26
+ config.target_paths,
27
+ child_analyze_level: config.child_analyze_level,
28
+ parent_analyze_level: config.parent_analyze_level,
29
+ output_path: config.output_path,
30
+ alias_paths: config.alias_paths,
31
+ name_level: config.name_level,
32
+ excludes: config.excludes
46
33
  )
47
-
48
- puts str
49
34
  end
50
35
 
51
36
  desc "parents", "export parents list"
52
- option :src_path, type: :string, aliases: "-s", desc: "Root folder."
53
- option :target_path, type: :string, aliases: "-t", desc: "Target file that you want to analyze."
54
- option :output_path, type: :string, aliases: "-o", desc: "Output file path"
55
- option :parent_analyze_level, type: :numeric, aliases: "-p", desc: "Output level of parent dependency"
56
- option :excludes, type: :array, aliases: "-e", desc: "Exclude the word that is included in the path"
37
+ method_option :src_path, type: :string, aliases: "-s", desc: "Root folder."
38
+ method_option :target_path, type: :string, aliases: "-t", desc: "Target file that you want to analyze."
39
+ method_option :output_path, type: :string, aliases: "-o", desc: "Output file path"
40
+ method_option :parent_analyze_level, type: :numeric, aliases: "-p", desc: "Output level of parent dependency"
41
+ method_option :excludes, type: :array, aliases: "-e", desc: "Exclude the word that is included in the path"
42
+ method_option :alias_paths, type: :hash, aliases: "-a", desc: "Alias paths by hash format."
43
+ method_option :file_config, type: :string, aliases: "-f", desc: "Configuration file path."
57
44
 
58
45
  def parents
59
- pathname = Pathname.new(".js_dependency.yml")
60
- args = {}
61
- args = YAML.safe_load(pathname.read) if pathname.exist?
62
-
63
- src_path = options[:src_path] || args["src_path"]
64
- target_path = options[:target_path] || args["target_path"]
65
- parent_analyze_level = options[:parent_analyze_level] || args["parent_analyze_level"] || 1
66
- output_path = options[:output_path] || args["output_path"] || nil
67
- alias_paths = args["alias_paths"] || nil
68
- excludes = if options[:excludes]&.length&.positive?
69
- options[:excludes]
70
- elsif args["excludes"]
71
- args["excludes"]
72
- end
73
-
74
- str = JsDependency.parents(
75
- src_path,
76
- target_path,
77
- parent_analyze_level: parent_analyze_level,
78
- output_path: output_path,
79
- alias_paths: alias_paths,
80
- excludes: excludes
46
+ args = JsDependency::CliUtils::Yaml.new(path: options[:file_config]).args
47
+ config = JsDependency::CliUtils::Config.new(options, args)
48
+ puts JsDependency.parents(
49
+ config.src_path,
50
+ config.target_path,
51
+ parent_analyze_level: config.parent_analyze_level,
52
+ output_path: config.output_path,
53
+ alias_paths: config.alias_paths,
54
+ excludes: config.excludes
81
55
  ).join("\n")
82
-
83
- puts str
84
56
  end
85
57
 
86
58
  desc "children", "export children list"
87
- option :src_path, type: :string, aliases: "-s", desc: "Root folder."
88
- option :target_path, type: :string, aliases: "-t", desc: "Target file that you want to analyze."
89
- option :output_path, type: :string, aliases: "-o", desc: "Output file path"
90
- option :child_analyze_level, type: :numeric, aliases: "-c", desc: "Output level of child dependency"
91
- option :excludes, type: :array, aliases: "-e", desc: "Exclude the word that is included in the path"
59
+ method_option :src_path, type: :string, aliases: "-s", desc: "Root folder."
60
+ method_option :target_path, type: :string, aliases: "-t", desc: "Target file that you want to analyze."
61
+ method_option :output_path, type: :string, aliases: "-o", desc: "Output file path"
62
+ method_option :child_analyze_level, type: :numeric, aliases: "-c", desc: "Output level of child dependency"
63
+ method_option :excludes, type: :array, aliases: "-e", desc: "Exclude the word that is included in the path"
64
+ method_option :alias_paths, type: :hash, aliases: "-a", desc: "Alias paths by hash format."
65
+ method_option :file_config, type: :string, aliases: "-f", desc: "Configuration file path."
92
66
 
93
67
  def children
94
- pathname = Pathname.new(".js_dependency.yml")
95
- args = {}
96
- args = YAML.safe_load(pathname.read) if pathname.exist?
97
-
98
- src_path = options[:src_path] || args["src_path"]
99
- target_path = options[:target_path] || args["target_path"]
100
- child_analyze_level = options[:child_analyze_level] || args["child_analyze_level"] || 1
101
- output_path = options[:output_path] || args["output_path"] || nil
102
- alias_paths = args["alias_paths"] || nil
103
- excludes = if options[:excludes]&.length&.positive?
104
- options[:excludes]
105
- elsif args["excludes"]
106
- args["excludes"]
107
- end
108
-
109
- str = JsDependency.children(
110
- src_path,
111
- target_path,
112
- child_analyze_level: child_analyze_level,
113
- output_path: output_path,
114
- alias_paths: alias_paths,
115
- excludes: excludes
68
+ args = JsDependency::CliUtils::Yaml.new(path: options[:file_config]).args
69
+ config = JsDependency::CliUtils::Config.new(options, args)
70
+ puts JsDependency.children(
71
+ config.src_path,
72
+ config.target_path,
73
+ child_analyze_level: config.child_analyze_level,
74
+ output_path: config.output_path,
75
+ alias_paths: config.alias_paths,
76
+ excludes: config.excludes
116
77
  ).join("\n")
117
-
118
- puts str
119
78
  end
120
79
 
121
80
  desc "orphan", "export components than is not depended by others"
122
- option :src_path, type: :string, aliases: "-s", desc: "Root folder."
81
+ method_option :src_path, type: :string, aliases: "-s", desc: "Root folder."
82
+ method_option :alias_paths, type: :hash, aliases: "-a", desc: "Alias paths by hash format."
83
+ method_option :file_config, type: :string, aliases: "-f", desc: "Configuration file path."
123
84
 
124
85
  def orphan
125
- pathname = Pathname.new(".js_dependency.yml")
126
- args = {}
127
- args = YAML.safe_load(pathname.read) if pathname.exist?
128
-
129
- src_path = options[:src_path] || args["src_path"]
130
- alias_paths = args["alias_paths"] || nil
131
-
132
- str = JsDependency.orphan(
133
- src_path,
134
- alias_paths: alias_paths
86
+ args = JsDependency::CliUtils::Yaml.new(path: options[:file_config]).args
87
+ config = JsDependency::CliUtils::Config.new(options, args)
88
+ puts JsDependency.orphan(
89
+ config.src_path,
90
+ alias_paths: config.alias_paths
135
91
  ).join("\n")
136
-
137
- puts str
138
92
  end
139
93
 
140
94
  desc "leave", "export components than is not depended by others"
141
- option :src_path, type: :string, aliases: "-s", desc: "Root folder."
95
+ method_option :src_path, type: :string, aliases: "-s", desc: "Root folder."
96
+ method_option :alias_paths, type: :hash, aliases: "-a", desc: "Alias paths by hash format."
97
+ method_option :file_config, type: :string, aliases: "-f", desc: "Configuration file path."
142
98
 
143
99
  def leave
144
- pathname = Pathname.new(".js_dependency.yml")
145
- args = {}
146
- args = YAML.safe_load(pathname.read) if pathname.exist?
147
-
148
- src_path = options[:src_path] || args["src_path"]
149
- alias_paths = args["alias_paths"] || nil
150
-
151
- str = JsDependency.leave(
152
- src_path,
153
- alias_paths: alias_paths
100
+ args = JsDependency::CliUtils::Yaml.new(path: options[:file_config]).args
101
+ config = JsDependency::CliUtils::Config.new(options, args)
102
+ puts JsDependency.leave(
103
+ config.src_path,
104
+ alias_paths: config.alias_paths
154
105
  ).join("\n")
155
-
156
- puts str
157
106
  end
158
107
 
159
108
  desc "version", "show version"
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ module JsDependency
4
+ module CliUtils
5
+ class Config
6
+ attr_reader :src_path, :target_paths, :target_path, :child_analyze_level, :parent_analyze_level, :output_path,
7
+ :alias_paths, :name_level, :excludes
8
+
9
+ # @param [Hash] options
10
+ # @param [Hash] args
11
+ def initialize(options, args)
12
+ @src_path = options[:src_path] || args[:src_path]
13
+ @target_paths = options[:target_paths] || (args[:target_path].is_a?(String) ? [args[:target_path]] : args[:target_path])
14
+ @target_path = options[:target_path] || args[:target_path]
15
+ @child_analyze_level = options[:child_analyze_level] || args[:child_analyze_level] || 2
16
+ @parent_analyze_level = options[:parent_analyze_level] || args[:parent_analyze_level] || 2
17
+ @output_path = options[:output_path] || args[:output_path] || nil
18
+ @alias_paths = options[:alias_paths] || args[:alias_paths] || {}
19
+ @name_level = options[:name_level] || args[:name_level] || 1
20
+ @excludes = if options[:excludes]&.length&.positive?
21
+ options[:excludes]
22
+ elsif args[:excludes]
23
+ args[:excludes]
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,59 @@
1
+ # frozen_string_literal: true
2
+
3
+ module JsDependency
4
+ module CliUtils
5
+ class Yaml
6
+ attr_reader :dir_path,
7
+ :path
8
+
9
+ # @param [String, nil] dir_path
10
+ # @param [String, nil] path
11
+ def initialize(dir_path: nil, path: nil)
12
+ @dir_path = present?(dir_path) ? dir_path : Dir.pwd
13
+ @path = path
14
+ end
15
+
16
+ # @return [Hash]
17
+ def args
18
+ pathname = if present?(@path)
19
+ Pathname.new(@path)
20
+ else
21
+ config_pathname
22
+ end
23
+
24
+ if pathname.nil?
25
+ {}
26
+ else
27
+ symbolize_keys(YAML.safe_load(pathname.read))
28
+ end
29
+ end
30
+
31
+ private
32
+
33
+ # @param [String] str
34
+ # @return [TrueClass, FalseClass]
35
+ def present?(str)
36
+ return false if str.nil?
37
+ return false if str.empty?
38
+
39
+ true
40
+ end
41
+
42
+ # @return [Pathname, nil]
43
+ def config_pathname
44
+ dir_pathname = Pathname.new(@dir_path)
45
+ pathname = nil
46
+ %w[.js_dependency.yml .js_dependency.yaml].each do |path|
47
+ pathname = (dir_pathname + path) if (dir_pathname + path).exist?
48
+ end
49
+ pathname
50
+ end
51
+
52
+ # @param [Hash] hash
53
+ # @return [Hash]
54
+ def symbolize_keys(hash)
55
+ hash.transform_keys(&:to_sym)
56
+ end
57
+ end
58
+ end
59
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JsDependency
4
- VERSION = "0.3.7"
4
+ VERSION = "0.3.10"
5
5
  end
data/lib/js_dependency.rb CHANGED
@@ -9,6 +9,8 @@ require_relative "js_dependency/mermaid/target_pathname"
9
9
  require_relative "js_dependency/source_analysis/leave"
10
10
  require_relative "js_dependency/source_analysis/orphan"
11
11
  require_relative "js_dependency/pathname_utility"
12
+ require_relative "js_dependency/cli_utils/yaml"
13
+ require_relative "js_dependency/cli_utils/config"
12
14
  require "pathname"
13
15
 
14
16
  module JsDependency
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: js_dependency
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - junara
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-11 00:00:00.000000000 Z
11
+ date: 2022-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pathname
@@ -159,6 +159,8 @@ files:
159
159
  - js_dependency.gemspec
160
160
  - lib/js_dependency.rb
161
161
  - lib/js_dependency/cli.rb
162
+ - lib/js_dependency/cli_utils/config.rb
163
+ - lib/js_dependency/cli_utils/yaml.rb
162
164
  - lib/js_dependency/extractor/extract_import_path.rb
163
165
  - lib/js_dependency/extractor/extract_script_tag.rb
164
166
  - lib/js_dependency/extractor/extract_src_path.rb