npm packages
To install third party libraries defined inpackage.json, run the following within thesuperset/assets/directory which will install them in a newnode_modules/folder withinassets/.
#from the root of the repository, move to where our JS package.json livescdsuperset/assets/#install yarn, a replacement for `npm install` that is faster and more deterministic
npm install -g yarn
#run yarn to fetch all the dependencies
yarn
To parse and generate bundled files for superset, run either of the following commands. Thedevflag will keep the npm script running and re-run it upon any changes within the assets directory.
# Copies a conf file from the frontend to the backend
npm run sync-backend
# Compiles the production / optimized js & css
npm run prod
# Start a web server that manages and updates your assets as you modify them
npm run dev