Skip to content
This repository was archived by the owner on Aug 14, 2021. It is now read-only.

Commit 81e6fa1

Browse files
committed
Set Version on minified js
Update #117
1 parent 217311f commit 81e6fa1

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* [FEATURE] #118 New option `closeOnWindowBlur`
66
* Use `.on()` / `.off()` syntax
77
* Add check for missing `.delegate` option
8+
* Set @VERSION in minified script
89

910
# 1.16.0 / 2017-03-30
1011

Gruntfile.coffee

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = (grunt) ->
3232

3333
upload:
3434
# FTP upload the demo files (requires https://github.com/mar10/pyftpsync)
35-
cmd: "pyftpsync --progress upload . ftp://www.wwwendt.de/tech/demo/jquery-contextmenu --delete-unmatched --omit dist,node_modules,.*,_* -x"
35+
cmd: "pyftpsync --progress upload . ftp://www.wwwendt.de/tech/demo/jquery-contextmenu --delete-unmatched --omit dist,node_modules,.*,_*"
3636

3737
jscs:
3838
src: ["jquery.ui-contextmenu.js", "test/tests.js"]
@@ -188,6 +188,11 @@ module.exports = (grunt) ->
188188
run_test: { tasks: ['test'] }
189189
bump: {} # 'bump' uses the increment mode `yabs:release:MODE` by default
190190
run_build: { tasks: ['build'] }
191+
replace_build:
192+
files: ['jquery.ui-contextmenu.min.js']
193+
patterns: [
194+
{ match: /@VERSION/g, replacement: '{%= version %}'}
195+
]
191196
commit: {}
192197
check_after_build: { clean: true } # Fails if new files are found
193198
tag: {}

demo/index-1-12.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
use the 'preventSelect: true' option.
3434
But we disable it more globally for tablet pc's, because the whole line
3535
or paragraph will still be selected otherwise.
36-
36+
3737
-webkit-user-select: none;
3838
-khtml-user-select: none;
3939
-moz-user-select: none;
@@ -72,7 +72,7 @@
7272
var CLIPBOARD = "";
7373
$(function(){
7474
/* Enable a themeroller theme-switching using a combobox. */
75-
/*
75+
/*
7676
$("#switcher").themeswitcher({
7777
jqueryuiversion: "1.12.1",
7878
themepath: "//code.jquery.com/ui/",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"grunt-exec": "^1.0.0",
5353
"grunt-jscs": "^2.7.0",
5454
"grunt-saucelabs": "^8.1.0",
55-
"grunt-yabs": "^1.0.0",
55+
"grunt-yabs": "^1.1.0",
5656
"jquery-ui-dist": "^1.12.1"
5757
},
5858
"scripts": {

0 commit comments

Comments
 (0)