Skip to content

Commit

Permalink
Added minified version.
Browse files Browse the repository at this point in the history
  • Loading branch information
ozdemirburak committed Jun 21, 2017
1 parent d1e40f4 commit 9b0ee70
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 5 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
Morse code encoder and decoder with no dependencies supports Latin, Cyrillic, Greek, Hebrew,
Arabic, Persian, Japanese, and Korean characters with audio generation functionality using the [Web Audio API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API).

Live demo can be found at [morsify.net](https://morsify.net).

## Installation

### npm
Expand Down Expand Up @@ -33,7 +35,7 @@ audio.stop(); // stop audio
Or alternatively, you can also use the library directly with including the source file.

```html
<script src="https://rawgit.com/ozdemirburak/morsify/master/index.js"></script>
<script src="https://rawgit.com/ozdemirburak/morsify/master/dist/morsify.min.js"></script>
<script>
var encoded = morsify.encode('SOS'); // .../---/...
var decoded = morsify.decode('.../---/...'); // S O S
Expand Down
1 change: 1 addition & 0 deletions dist/morsify.min.js

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

16 changes: 16 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
var gulp = require('gulp'), concat = require('gulp-concat'), uglify = require('gulp-uglify'), pump = require('pump');

gulp.task('minify-js', function (cb) {
pump([
gulp.src('index.js'),
concat('morsify.min.js'),
uglify(),
gulp.dest('dist')
],
cb
);
});

gulp.task('default', function() {
gulp.run('minify-js');
});
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "morsify",
"version": "0.2.1",
"description": "Encodes and decodes morse code, creates morse code audio from text.",
"version": "0.2.2",
"description": "Morse code translator and decoder which also generates audio.",
"keywords": [
"morse",
"morse code",
"morse alphabet",
"morse audio",
"morse translator",
"morsify"
],
"license": "MIT",
Expand All @@ -18,9 +19,13 @@
},
"devDependencies": {
"coveralls": "^2.13.0",
"jshint": "^2.9.0",
"gulp": "^3.9.1",
"gulp-concat": "^2.6.1",
"gulp-uglify": "^3.0.0",
"istanbul": "^0.4.5",
"mocha": "^3.4.0"
"jshint": "^2.9.0",
"mocha": "^3.4.0",
"pump": "^1.0.2"
},
"main": "./index.js",
"files": [
Expand Down

0 comments on commit 9b0ee70

Please sign in to comment.