Underscore lightweight replacement, forcing the use of es6 functions.
import * from 'overscore';
or
const overscore = require('overscore');
Included in our Travis CI system, we use Karma, Mocha and Chai as default test runner in this project. Run npm test
, or use the debug system at VSCode. It will generate the code coverage for you at /coverage
folder. The configuration for the coverage task is under the karma.conf.js
file at the project root.
Controlled by JSHint and JSBeautifier, included in the TravisCI flow.
npm run compile:minimal
or
npm run compile:complete
The compilation is driven by npm scripts, so npm run compile:minimal will generate a ~7KB file named overscore.es5.minimal.js with its respective sourcemap. This version is trully minified and with jQuery like external library in order to minify the weight of the library. You should choose this option if you have jQuery like global variable in your project.
In the other hand, you have npm run compile:complete that will generate a ~288KB file name overscore.es5.complete.js that includes the library and the jQuery dependency inside (~250KB for jQuery weight).
By default, the load of the module will get the complete version, but this is configurable in your compiler, requiring the file instead the complete module.
- Webpack - Compiler