Doing this has been a confusing mess as people just argue back and forth the best way to do it as well as people keep writing package after package after package to get JS into a laravel project. I have the following in my package.json file.
These are shogin up in my "node-modules" folder in my root directory of my laravel project.
{
"private": true,
"devDependencies": {
"gulp": "^3.8.8"
},
"dependencies": {
"laravel-elixir": "^3.0.0",
"bootstrap-sass": "^3.0.0",
"jquery": "2.*",
"angular":"1.4.6"
}
}
I also have
@import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap";
in my app.scss file to I think pull in bootstrap.
I'm just used to a non package managed environment. Or an environment without a framework like laravel. Any help appreciated. I've read about just using BOWER but that seems like yet another level when I could just use NPM here.