Hi, I wonder if there is a complete guide on to instal packages with yarn or NPM. I have done this successfully a few times but it's always a struggle to get it to work together with gulp and elixir.
That are a few packages that you need in alot of projects, for example
bootstrap-datepicker bootstrap-tagsinput datatables font-awesome
What I do when i add these packages is to run;
yarn add bootstrap-tagsinput
It is then loaded into my package.json
Secondly I run
yarn to install all my dependencies
Then i need to import it both in my resources/assets/js and resources/assets/sass
Here comes the tricky part. I then want to import all the code into app.js and app.css so i need to import the files from assests
I do something like this. in the app.js
In the css i do this.
// Fonts @import url(https://fonts.googleapis.com/css?family=Raleway:300,400,600); // Variables @import "variables"; // Bootstrap @import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap"; @import "node_modules/bootstrap-tagsinput/dist/bootstrap-tags-input"; @import "style";
I then guess that
gulp should import all these files into app.css and app.js in my public folder.
Is this correct?