You might be familiar with npm run command which performs a series of tasks define in package.json file. Package.json file is available in the root of the script.
If you are making any changes under resources/js folder, you need to run below command build the assets.
npm run dev
This will compile all the resources into public folder and now you will be able to see the changes you have made under resources/js folder.
If you go to package.json file, you will get some predefined scripts as below:
npm run dev: This command is short-form for npm run development, which compiles the assets in unminified version.
npm run development: This performs same operation as npm run dev.
npm run watch: This command compiles the assets and watch for the changes.
npm run hot: This command compiles the assets and watch the files with instant reload.
npm run prod: This command is short-form for npm run production, which compiles the assets in minified version.
npm run production: This performs same operation as npm run prod.
You can also define dependencies and developer dependencies for your project in this package.json file. For example, Vuex library is used in this script, therefore it is added in devDependency. You can add any dependency and install it via npm install command.
You can also use Yarn if you have it installed on your system. You just have to use 'yarn' instead of 'npm run'.
If you have an query regarding this, please raise a ticket at https://support.kodemint.in