Configuration
All configuration is hidden in the package @acanto/laravel-scripts
published on npm, your project just uses its package.json
file to apply some necessary configurations and run the scripts. In this way a project have fewerdependencies
and the scripts can be updated separately from each project, so that every project can benefit from the updates.
#
package.jsonSome shortcuts are automatically add to your package.json
, for instance:
Each project can override some basic configurations of the scripts from the config
section of it package.json
. The following configuration is required and automatically injected if missing, it can and should be customised accordingly to your specific project:
#
.envThis file (and its variants env.example
, .env.dev
, .env.staging
, .env.production
) will be autogenerated if not found trying to guess the values.
Some useful variables dependent on the environment are automatically made always available to all js and scss files.
Inside all SCSS files you have for instance:
Inside all JS files you have for instance:
All .js
files of your project will get automatically IDE support for these variables (at least in VScode):