datax-common
v1.4.0-SNAPSHOT-9
Published
Common UX, styles, utilities, and modules
Downloads
68
Keywords
Readme
datax-common
Contains common components, modules, styles, and utilities used by the Data Accelerator website and its related add-on packages.
Install Package to Accelerator Website or another package
- At root folder of your consumer project, run
npm install [email protected]
(or whatever version you want). This will install the package under thenode_modules
folder and automatically update thepackage.json
file of your project. You can also manually input it into thepackage.json
yourself and then runnpm install
.
Quick start to developing this package
Run
npm install
to install all dependency package of this NPM package.Run
npm run dev
to build non-optimized bundles. While the packages tend to be larger in size and slow down your web experience, you benefit this by getting a better development experience when debugging the sources on the browser of your choice.When you are done developing your package, increment the version number of your NPM package in the
package.json
file.Run
npm run build
to build optimized bundles (obfuscated, minified and other compiler optimizations) leading to smaller output sizes and faster performance for production consumption.Run
npm publish
Tips and Tricks
For your website, run
npm run devwatch
which will put your website into listening mode for file changes. Every time a file that the website depends on under its folder andnode_modules
dependency folder changes, it will automatically re-compile.Run
npm run devpatch
to build development bundles and this command will automatically execute a batch script to xcopy the built bundles to our website'snode_modules
folder. This will cause your website to recompile itself to pick up the changes. Thislocaldevpatch.bat
script assumes that the website GIT repo and this packages GIT repo share the same parent folder. If this is not the case, please change the paths of the script locally on your computer.