Skip to content

Commit

Permalink
Initial code submission
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianhopebailie committed May 5, 2014
1 parent 38de9ce commit 33b5097
Show file tree
Hide file tree
Showing 18 changed files with 1,554 additions and 1 deletion.
63 changes: 63 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto

###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp

###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary

###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
#*.jpg binary
#*.png binary
#*.gif binary

###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
#*.DOC diff=astextplain
#*.docx diff=astextplain
#*.DOCX diff=astextplain
#*.dot diff=astextplain
#*.DOT diff=astextplain
#*.pdf diff=astextplain
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ ClientBin/
*.pfx
*.publishsettings
node_modules/
bower_components/

# RIA/Silverlight projects
Generated_Code/
Expand Down
5 changes: 5 additions & 0 deletions .travis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: node_js
node_js:
- "0.10"
- "0.8"
- "0.6"
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
quartz.js
# quartz.js
=========

JavaScript library for use in combination with the Quartz scheduler library

Initially released as a client side utility library for developers using
the Quartz scheduler (server side .NET) library.

Packaged for use in node.js or as a bower package for client-side scripting.

## Node.js

To use with Node.js run:

```sh
npm install quarts-util
```

## Bower

To use with Bower run:

```sh
bower install quartz-util
```
24 changes: 24 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "quartz-util",
"version": "0.1.0",
"homepage": "https://github.com/adrianhopebailie/quartz.js",
"authors": [
"Adrian Hope-Bailie <[email protected]>",
"Theunis Swanepoel <[email protected]>"
],
"description": "A utility module for the Quartz scheduler library",
"main": "quartz-util.js",
"keywords": [
"quartz",
"cron"
],
"license": "Apache-2.0",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests",
"obj"
]
}
16 changes: 16 additions & 0 deletions node-qunit-testrunner.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
var qunit = require('qunit');

qunit.run({
code: {
path: 'quartz-node.js',
namespace: "QuartzCronExpression"
},
tests: [
'tests/quartz-constructors.js',
'tests/quartz-hourly.js',
'tests/quartz-daily.js',
'tests/quartz-weekly.js',
'tests/quartz-monthly.js',
'tests/quartz-pretty-string.js'
]
});
40 changes: 40 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "quartz-util",
"version": "0.1.0",
"description": "Utility functions for the Quartz scheduler library.",
"main": "quartz-node.js",
"license": "Apache-2.0",
"author": "Stanchion - Product Development <[email protected]>",
"contributors": [
{
"name": "Adrian Hope-Bailie",
"email": "[email protected]"
},
{
"name": "Theunis Swanepoel",
"email": "[email protected]"
}
],
"directories": {
"test": "tests"
},
"scripts": {
"test": "node node-qunit-testrunner.js"
},
"repository": {
"type": "git",
"url": "https://github.com/adrianhopebailie/quartz.js.git"
},
"keywords": [
"quartz",
"cron",
"node"
],
"bugs": {
"url": "https://github.com/adrianhopebailie/quartz.js/issues"
},
"homepage": "https://github.com/adrianhopebailie/quartz.js",
"devDependencies": {
"qunit": "~0.6.3"
}
}
5 changes: 5 additions & 0 deletions quartz-node.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//Hacky way to convert our non-node js file into a node module.
var fs = require('fs');
var code = fs.readFileSync(__dirname + "/quartz-util.js").toString() +
"module.exports = QuartzCronExpression;";
eval(code);
Loading

0 comments on commit 33b5097

Please sign in to comment.