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

Modularize the codebase and use ES6 features with Babel+browserify+gulp build #231

Merged
merged 141 commits into from
Oct 7, 2015
Merged
Changes from 1 commit
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
fbe291f
introducing project to gulp using `gulp-starter` v0.1.1, cloned and c…
stephen-james May 25, 2015
1b78561
first step to a browserify build process, using gulp as task runner a…
stephen-james May 25, 2015
988f92a
Move "global" variables into `scope` object
taye May 31, 2015
fb80db1
Add more functions to `scope`
taye May 31, 2015
4e2366d
Add scope module
taye May 31, 2015
34dd30d
Get window and realWindow in ./utils/window.js
taye May 31, 2015
fe98b2a
Separate more code into modules
taye May 31, 2015
d3e4e66
Put extend and blank in `utils` object
taye May 31, 2015
5c5990d
Move defaultOptions and autoScroll into modules
taye May 31, 2015
a2b7937
.jshintrc: add node and elision
taye May 31, 2015
aa0524f
Move warnOnce and hypot into utils
taye May 31, 2015
7e73e48
Remove old requestAnimationFrame polyfil
taye May 31, 2015
c67d797
Add new modules: browser, pointerUtils, raf, hypot
taye May 31, 2015
6009217
add isIe9OrOlder to `browser` module, use to clarify detection of `ac…
stephen-james May 31, 2015
09a410c
reformatting browser module
stephen-james May 31, 2015
7499473
add jshint gulp task
stephen-james May 31, 2015
b9d380f
Move isElement into isTypes module
taye May 31, 2015
f682538
Define getPointerId in pointerUtils
taye May 31, 2015
76835f7
removes IIFE, Browserify now wraps this and protects scope
stephen-james May 31, 2015
673674e
point references to `interact.js` in demo htdocs to `build` folder
stephen-james May 31, 2015
f167c22
point references to `interact.js` in demo htdocs to `build` folder
stephen-james May 31, 2015
8a6f8f5
extract `InteractEvent` and `Interaction` to modules
stephen-james May 31, 2015
a7e4559
Merge pull request #193 from stephen-james/refactor-2
taye Jun 1, 2015
8b8360c
Merge branch 'task-runner-and-build-system' of https://github.com/tay…
stephen-james Jun 2, 2015
8dba1e4
Minor refactor, avoiding use of `Boolean()` function
stephen-james Jun 2, 2015
1e2ce5a
readability with object literal for module and single export
stephen-james Jun 2, 2015
173562d
correction of non checking `typeof`
stephen-james Jun 2, 2015
f16d680
remove `scope` dependency from `pointerUtils`
stephen-james Jun 2, 2015
de34cc3
clean up module implementation by removing conditional exports
stephen-james Jun 2, 2015
f625191
removing trailing comma
stephen-james Jun 2, 2015
535d231
Merge pull request #195 from stephen-james/task-runner-and-build-system
taye Jun 2, 2015
f5e471e
Clear targets on pointerUp even if not interacting
taye Jun 2, 2015
9e99d43
Remove duplicated pointerUtils methods
taye Jun 2, 2015
becbf30
Move prefixedMatchesSelector from scope to browser
taye Jun 3, 2015
99476e7
Remove UMD from src/interact.js
taye Jun 3, 2015
c2c02f2
Fix dependencies of isTypes and window
taye Jun 3, 2015
85a2299
utils/index: don't assign new module.exports obj
taye Jun 3, 2015
fa9a902
Create minified and unminified build using Browserify with source maps
stephen-james Jun 4, 2015
9e38415
Remove unnecessary gulp tasks
taye Jun 22, 2015
de0f694
Add browserify standalone option
taye Jun 22, 2015
c5d7c69
Revert "clean up module implementation by removing conditional exports"
taye Jun 22, 2015
7b0728b
Move event delegation code into utils/events
taye Jun 27, 2015
16b1772
Move functions and to more appropriate modules
taye Jun 27, 2015
ad9c435
Don't extend scope with isType methods
taye Jun 27, 2015
bd7c602
Return only the scope object from interact.debug()
taye Jun 28, 2015
68996bc
Begin the separation of action-specific code
taye Jun 29, 2015
c400cd3
Move most of snap code to src/modifiers/snap.js
taye Jul 6, 2015
d190c4a
Remove deprecated methods
taye Jul 6, 2015
b597613
Move some snap-related code out of InteractEvent
taye Jul 6, 2015
2f77325
Move restriction code to src/modifiers/restrict.js
taye Jul 6, 2015
781d5d4
Rename restrictStatus.restricted to locked
taye Jul 6, 2015
03bb54b
Use general modifier interface for snap & restrict
taye Jul 6, 2015
20a56e4
Fix "elision" issue with jshint
taye Jul 11, 2015
e96096b
Assign to scope.listenToDocument correctly
taye Jul 14, 2015
518b39f
Update demos
taye Jul 14, 2015
2a76e5a
Merge branch 'master' into modularization
taye Jul 15, 2015
4c786eb
Remove and ignore the ./build directory
taye Jul 15, 2015
7630158
Add .codeclimate.yml
taye Jul 16, 2015
53a7161
Remove Interaction#get[Page|Client]XY methods
taye Jul 16, 2015
4f2a17d
Move setEventXY from pointerUtils to Interaction
taye Jul 17, 2015
21bd9d6
Delete unused actions/index.js file
taye Jul 17, 2015
cac44f8
.codeclimate.yml: fix indent before exclude_paths
taye Jul 18, 2015
dbe385d
Reorganize action definitions
taye Jul 18, 2015
7190cad
Get cursors from each action module separately
taye Jul 18, 2015
eb10511
Remove all references to actionIsEnabled
taye Jul 18, 2015
61c1ec4
Make validateAction function more concise
taye Jul 18, 2015
9d3a032
Use more general action code where possible
taye Jul 19, 2015
405617e
Move withinInteractionLimit function to scope
taye Jul 19, 2015
3a19a16
Add action beforeStart method
taye Jul 19, 2015
160e2f4
Fix Interactable#unset delegated event removal
taye Jul 19, 2015
47a3ea2
Fix inertia smoothEnd
taye Jul 19, 2015
76f0a1d
actions/drag: remove unused Interaction variable
taye Jul 20, 2015
ee4face
Move drop code from actions/drag to actions/drop
taye Jul 21, 2015
2729c13
Do general modifier endOnly movement
taye Jul 21, 2015
9a4a150
Improve smoothEnd check
taye Jul 23, 2015
c243145
Add interact.createSnapGrid in actions/snap.js
taye Aug 1, 2015
2180c67
Move pEventTypes from scope to utils/browser
taye Aug 1, 2015
db47968
Removed duplicated strict in .jshintrc; fixed jshint error in events.js
stbaer Aug 5, 2015
68f0659
Merge pull request #247 from stbaer/jshint-fix
taye Aug 5, 2015
38090ee
updated dependencies
stbaer Aug 7, 2015
4e211aa
fixed deprecated karma.server in karma.js
stbaer Aug 7, 2015
87600d6
some fixes for test.js
stbaer Aug 7, 2015
0afe49b
Merge pull request #249 from stbaer/deps-update
taye Aug 7, 2015
232f34e
utils/signals: add simple signals module
taye Aug 29, 2015
88050ad
decouple autoScroll from Interaction using signals
taye Aug 29, 2015
54957d2
Move addEventTypes from actions/base to scope
taye Aug 29, 2015
273c2fc
utils/signals: pass signal name as second param
taye Aug 29, 2015
225792b
utils/browser: add isIE8 bool property
taye Aug 29, 2015
a52178d
Create pointerEvents module
taye Aug 30, 2015
2dd19f2
utils/browser: fix browser.supportsTouch
taye Aug 30, 2015
975f974
Add utils/arr.merge and remove scope.addEventTypes
taye Aug 30, 2015
abd1b1a
utils/window: allow window to be updated later
taye Aug 30, 2015
1976d7e
Move action and modifier options to own modules
taye Aug 30, 2015
4ddd2ff
Move getOriginXY from scope to utils
taye Aug 30, 2015
5707e70
utils/signals: return false from listener to stop
taye Aug 30, 2015
cc63f5d
Move interaction event listening to Interaction
taye Aug 30, 2015
5fb2e4b
Add node and browserify entry files
taye Aug 30, 2015
a282be4
gulp/config: use src/index.js as browserify entry
taye Aug 30, 2015
268f3ee
Refactor action-specific code in InteractEvent
taye Aug 30, 2015
60df916
Fix jshint warnings
taye Aug 30, 2015
acc34dc
Fix bugs with drop and restrict
taye Sep 2, 2015
bd07ca8
interact.js: remove check for window
taye Sep 2, 2015
7adc312
Use babelify for es6 transpilation
taye Sep 2, 2015
d384fcc
Merge branch 'master' into modularization
taye Sep 3, 2015
2959e95
Use eslint instead of jshint and add tern config
taye Sep 3, 2015
79fd360
*: follow new eslint rules
taye Sep 3, 2015
ed1bd85
package.json: update dependencies
taye Sep 7, 2015
86fb534
.babelrc: add babel config file
taye Sep 7, 2015
c7a6b96
Interact*: Use ES6 classes
taye Sep 8, 2015
6ebf5e8
Merge branch 'master' into modularization
taye Sep 8, 2015
bcd83e8
ie8: add omitted ie8.js module
taye Sep 9, 2015
fef4e8d
*: do more es6; improve formatting
taye Sep 9, 2015
7738216
Improve babel and eslint config files
taye Sep 9, 2015
a7d69d0
codeclimate.yml: use eslint engine
taye Sep 9, 2015
c33ddfa
gulp/*: fix source map generation
taye Sep 9, 2015
be40b33
gulp/tasks: add lint task; runs eslint on ./src
taye Sep 9, 2015
e7c5463
gulp/tasks: tidy up tasks and fix watch, default
taye Sep 9, 2015
77a4bb0
utils/events: fix events.on IE8 workaround
taye Sep 9, 2015
fd03e94
utils/pointerUtils: lose InteractEvent dependency
taye Sep 12, 2015
e781299
utils/pointerUtils: add methods in object literal
taye Sep 12, 2015
5af67e2
utils/pointerUtils: add missing methds
taye Sep 12, 2015
3c0bf3e
legacyBrowsers: extract more ie8-specific logic
taye Sep 13, 2015
0227d75
*: merge master and improve Interactions
taye Sep 13, 2015
f61fe8c
*: merge recent changes from master
taye Sep 14, 2015
b1ed8fc
scope: move defs of interact{ion,able}s arrays
taye Sep 14, 2015
b9b05f2
modifiers/base: rename from modifiers/index
taye Sep 14, 2015
05e837c
utils: move getOriginXY to separate module
taye Sep 14, 2015
8d22a8b
*: try to require specific modules of ./utils/
taye Sep 15, 2015
6224390
Interaction: move prevTouchTime out of scope
taye Sep 16, 2015
5fa9034
Interaction: add and use 'interaction-new' signal
taye Sep 19, 2015
e340646
InteractEvent: improve signals
taye Sep 22, 2015
cafe466
Merge branch 'master' into modularization
taye Sep 23, 2015
4a4be17
InteractEvent: fix use of interaction-new arg
taye Oct 3, 2015
17d7c7c
Interaction: fix doOnInteraction with PointerEvent
taye Oct 3, 2015
af85914
actions/gesture: fix interactevent-gesture signal
taye Oct 3, 2015
ff1eee8
dist: rename from build
taye Oct 6, 2015
e12150e
gulp/tasks/default: create dist/ before bundling
taye Oct 6, 2015
fa2cba8
*: remove deprecated methods
taye Oct 6, 2015
1fa8bd6
docs: add dr.js dependency and docs gulp task
taye Oct 7, 2015
3cfb8fc
Merge branch 'master' into modularization
taye Oct 7, 2015
24d31ea
demo: reference dist/interact.js instead of build/
taye Oct 7, 2015
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
Prev Previous commit
Next Next commit
add jshint gulp task
stephen-james committed May 31, 2015
commit 74994732d0890ea8e47983871c500146eccf5b22
4 changes: 4 additions & 0 deletions gulp/config.js
Original file line number Diff line number Diff line change
@@ -39,6 +39,10 @@ module.exports = {
}
]
},
jshint: {
src: src + "/**/*.js",
settings: '.jshintrc'
},
production: {
cssSrc: dest + '/*.css',
jsSrc: dest + '/*.js',
17 changes: 17 additions & 0 deletions gulp/tasks/jshint.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
var gulp = require('gulp');
var jshint = require('gulp-jshint');
var stylish = require('jshint-stylish');
var config = require('../config').jshint;

var jshintTask = function() {

gulp.src(config.src)
.pipe(jshint(config.settings))
.pipe(jshint.reporter(stylish))
.pipe(jshint.reporter('fail'));

};

gulp.task('jshint', jshintTask);

module.exports = jshintTask;
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -51,13 +51,15 @@
"gulp-changed": "^1.2.1",
"gulp-filesize": "0.0.6",
"gulp-imagemin": "^2.2.1",
"gulp-jshint": "^1.11.0",
"gulp-minify-css": "^1.1.1",
"gulp-notify": "^2.2.0",
"gulp-rename": "^1.2.2",
"gulp-sass": "^2.0.1",
"gulp-sourcemaps": "^1.5.2",
"gulp-uglify": "^1.2.0",
"gulp-util": "^3.0.4",
"jshint-stylish": "^2.0.0",
"karma": "^0.12.32",
"karma-browserify": "^4.2.1",
"karma-chai": "^0.1.0",