NPM Scripts:
| command | description |
|---|---|
npm test |
Perform Unit Tests |
npm run test:single |
Perform Single Test |
npm run build |
Build & Compile Microdata Extractor |
npm run dev |
Watches for Code Changes and re-runs npm run build |
npm run lint |
Tests Javascript Code against Linting Rules |
npm run postinstall |
Automatically Runs after: npm install |
npm run prepublish |
Automatically Runs before: npm publish |
npm run help |
Generates List of NPM Scripts you can run |
You can run a Single Unit test with the following command:
npm run test:single -- test/basic-features.jsYou can also update the expected output used for tests by passing in an --update flag on a single test:
npm run test:single -- test/basic-features.js --updatenpm run helpnpm run help [regex]