0.1.94 • Published 8 years ago

wiggi-wiz v0.1.94

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

Wiggi Wiz

Build Status

An angular based rich text editor, with support for extensions, custom markup and a rich api for dialogs, modals etc.

Inspired by some great editors, but they didn't quite fit our needs.

Install

npm install -g grunt-cli
npm install -g harp
npm install # (also runs bower install)

Run Example

grunt run

Then go to /wiggi-wiz

Run unit tests

We use karma, you can run it directly using karma, but we have some shortcuts for you in the Gruntfile.

Run once and exit

grunt test

Run continuously (handy while developing)

grunt karma:continuous

Debugging Tests in Karma

You'll need karma-cli installed.

Make sure the following are set in your karma.conf.js:

If you have karma installed:

karma start

This will override the browser in karma.conf.js:

karma start --browsers Chrome

Running regression/ui tests

The regression tests use grunt-webdriver.

grunt regression

Options

See grunt-webdriver for info on the options

 --bail=true|false
 --grep="string"
 --sauceLabs=true|false
 --browserName="string"
 --browserVersion="string"
 --platform="string"

Note: To run with saucelabs as the driver you'll need the following env vars: SAUCE_USERNAME and SAUCE_ACCESS_KEY.

Note: If sauceLabs=true we automatically set the base url to the github pages site.

Example

grunt regression --grep="add table" --browserName="firefox"

Build

grunt  

Release

What it does:

  • tag the current commit with the current version
  • bump the version to the next index

To use release you'll need the following env vars: GITHUB_USERNAME and GITHUB_PASSWORD.

grunt 
grunt test
git add/commit/push if the files in dist have changed 
grunt release

Building the gh-pages site

We use harp to build the static site. The build script builds it to a tmp folder the adds it to the gh-pages branch.

./bin/build.site

Docs

The docs are here: /site/docs - please update!

Inspiration