Skip to content

Latest commit

 

History

History
56 lines (34 loc) · 3.27 KB

CONTRIBUTING.md

File metadata and controls

56 lines (34 loc) · 3.27 KB

Contributing to Taffy

Contributions of all shapes and sizes are welcome, encouraged, and greatly appreciated! Not sure where to start? Learn how here!

For all contributions, you'll need a free GitHub account.

Bug Reports / Feature Requests

Please include all of the following information in your ticket:

  • CFML Platform and version (e.g. Adobe ColdFusion 9.0.2, or Lucee 4.5.0)
  • Java version (look it up in Lucee/CF Administrator, or do java -version at the command line)
  • Taffy version (for bugs)

Documentation

Documentation is in the /docs folder.

  • When fixing a bug for an existing version, if it necessitates a docs update, be sure to update the correct version's markdown file.
  • When adding a new feature, make the appropriate updates to @next.md. This file will be used to generate the new version file at release time.

✨ There's no such thing as perfect documentation! It can never be thorough enough, nor ever perfectly organized. If you find something confusing or outdated, please be so kind as to file a bug report for it, if you can't or won't fix it. (Yes, documentation bugs!)

Code

All new development is done against the main branch. When you want to make a change and submit it for the Bleeding Edge Release (BER), do the following:

  1. Fork the project
  2. Clone to your local machine: git clone https://github.com/YOUR-GITHUB-USERNAME/Taffy.git
  3. Create a topic branch for your changes: git checkout -b BRANCH_NAME
  4. Make your changes and commit them.
  5. Push your changes back to your fork. git push -u origin BRANCH_NAME
  6. Send a pull request (Learn how here!)
  • Please make sure you select atuttle/main as the destination branch

Styling changes

Taffy uses LessCSS to style the dashboard and documentation. To compile changes to dash.less, you'll need to have Node.js/npm installed.

  1. From the root of your Taffy clone, run npm ci to install the dependencies for compiling LessCSS to CSS.
  2. Then run npm run less. This will compile the latest dash.less and update dash.css.

Tests

⚠️ Unfortunately our test suite doesn't currently run. We're working on getting it setup on GitHub Actions and your help doing so would be greatly appreciated.

If at all possible, please include test cases for anything you add or change. To run the tests, you must have MxUnit installed at /mxunit (not just a global mapping, put the folder in your web-root, as there are CSS/JS/etc assets that will be needed).

  1. Clone the Taffy repo to /taffy in your web root.
  2. Point your browser at http://localhost/taffy/tests/ to initialize the test-harness API that the tests will use
  3. Point your browser at http://localhost/taffy/tests/tests/ to run the test suite.

If you are on vanilla Tomcat or another app server (most Lucee users are), you may find that you need to add an additional servlet mapping to get the tests to run.

Please report any errors or failures as bugs, and be sure to include relevant platform information.