module VueApp::Core::Helpers::Path
Add path helper
Constants
- VUEAPP_BUILD
- VUEAPP_SRC
Public Instance Methods
app_path()
click to toggle source
Vue app folder path @return [Pathname]
# File lib/vueapp/core/helpers/path.rb, line 13 def app_path Pathname.new(Dir.pwd) end
build_path()
click to toggle source
Vue app build folder path @return [Pathname]
# File lib/vueapp/core/helpers/path.rb, line 19 def build_path if development? app_path.join(VUEAPP_BUILD, 'development') elsif test? app_path.join(VUEAPP_BUILD, 'test') else app_path.join(VUEAPP_BUILD, 'production') end end
src_config_path()
click to toggle source
Vue app source vendor path @return [Pathname]
# File lib/vueapp/core/helpers/path.rb, line 43 def src_config_path src_path.join('config') end
src_path()
click to toggle source
Vue app source code path @return [Pathname]
# File lib/vueapp/core/helpers/path.rb, line 31 def src_path app_path.join(VUEAPP_SRC) end
src_vendor_path()
click to toggle source
Vue app source vendor path @return [Pathname]
# File lib/vueapp/core/helpers/path.rb, line 37 def src_vendor_path src_path.join('_core', 'vendor') end