|
|
@ -3,13 +3,13 @@ module Docs
|
|
|
|
class EntriesFilter < Docs::EntriesFilter
|
|
|
|
class EntriesFilter < Docs::EntriesFilter
|
|
|
|
|
|
|
|
|
|
|
|
ENTRIES = {
|
|
|
|
ENTRIES = {
|
|
|
|
'Usage' => ['Options', 'Config Files', '@babel/cli', '@babel/polyfill',
|
|
|
|
'Usage' => ['Options', 'Plugins', 'Config Files', 'Compiler assumptions', '@babel/cli', '@babel/polyfill',
|
|
|
|
'@babel/plugin-transform-runtime', '@babel/register'],
|
|
|
|
'@babel/plugin-transform-runtime', '@babel/register'],
|
|
|
|
|
|
|
|
|
|
|
|
'Presets' => ['@babel/preset-env', '@babel/preset-flow', '@babel/preset-react', '@babel/preset-typescript'],
|
|
|
|
'Presets' => ['@babel/preset'],
|
|
|
|
|
|
|
|
|
|
|
|
'Tooling' => ['@babel/parser', '@babel/core', '@babel/generator', '@babel/code-frame',
|
|
|
|
'Tooling' => ['@babel/parser', '@babel/core', '@babel/generator', '@babel/code-frame',
|
|
|
|
'@babel/helpers', '@babel/runtime', '@babel/template', '@babel/traverse', '@babel/types']
|
|
|
|
'@babel/helper', '@babel/runtime', '@babel/template', '@babel/traverse', '@babel/types', '@babel/standalone']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
def get_name
|
|
|
|
def get_name
|
|
|
@ -18,7 +18,7 @@ module Docs
|
|
|
|
|
|
|
|
|
|
|
|
def get_type
|
|
|
|
def get_type
|
|
|
|
ENTRIES.each do |key, value|
|
|
|
|
ENTRIES.each do |key, value|
|
|
|
|
return key if value.include?(name)
|
|
|
|
return key if value.any? { |val| name.start_with?(val) }
|
|
|
|
return 'Other Plugins' if subpath.include?('babel-plugin')
|
|
|
|
return 'Other Plugins' if subpath.include?('babel-plugin')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|