Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caching fix + a few minor fixes and development additions #48

Open
wants to merge 8 commits into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.grunt
node_modules
49 changes: 49 additions & 0 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
module.exports = (grunt) ->
grunt.initConfig
uglify:
options:
mangle: true
compress: {}
sourceMap: true
sourceMapIncludeSources: true
build:
src: 'dist/jquery.rest/**/*.js'
dest: 'dist/jquery.rest.min.js'
coffee:
main:
options:
sourceMap: true
expand: true
cwd: 'src'
src: ['**/*.coffee']
dest: 'dist/jquery.rest/'
ext: '.js'
spec:
options:
bare: true
expand: true
cwd: 'spec_src'
src: ['**/*.coffee']
dest: 'spec/'
ext: '.js'
jasmine:
src: [ 'dist/jquery.rest.min.js' ]
options:
specs: [ 'spec/*.js' ]
vendor: [
'vendor/jquery/dist/jquery.min.js',
'vendor/jquery.rest/dist/1/jquery.rest.min.js',
'vendor/knockout/dist/knockout.js',
'vendor/sjcl/sjcl.js'
]
watch:
files: ['<%= coffee.main.src %>', '<%= coffee.spec.src %>']
tasks: ['coffee', 'uglify']

grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-uglify'
grunt.loadNpmTasks 'grunt-contrib-jasmine'
grunt.loadNpmTasks 'grunt-contrib-watch'

grunt.registerTask 'default', ['coffee', 'uglify']
grunt.registerTask 'test', ['jasmine']
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
jQuery REST Client
=====
v1.0.1
v1.0.2

<a href="https://twitter.com/intent/tweet?hashtags=jquery%2Crest&original_referer=http%3A%2F%2Fgithub.com%2F&text=A+jQuery+plugin+for+easy+consumption+of+RESTful+APIs&tw_p=tweetbutton&url=https%3A%2F%2Fgithub.com%2Fjpillora%2Fjquery.rest" target="_blank">
<img src="http://jpillora.com/github-twitter-button/img/tweet.png"></img>
Expand Down
Loading