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

V2.0 #272

Open
wants to merge 37 commits into
base: develop
Choose a base branch
from
Open

V2.0 #272

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
b292240
Reorganized some things and started leverging grunt and whatnot
jakiestfu Mar 8, 2014
211273f
Commiting first build and some jshint settings updates
jakiestfu Mar 8, 2014
dfb87ca
Fixing demos
jakiestfu Mar 8, 2014
2394f31
Split files up. Kinda sloppy right now but I will make it better soon
jakiestfu Mar 8, 2014
12213c0
Updates
jakiestfu Mar 8, 2014
f3d27e4
Fixes
jakiestfu Mar 8, 2014
fceacd8
Added beginnings of tests
jakiestfu Mar 8, 2014
fbc08f2
Added phantom
jakiestfu Mar 8, 2014
c247479
Make dragging a snap-content view much more performant on mobile, #12…
jakiestfu Mar 8, 2014
a37610c
Fix issues with IE9, #106 (@SalahStudios)
jakiestfu Mar 8, 2014
56afd8d
added option to disable drag on mouse events #80 (@jamuhl)
jakiestfu Mar 8, 2014
c790eb7
Remove 'animating' event, wicked sloppy, non performant
jakiestfu Mar 8, 2014
88e123c
build
jakiestfu Mar 8, 2014
845245c
Documentation
jakiestfu Mar 8, 2014
b1a07c2
Cleaned up some architecture. Source cannot function now unless built…
jakiestfu Mar 8, 2014
28a0243
Fix
jakiestfu Mar 8, 2014
b3a7996
Added CI
jakiestfu Mar 8, 2014
a65c637
Moar
jakiestfu Mar 8, 2014
f3beeff
Moar
jakiestfu Mar 8, 2014
fb75c3c
Finished
jakiestfu Mar 8, 2014
435b250
OCD
jakiestfu Mar 8, 2014
709b181
Added uglify back in
jakiestfu Mar 9, 2014
e0f84b2
updated grunt
jakiestfu Mar 9, 2014
32c739b
Added test coverage with blanket.js.
jayd3e Mar 9, 2014
97e0b9e
Tabs -> spaces
jayd3e Mar 9, 2014
030d6a5
Reverted the addition of _header and _footer. Each file is now wrapp…
jayd3e Mar 9, 2014
95620b0
Created some starter tests to just see how Snap.js can be tested.
jayd3e Mar 9, 2014
f3083f5
Dramatically changed the structure of Snap.js to be more testable.
jayd3e Mar 10, 2014
72b5db4
Have most things ported over to the new architecture.
jayd3e Mar 10, 2014
6541db7
Uncommented blanket.js
jayd3e Mar 10, 2014
3c4a657
Made some style changes, and removed a lot of meaningless tests. Moc…
jayd3e Mar 10, 2014
e4359e8
Added multi demo
jakiestfu Mar 11, 2014
7827ac4
Restructured again and got instances working properly
jakiestfu Mar 13, 2014
4772b33
Added sane animation callbacks
jakiestfu Mar 13, 2014
156cdf5
Misc improvements
jakiestfu Mar 13, 2014
1904c12
Now using bower.json
kennethkalmer Apr 28, 2014
15c77da
Merge pull request #193 from kennethkalmer/v2.0
jakiestfu Jun 18, 2014
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
Next Next commit
Reorganized some things and started leverging grunt and whatnot
  • Loading branch information
jakiestfu committed Mar 8, 2014
commit b2922405fc76518a527b068f0ce96dbb224932b0
165 changes: 3 additions & 162 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,163 +1,4 @@
#################
## Eclipse
#################

*.pydevproject
.project
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# CDT-specific
.cproject

# PDT-specific
.buildpath


#################
## Visual Studio
#################

## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.sln.docstates

# Build results
[Dd]ebug/
[Rr]elease/
*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.vspscc
.builds
*.dotCover

## TODO: If you have NuGet Package Restore enabled, uncomment this
#packages/

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf

# Visual Studio profiler
*.psess
*.vsp

# ReSharper is a .NET coding add-in
_ReSharper*

# Installshield output folder
[Ee]xpress

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish

# Others
[Bb]in
[Oo]bj
sql
TestResults
*.Cache
ClientBin
stylecop.*
~$*
*.dbmdl
Generated_Code #added for RIA/Silverlight projects

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML



############
## Windows
############

# Windows image file caches
Thumbs.db

# Folder config file
Desktop.ini


#############
## Python
#############

*.py[co]

# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg

# Installer logs
pip-log.txt

# Unit test / coverage reports
.coverage
.tox

#Translations
*.mo

#Mr Developer
.mr.developer.cfg

# Mac crap
.DS_Store
node_modules
.sass-cache
*.lock
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source "https://rubygems.org"

gem "sass", "3.2.10"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ A Library for creating beautiful mobile shelfs in Javascript
* Flick Support
* User Intent Detection
* Disable Hyperextension
* Event Hooks
* Ev2.0.0-rc1 Hooks
* CSS3 Powered Animations with IE fallbacks
* Drag Support
* Drag Handle Support
Expand Down
96 changes: 96 additions & 0 deletions gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
module.exports = function(grunt) {

var fs = require('fs');

var pkg = grunt.file.readJSON('package.json');

var dynamicWrites = function(){

// Update Readme Version
var readme = grunt.file.read('README.md');
grunt.file.write('README.md', readme.replace(/v(.*?) /, 'v'+pkg.version+' '));
grunt.log.writeln("Updated Readme version number to "+pkg.version);

};


grunt.initConfig({

pkg: pkg,

sass: {
dist: {
options: {
bundleExec: true,
style: 'compressed',
banner: "/* Snap.css v<%= pkg.version %> */"
},
files: {
'dist/latest/snap.css': 'src/css/snap.scss'
}
}
},

concat: {
options: {
banner: "/*! Snap.js v<%= pkg.version %> */\n"
},
dist: {
src: [
'src/js/snap.js',
'src/js/utils.js',
'src/js/*.js'
],
dest: 'dist/latest/snap.js'
}
},

copy: {
main: {
files: [
// Version our latest files
{src: ['dist/latest/snap.js'], dest: 'dist/<%= pkg.version %>/snap.js'},
{src: ['dist/latest/snap.css'], dest: 'dist/<%= pkg.version %>/snap.css'}
]
}
},

uglify: {
options: {
preserveComments: 'some'
},
main: {
files: {
'dist/latest/snap.js': ['dist/latest/snap.js']
}
}
},

jshint: {
all: ['src/js/*.js'],
options: {
curly: true,
eqnull: true,
browser: true,
globals: {
jQuery: true,
Thundercats: true,
TC: true
},
},
}
});

grunt.loadTasks('tasks');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');

// Register Everything
grunt.registerTask('dynamicWrites', 'Writes variables to static files', dynamicWrites);

grunt.registerTask('default', ['jshint', 'sass', 'concat', 'uglify', 'copy', 'dynamicWrites']);
};
23 changes: 23 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "Snap.js",
"version": "2.0.0-rc1",
"repository": {
"type": "git",
"url": "https://github.com/jakiestfu/Snap.js.git"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-cli": "~0.1.9",
"grunt-contrib-watch": "~0.5.3",
"grunt-contrib-sass": "~0.5.0",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-copy": "0.4.1",
"grunt-contrib-uglify": "0.2.5",
"grunt-complexity": "0.1.4",
"grunt-contrib-jshint": "0.8.0",
"mocha": "*",
"chai": "*",
"phantomjs": "1.9.1-0",
"mocha-phantomjs": "3.1.4"
}
}
11 changes: 0 additions & 11 deletions snap.min.js

This file was deleted.

File renamed without changes.
File renamed without changes.
Empty file added src/js/utils.js
Empty file.