Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #41 from kriskbx/devel
Browse files Browse the repository at this point in the history
release 1.3.0
  • Loading branch information
kris dot cool committed Apr 18, 2015
2 parents b66e9f7 + 284637f commit 0f567e3
Show file tree
Hide file tree
Showing 9 changed files with 125 additions and 99 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
language: node_js
node_js:
- 0.10
117 changes: 60 additions & 57 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,58 +1,61 @@
module.exports = function(grunt) {
grunt.initConfig({
clean: {
build: {
src: ['build/']
},
all: {
src: ['build/', 'dist/']
}
},
dataUri: {
dist: {
src: ['src/*.css'],
dest: 'build/',
options: {
target: ['**'],
fixDirLevel: true
},
},
},
cssmin: {
combine: {
files: {
'build/button.min.css': ['build/button.css']
},
},
},
concat: {
options: {
process: function(src, filepath) {
var css = grunt.file.read('build/button.min.css');
return src.replace('[[minified_css]]', css);
},
},
dist: {
src: ['src/button.js'],
dest: 'build/button.js'
},
},
uglify: {
options: {
mangle: false
},
dist: {
files: {
'dist/whatsapp-button.js': ['build/button.js']
}
}
},

});
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-data-uri');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('default', ['clean:all', 'dataUri', 'cssmin', 'concat', 'uglify', 'clean:build']);
module.exports = function (grunt) {
grunt.initConfig({
clean: {
build: {
src: ['build/']
},
all: {
src: ['build/', 'dist/']
}
},
dataUri: {
dist: {
src: ['src/*.css'],
dest: 'build/',
options: {
target: ['**'],
fixDirLevel: true
}
}
},
cssmin: {
combine: {
files: {
'build/button.min.css': ['build/button.css']
}
}
},
concat: {
options: {
process: function (src, filepath) {
var css = grunt.file.read('build/button.min.css');
return src.replace('[[minified_css]]', css);
}
},
dist: {
src: ['src/button.js'],
dest: 'build/button.js'
}
},
uglify: {
options: {
mangle: false
},
dist: {
files: {
'dist/whatsapp-button.js': ['build/button.js']
}
}
},
jshint: {
button: ['src/button.js']
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-data-uri');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('default', ['jshint:button', 'clean:all', 'dataUri', 'cssmin', 'concat', 'uglify', 'clean:build']);
};
2 changes: 1 addition & 1 deletion ISSUES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Okay, you're going to report an issue:

1. Take a look at the [FAQs](https://github.com/kriskbx/whatsapp-sharing#faq) first - maybe there's something that solves your issue.
2. Take a look at the [issues](https://github.com/kriskbx/whatsapp-sharing/issues) already reported and +1 if you're experiencing the same problem.
3. Open your Browsers JavaScript console on your website and type `theWaShBtn`. If you see something like this `theWaShBtn is not defined` the library is not loaded. Repeat the installation steps!
3. Open your Browsers JavaScript console on your website and type `WASHAREBTN`. If you see something like this `WASHAREBTN is not defined` the library is not loaded. Repeat the installation steps!
4. Provide an example: this can be a link to your website or a jsfiddle. We can't help you without code we can take a look at.
5. Happy reporting.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# WhatsApp sharing button

[![Code Climate](https://codeclimate.com/github/kriskbx/whatsapp-sharing/badges/gpa.svg)](https://codeclimate.com/github/kriskbx/whatsapp-sharing)
[![Tips](https://img.shields.io/gratipay/kriskbx.svg)](https://www.gittip.com/kriskbx/) [![Travis](https://img.shields.io/travis/kriskbx/whatsapp-sharing.svg)](https://travis-ci.org/kriskbx/whatsapp-sharing) [![Code Climate](https://img.shields.io/codeclimate/github/kriskbx/whatsapp-sharing.svg)](https://codeclimate.com/github/kriskbx/whatsapp-sharing) [![Release](https://img.shields.io/github/release/kriskbx/whatsapp-sharing.svg)](https://github.com/kriskbx/whatsapp-sharing) [![GitHub license](https://img.shields.io/github/license/kriskbx/whatsapp-sharing.svg)](https://github.com/kriskbx/whatsapp-sharing/blob/master/LICENSE) [![Npm](https://img.shields.io/npm/dm/whatsapp-sharing.svg)](https://www.npmjs.com/package/whatsapp-sharing)


## Installation

Expand Down Expand Up @@ -31,7 +32,7 @@ If you want to customize the size, style, url or the sharing text, feel free to

### 1. I'm using AJAX?

Run `theWaShBtn.crBtn();` after you loaded your content.
Run `WASHAREBTN.crBtn();` after you loaded your content.

### 2. I want to track clicks on the button

Expand All @@ -44,3 +45,8 @@ Nope, that's not possible (at the moment).
### 4. If WhatsApp is not installed on the device there's an error message

It's not possible to check if WhatsApp is installed on the device. This is a good thing, imagine a webpage can access the list of installed applications.


## License

MIT
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "whatsapp-sharing",
"version": "1.2.3",
"version": "1.3.0",
"homepage": "https://github.com/kriskbx/whatsapp-sharing",
"authors": [
"kriskbx"
Expand Down
2 changes: 1 addition & 1 deletion dist/whatsapp-button.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "whatsapp-sharing",
"version": "1.2.3",
"version": "1.3.0",
"description": "WhatsApp Sharing Button",
"main": "-",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "grunt jshint:button"
},
"repository": {
"type": "git",
Expand All @@ -21,12 +21,13 @@
},
"homepage": "http://whatsapp-sharing.com",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-clean": "~0.4.1",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-cssmin": "~0.10.0",
"grunt-contrib-uglify": "~0.5.0",
"grunt-data-uri": "~0.1.1",
"grunt-contrib-concat": "~0.4.x"
"grunt": "~0.4.1",
"grunt-cli": "^0.1.13",
"grunt-contrib-clean": "~0.4.1",
"grunt-contrib-concat": "~0.4.x",
"grunt-contrib-cssmin": "~0.10.0",
"grunt-contrib-jshint": "^0.11.2",
"grunt-contrib-uglify": "~0.5.0",
"grunt-data-uri": "~0.1.1"
}
}
Loading

0 comments on commit 0f567e3

Please sign in to comment.