========================
Webpack and NPM packages
========================
Overview
--------
Initially, this project did not use Webpack or any JavaScript bundling tools.
All libraries were installed by manually copying their source code into the project and including them with `
NPM packages
------------
Installing New Packages:
::
$ ./easy_toolbox.py npm install package-name
Importing Packages in JavaScript managed by Webpack:
.. code-block:: javascript
import packageName from 'package-name';
import 'other-package-name';
// Your JS code
Importing Packages Globally with `
This approach is not recommended for new code but may be necessary for existing code.
This works because Django also searches for static files in the `node_modules` directory.
ESLint
------
ESLint is used to enforce coding standards and catch potential issues in JavaScript code.
To run ESLint, use the following command:
::
$ ./easy_toolbox.py eslint