I think I found the soution but Let me explain more,
The Base application resource folder has a structure like this
- js/
- vendor/
- base/
- package_name/
- routes.js
- components/
- pages/
- router.js
- pages/
- components/
the vendor/package_name/routes.js is actually a dictionary of routes. the router.js is discovering whatever routes is in vendor folder, merge them together and feed it to Vue Router.
this gives us enough flexibility so each team can have as many component or pages as they want and just feed the base app with a dictionary to work with.
the main problem was the js/css files lives in the Laravel Package, i read the documentation for publishing assets and i missed the section for resource_path() function .
i think i can publish my assests like this
public function boot()
{
$this->publishes([
__DIR__.'/../resources/js' => resource_path('js/vendor/package_name'),
]);
}
and same way for css
if you see any problem with this approach please let me know.
thanks