Getting started

Npm commands (Scripts)

Npm scripts help with performing repetitive tasks such as minification, compilation, unit testing, linting, etc. The Finder build system utilizes a collection of JavaScript files, each dedicated to specific tasks. These tasks are orchestrated by corresponding npm scripts that efficiently execute the files as required.

List of available Npm commands (Scripts)

Command Description
npm install This command installs all the Node.js packages and their dependencies specified in the project's package.json file, located in the root directory. It includes packages listed under both dependencies and devDependencies objects.
npm run build This command conducts a series of operations to prepare the project for production: it builds and minifies CSS and JavaScript; generates an icon font from SVG icons; copies vendor files from the node_modules directory to the assets/vendor folder. The command also validates HTML files against W3C standards and creates a distribution folder (dist). It then copies all necessary assets into this folder, including HTML files, and updates links to vendor files within the copied HTML files.
npm run styles:rtl This command converts the compiled theme.css file into RTL format, producing an output file named theme.rtl.css along with an associated map file.
Top