Skip to content

Commit 240a8c0

Browse files
arjunkathuriaarschmitz
authored andcommitted
chore: various fixes after rebase.
1 parent f34de95 commit 240a8c0

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
"dependencies": {},
3434
"devDependencies": {
3535
"babel-preset-es2015-rollup": "^1.1.1",
36-
"blanket": "^1.2.3",
3736
"bannerize": "^1.0.2",
37+
"blanket": "^1.2.3",
3838
"changelogplease": "^1.2.0",
3939
"ember-suave": "^4.0.0",
4040
"git-tags": "^0.2.4",
@@ -51,13 +51,12 @@
5151
"hammer-simulator": "git://github.com/hammerjs/simulator#master",
5252
"jquery": "^3.1.0",
5353
"jquery-hammerjs": "2.0.x",
54-
"lodash-compat": "^3.10.2",
55-
"qunitjs": "^2.0.0",
5654
"jscs": "^3.0.7",
5755
"jshint": "^2.9.2",
5856
"jshint-stylish": "^2.2.0",
57+
"lodash-compat": "^3.10.2",
5958
"node-qunit-phantomjs": "^1.4.0",
60-
"replace": "^0.3.0",
59+
"qunitjs": "^2.0.0",
6160
"rollup": "^0.26.3",
6261
"rollup-plugin-babel": "^2.4.0",
6362
"run-when-changed": "^1.2.0",
@@ -74,10 +73,10 @@
7473
"rollup": "rollup -c",
7574
"uglify": "uglifyjs hammer.js --source-map hammer.min.js.map -o hammer.min.js --stats",
7675
"string-replace": "node string-replace.js",
77-
"jshint": "jshint hammer.js --config .jshintrc --verbose --reporter=node_modules/jshint-stylish",
78-
"jscs": " jscs src/**/*.js --config=./.jscsrc",
76+
"jshint": "jshint src/**/*.js hammer.js tests/unit/*.js tests/unit/gestures/*.js --config .jshintrc --verbose --reporter=node_modules/jshint-stylish",
77+
"jscs": " jscs src/**/*.js tests/unit/*.js tests/unit/gestures/*.js --config=./.jscsrc",
7978
"qunit": "phantomjs node_modules/qunit-phantomjs-runner/runner-list.js tests/unit/index.html 15",
80-
"watch": "run-when-changed --watch 'src/**/*.js' --exec 'npm run watch-tasks'",
79+
"watch": "run-when-changed --watch 'src/**/*.js' --watch 'tests/unit/*.js' --watch 'tests/unit/gestures/*.js' --exec 'npm run watch-tasks'",
8180
"watch-tasks": "npm run rollup && npm run string-replace && npm run uglify && npm run jshint && npm run jscs",
8281
"test": "npm run jshint && npm run jscs && npm run qunit",
8382
"build": "npm run rollup && npm run string-replace && npm run uglify && npm run bannerize && npm run test",

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ export default {
55
format: 'es6',
66
plugins: [ babel({exclude: 'node_modules/**'}) ],
77
dest: 'hammer.js',
8-
intro: " (function(window, document, exportName, undefined) { \n'use strict'; ",
8+
intro: " (function(window, document, exportName, undefined) { \n'use strict';",
99
outro: "})(window, document, 'Hammer');"
1010
};

string-replace.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
var fs = require('fs');
2-
var pkg = require('./package.json');
1+
const fs = require('fs');
2+
const pkg = require('./package.json');
33

4-
var hammer = fs.readFileSync('hammer.js','utf8');
5-
hammer = hammer.replace(/{{PKG_VERSION}}/g,pkg.version)
4+
let hammer = fs.readFileSync('hammer.js', 'utf8');
5+
hammer = hammer.replace(/{{PKG_VERSION}}/g, pkg.version);
66

7-
fs.writeFile('hammer.js', hammer,'utf8',function (err) {
8-
if(err)
9-
throw err
10-
console.log("String Replaced");
11-
})
7+
fs.writeFile('hammer.js', hammer, 'utf8', (err) => {
8+
if (err) {
9+
throw err;
10+
}
11+
console.log('String Replaced!');
12+
});

0 commit comments

Comments
 (0)