Skip to content

A library of commonly used JavaScript tools and helpers by Becklyn

License

Notifications You must be signed in to change notification settings

paddykontschak/mojave

 
 

Repository files navigation

mojave

A library of commonly used JavaScript tools and helpers by Becklyn Studios.

Contributing / Development

To run the tests, first install all dependencies:

npm install

Then run the kaba default task:

kaba

You need to run this task after every change in the library. You can also start a watcher to continuously build the library:

kaba -d

Now open the file in tests/index.html in a web browser.

Test case files

Place all test case files under tests/cases/ as regular .js files.

You have all QUnit globals available. Also the library itself is loaded in the window.mojave global. For details, please take a look at tests/build/complete-library-build.js.

The tests files are built using tests/build/all-tests.js, so if you add a new test case file, you must add an import there. This build is compiled using kaba, so you can use regular modern JS.

Working on the project

  1. Make your changes in the library
  2. If you added a new file, update the bundle build in tests/build/complete-library-build.js
  3. Bundle the library via kaba
  4. Write your tests in tests/cases/
  5. Open the QUnit page in your browser and check whether all tests work correctly.

About

A library of commonly used JavaScript tools and helpers by Becklyn

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.5%
  • HTML 0.5%