Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

use this to simulate some cordova core and plugins in unit tests

License

Notifications You must be signed in to change notification settings

D-Mobilelab/cordova-test-helper

Repository files navigation

ES6 Boilerplate

Just change the name of the library in the package.json. That's it. The package name variable will be the entry point for the library in browser case. You can change this behaviour here tools/webpack.config.base.js the library field. Develop and enjoy.

Write a library in ES6

  • webpack for bundling, exporting in UMD (with the name of the package in browser case), support for process.env in source code
  • babel, of course
  • eslint (airbnb + valid-jsdoc)
  • jasmine for test with mocha reporter
  • documentation automagically generated

Commands

  • git clone && rm .git && git init
  • npm run build // generate dist/<package.name>.js, dist/<package.name>.min.js, dist/<package.name>.min.js.map
  • npm run test
  • npm run test:watch // run tests while typing
  • npm run documentation // generate docs folder with .html, append docs to the readme.md

Release a new version

  • npm version patch|minor|major This will generate the docs/ and dist/ so you can have the build version committed for that tag

API

About

use this to simulate some cordova core and plugins in unit tests

Resources

License

Stars

Watchers

Forks

Packages

No packages published