forked from nwcell/ics.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
146 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules/ | ||
bower_components/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
module.exports = function(grunt) { | ||
|
||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
concat: { | ||
options: { | ||
separator: ';' | ||
}, | ||
dist: { | ||
src: ['ics.js'], | ||
dest: '<%= pkg.name %>.js' | ||
} | ||
}, | ||
uglify: { | ||
options: { | ||
banner: '/*! <%= pkg.name %> <%= grunt.template.today("mm-dd-yyyy") %> */\n' | ||
}, | ||
dist: { | ||
files: { | ||
'ics.min.js': ['ics.js'] | ||
} | ||
} | ||
}, | ||
qunit: { | ||
files: ['tests/**/*.html'] | ||
}, | ||
jshint: { | ||
files: ['Gruntfile.js', '*.js', 'tests/tests.js'], | ||
options: { | ||
// options here to override JSHint defaults | ||
globals: { | ||
jQuery: true, | ||
console: true, | ||
module: true, | ||
document: true, | ||
}, | ||
laxcomma: true | ||
} | ||
}, | ||
watch: { | ||
files: ['<%= jshint.files %>'], | ||
tasks: ['jshint', 'qunit'] | ||
} | ||
}); | ||
|
||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
grunt.loadNpmTasks('grunt-contrib-qunit'); | ||
grunt.loadNpmTasks('grunt-contrib-watch'); | ||
grunt.loadNpmTasks('grunt-contrib-concat'); | ||
|
||
grunt.registerTask('test', ['jshint', 'qunit']); | ||
|
||
grunt.registerTask('default', ['jshint', 'qunit', 'uglify']); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "ics.js", | ||
"main": "ics.js", | ||
"version": "0.0.0", | ||
"homepage": "https://github.com/khornberg/ics.js" | ||
"contributors": [ | ||
"Travis Krause <[email protected]>", | ||
"Kyle Hornberg <[email protected]>" | ||
], | ||
"description": "A browser firendly .ics/.vcs file generator written entirely in javascript", | ||
"keywords": [ | ||
"ics", | ||
"iCal", | ||
"iCalendar" | ||
], | ||
"license": "MIT", | ||
"private": true, | ||
"ignore": [ | ||
"**/.*", | ||
"node_modules", | ||
"bower_components", | ||
"test", | ||
"tests" | ||
], | ||
"dependencies": { | ||
"Blob.js": "eligrey/Blob.js", | ||
"FileSaver": "*" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// Demo | ||
var cal = ics(); | ||
cal.addEvent('Christmas', 'Christian holiday celebrating the birth of Jesus Christ', 'Bethlehem', '12/25/2013', '12/25/2013'); | ||
cal.addEvent('Christmas', 'Christian holiday celebrating the birth of Jesus Christ', 'Bethlehem', '12/25/2014', '12/25/2014'); | ||
console.log('Events\n' + cal.events()); | ||
console.log('Calendar\n' + cal.calendar()); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"name": "ics.js", | ||
"version": "0.0.0", | ||
"description": "A browser firendly .ics/.vcs file generator written entirely in javascript", | ||
"main": "icsjs", | ||
"dependencies": { | ||
"grunt": "~0.4.2", | ||
"grunt-contrib-concat": "~0.3.0", | ||
"grunt-contrib-jshint": "~0.7.2", | ||
"grunt-contrib-qunit": "~0.3.0", | ||
"grunt-contrib-uglify": "~0.2.7", | ||
"grunt-mocha": "~0.4.6" | ||
}, | ||
"devDependencies": {}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/khornberg/ics.js.git" | ||
}, | ||
"keywords": [ | ||
"ics", | ||
"iCal", | ||
"iCalendar" | ||
], | ||
"contributors": [ | ||
"Travis Krause <[email protected]>", | ||
"Kyle Hornberg <[email protected]>" | ||
], | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/khornberg/ics.js/issues" | ||
} | ||
} |