Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
wieringen committed May 27, 2014
0 parents commit fa5de03
Show file tree
Hide file tree
Showing 15 changed files with 19,680 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
@@ -0,0 +1,6 @@
.DS_Store
.ftppass
dist/
node_modules/
*.sublime-project
*.sublime-workspace
4 changes: 4 additions & 0 deletions .jshintrc
@@ -0,0 +1,4 @@
{
"laxcomma" : true
, "laxbreak" : false
}
5 changes: 5 additions & 0 deletions .travis.yml
@@ -0,0 +1,5 @@
language: node_js
node_js:
- 0.8
before_script:
- npm install -g grunt-cli
169 changes: 169 additions & 0 deletions Gruntfile.coffee
@@ -0,0 +1,169 @@
module.exports = ( grunt ) ->

grunt.initConfig

pkg : grunt.file.readJSON "package.json"

meta :

banner : '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n ' +
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n *\\n " : "" %>' +
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %> <<%= pkg.author.email %>>;\n' +
' * Licensed under the <%= _.pluck(pkg.licenses, "type").join(", ") %> license */\n\n'

# Remove old build.
#
clean :

dist :

src : [ "dist" ]

# Copy the images and the index to the dist location.
#
copy :

dist :

files : [
{ expand: true, cwd: "src", src: "images/**/*", dest: "dist/src" }
, { expand: true, cwd: "src", src: "css/**/*", dest: "dist/src" }
, { expand: true, cwd: "node_modules/baijs", src: "css/**/*", dest: "dist/src" }
, { expand: true, cwd: "node_modules/baijs", src: "js/**/*", dest: "dist/src" }
, { expand: true, cwd: "src", src: "js/**/*", dest: "dist/src" }
, { expand: true, cwd: "src", src: "index.html", dest: "dist/src" }
]

example :

files : [
{ expand: true, cwd: "src", src: "example/**/*", dest: "dist/src/" }
, { expand: true, cwd: "dist/src/js", src: "jquery.<%= pkg.name %>*", dest: "dist/src/example/js" }
]


# Validate javascript files with jsHint.
#
jshint :

options :

jshintrc : ".jshintrc"

all : [
"src/js/jquery.<%= pkg.name %>.js"
]

# Minify the javascript.
#
uglify :

dist :

options :

banner : "<%= meta.banner %>"
beautify : false

files :

"dist/src/js/jquery.<%= pkg.name %>.min.js" : ["dist/src/js/jquery.<%= pkg.name %>.js"]


# Replace image file paths in css and correct css path in the index.
#
replace :

dist :
src : [
"dist/src/index.html"
]
overwrite : true
replacements : [
{
from : /@@bnr@@/ig
, to : "<%= pkg.version %>"
}
, {
from : /..\/node_modules\/baijs\//ig
, to : ""
}
]

# Make a zipfile.
#
compress :

dist :

options :

archive: "dist/dist-<%= pkg.version %>.zip"

expand : true
cwd : "dist/src"
src : ["**/*"]
dest : "."

example :

options :

archive: "dist/src/<%= pkg.name %>-<%= pkg.version %>.zip"

expand : true
cwd : "dist/src/example"
src : ["**/*"]
dest : "."

"ftp-deploy":

dist:

auth:

host : "ftp.baijs.nl"
port : 21
authKey : "<%= pkg.name %>"

src: "dist/src"
dest: "/"

# Load all the task modules we need.
#
grunt.loadNpmTasks "grunt-contrib-copy"
grunt.loadNpmTasks "grunt-contrib-clean"
grunt.loadNpmTasks "grunt-contrib-uglify"
grunt.loadNpmTasks "grunt-text-replace"
grunt.loadNpmTasks "grunt-contrib-compress"
grunt.loadNpmTasks "grunt-ftp-deploy"
grunt.loadNpmTasks "grunt-contrib-jshint"

# Distribution build
#
grunt.registerTask(

"default"
, [
"jshint"
"clean:dist"
"copy:dist"
"uglify:dist"
"copy:example"
"replace:dist"
"compress:dist"
"compress:example"
]
)

# Upload dist to baijs.nl
#
grunt.registerTask(

"ftp"
, [
"default"
"ftp-deploy:dist"
]
)
21 changes: 21 additions & 0 deletions MIT-LICENSE.txt
@@ -0,0 +1,21 @@
Copyright 2013 Maarten Baijs
http://www.baijs.com

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
51 changes: 51 additions & 0 deletions README.md
@@ -0,0 +1,51 @@
[tinycarousel](http://baijs.com/tinycarousel) [![Build Status](https://secure.travis-ci.org/wieringen/tinycarousel.png?branch=master)](http://travis-ci.org/wieringen/tinycarousel)
==================================================

What you need to build your own version of tinycarousel
--------------------------------------

In order to build tinycarousel, you need to have Node.js/npm, and git 1.7 or later installed.


How to build your own tinycarousel
----------------------------

First, clone a copy of the main imageCreator git repo by running:

```bash
git clone git://github.com/wieringen/tinycarousel.git
```

Install the grunt-cli package so that you will have the correct version of grunt available from any project that needs it. This should be done as a global install:

```bash
npm install -g grunt-cli
```

Enter the tinycarousel directory and install the Node dependencies, this time *without* specifying a global install:

```bash
cd tinycarousel && npm install
```

Make sure you have `grunt` installed by testing:

```bash
grunt -version
```

Then, to get a complete, minified (w/ Uglify.js), linted (w/ JSHint) version of tinycarousel, type the following:

```bash
grunt
```

The built version of tinycarousel will be put in the `dist/` subdirectory, along with the minified copy and associated map file.


Questions?
----------

If you have any questions, please feel free to email [me](mailto:wieringen@gmail.com).


Binary file added docs/images/photo (4).JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/receiver.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/sender.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fa5de03

Please sign in to comment.