-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made AnyPicker free for personal use.
We have made AnyPicker free for personal use. You are expected to purchase AnyPicker license for commercial use as per the terms (https://curioussolutions.in/libraries/anypicker/content/license.htm)
- Loading branch information
Showing
125 changed files
with
47,377 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules/ | ||
.DS_Store | ||
npm-debug.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,299 @@ | ||
module.exports = function(grunt) | ||
{ | ||
var sBanner = '/* ----------------------------------------------------------------------------- ' + | ||
'\n\n AnyPicker - Customizable Picker for Mobile OS' + | ||
'\n Version <%= pkg.version %>' + | ||
'\n Copyright (c)<%= grunt.template.today("yyyy") %> Curious Solutions LLP' + | ||
'\n https://curioussolutions.in/libraries/anypicker/content/license.htm' + | ||
'\n See License Information in LICENSE file.' + | ||
'\n\n ----------------------------------------------------------------------------- */\n\n'; | ||
|
||
var sJSHeader = sBanner + "(function () {\n\n \"use strict\";\n\n", | ||
sJSFooter = "\n\n}());\n\n", | ||
|
||
sArrFileSource = [ | ||
'src/anypicker-core.js', | ||
'src/anypicker-pickercomponent.js', | ||
'src/anypicker-select.js', | ||
'src/anypicker-datetime.js'], | ||
sArrCustomFileSource = []; | ||
|
||
grunt.initConfig( | ||
{ | ||
|
||
pkg: grunt.file.readJSON('package.json'), | ||
|
||
concat: | ||
{ | ||
options: | ||
{ | ||
separator: '\n\n\n\n', | ||
stripBanners: true | ||
}, | ||
|
||
basejs: | ||
{ | ||
src: sArrFileSource, | ||
dest: 'src/anypicker.js', | ||
|
||
options: | ||
{ | ||
nonull: true, | ||
banner: sJSHeader, | ||
footer: sJSFooter | ||
} | ||
}, | ||
|
||
basecss: | ||
{ | ||
src: ['src/anypicker-core.css', 'src/anypicker-pickercomponent.css'], | ||
dest: 'src/anypicker.css', | ||
|
||
options: | ||
{ | ||
nonull: true, | ||
banner: sBanner | ||
} | ||
}, | ||
|
||
allcss: | ||
{ | ||
src: ['src/anypicker-core.css', 'src/anypicker-pickercomponent.css', 'src/anypicker-ios.css', 'src/anypicker-android.css', 'src/anypicker-windows.css', 'src/anypicker-font.css'], | ||
dest: 'src/anypicker-all.css', | ||
|
||
options: | ||
{ | ||
nonull: true, | ||
banner: sBanner | ||
} | ||
}, | ||
|
||
CustomConcat: | ||
{ | ||
src: sArrCustomFileSource, | ||
dest: 'src/anypicker-custom.js', | ||
|
||
options: | ||
{ | ||
nonull: true, | ||
banner: sJSHeader, | ||
footer: sJSFooter | ||
} | ||
}, | ||
|
||
lang: | ||
{ | ||
src: ['src/i18n/*', '!src/i18n/anypicker-i18n.js'], | ||
dest: 'src/i18n/anypicker-i18n.js', | ||
|
||
options: | ||
{ | ||
nonull: true, | ||
banner: sBanner | ||
} | ||
} | ||
}, | ||
|
||
copy: | ||
{ | ||
main: | ||
{ | ||
expand: true, | ||
cwd: 'src/', | ||
src: '**', | ||
dest: 'dist' | ||
}, | ||
|
||
lang: | ||
{ | ||
expand: true, | ||
cwd: 'src/i18n', | ||
src: '**', | ||
dest: 'dist/i18n' | ||
} | ||
}, | ||
|
||
uglify: | ||
{ | ||
options: | ||
{ | ||
banner: sBanner, | ||
mangle: true | ||
}, | ||
|
||
build: | ||
{ | ||
src: 'src/anypicker.js', | ||
dest: 'dist/anypicker.min.js', | ||
nonull: true | ||
}, | ||
|
||
CustomUglify: | ||
{ | ||
src: 'src/anypicker-custom.js', | ||
dest: 'src/anypicker-custom.min.js', | ||
nonull: true | ||
} | ||
}, | ||
|
||
cssmin: | ||
{ | ||
options: | ||
{ | ||
banner: sBanner | ||
}, | ||
|
||
basecss: | ||
{ | ||
src: 'src/anypicker.css', | ||
dest: 'dist/anypicker.min.css', | ||
nonull: true | ||
}, | ||
|
||
allcss: | ||
{ | ||
src: 'src/anypicker-all.css', | ||
dest: 'dist/anypicker-all.min.css', | ||
nonull: true | ||
} | ||
}, | ||
|
||
watch: | ||
{ | ||
scripts: | ||
{ | ||
files: ['src/*.js', 'src/*.css'], | ||
tasks: ['default'] | ||
} | ||
}, | ||
|
||
jshint: | ||
{ | ||
core: 'src/anypicker-core.js', | ||
pickercomp: 'src/anypicker-pickercomponent.js', | ||
datetime: 'src/anypicker-datetime.js', | ||
select: 'src/anypicker-select.js', | ||
|
||
main: ['src/anypicker.js'], | ||
|
||
options: | ||
{ | ||
strict: false, | ||
|
||
curly: false, | ||
|
||
eqeqeq: true, | ||
eqnull: true, | ||
browser: true, | ||
devel: true, | ||
//unused: true, | ||
//undef: true, | ||
|
||
globals: | ||
{ | ||
$: false, | ||
jQuery: false, | ||
define: false, | ||
require: false, | ||
module: false, | ||
AnyPicker: true | ||
}, | ||
|
||
force: true | ||
} | ||
}, | ||
|
||
csslint: | ||
{ | ||
core: 'src/anypicker-core.css', | ||
pickercomp: 'src/anypicker-pickercomponent.css', | ||
ios: 'src/anypicker-ios.css', | ||
android: 'src/anypicker-android.css', | ||
windows: 'src/anypicker-windows.css', | ||
|
||
main: ['src/anypicker.css'], | ||
|
||
options: | ||
{ | ||
"adjoining-classes": false, | ||
"important": false, | ||
"universal-selector": false, | ||
"box-sizing": false, | ||
"box-model": false, | ||
"overqualified-elements": false, | ||
"known-properties": false, | ||
"fallback-colors": false, | ||
"font-sizes": false, | ||
"floats": false, | ||
"display-property-grouping": false, | ||
|
||
"unqualified-attributes": false, | ||
"ids": false, | ||
"vendor-prefix": false, | ||
"regex-selectors": false | ||
} | ||
} | ||
|
||
}); | ||
|
||
grunt.loadNpmTasks('grunt-contrib-concat'); | ||
grunt.loadNpmTasks('grunt-contrib-copy'); | ||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.loadNpmTasks('grunt-contrib-cssmin'); | ||
grunt.loadNpmTasks('grunt-contrib-watch'); | ||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
grunt.loadNpmTasks('grunt-contrib-csslint'); | ||
|
||
grunt.registerTask('common', ['copy', 'uglify', 'cssmin:basecss', 'cssmin:allcss']); | ||
|
||
grunt.registerTask('default', ['concat:basejs', 'concat:basecss', 'concat:allcss', 'common']); | ||
|
||
grunt.registerTask('CustomConcat', ['concat:CustomConcat', 'uglify:CustomUglify', 'common']); | ||
|
||
grunt.registerTask('UpdateLanguages', ['concat:lang', 'copy:lang']); | ||
|
||
grunt.registerTask('AnyPickerJSConcat', function() | ||
{ | ||
var sViewBannerText = "\n You can use following Modes with AnyPicker Custom File - \n"; | ||
|
||
sArrCustomFileSource.push(sArrFileSource[0]); | ||
sArrCustomFileSource.push(sArrFileSource[1]); | ||
|
||
grunt.log.writeln("Input Modes"); | ||
grunt.log.writeln(this.args); | ||
|
||
for(var iTempIndex = 0; iTempIndex < this.args.length; iTempIndex++) | ||
{ | ||
var sModeName = this.args[iTempIndex]; | ||
|
||
if(sViewName === "Select") | ||
{ | ||
sViewBannerText += "Select \n"; | ||
addFileToCustomArray(sArrFileSource[2]); | ||
} | ||
else if(sViewName === "DateTime") | ||
{ | ||
sViewBannerText += "DateTime \n"; | ||
addFileToCustomArray(sArrFileSource[3]); | ||
} | ||
} | ||
|
||
grunt.log.writeln(sViewBannerText); | ||
|
||
grunt.task.run('CustomConcat'); | ||
}); | ||
|
||
function addFileToCustomArray(sFileName) | ||
{ | ||
for(iTempIndex = 0; iTempIndex < sArrCustomFileSource.length; iTempIndex++) | ||
{ | ||
if(sArrCustomFileSource[iTempIndex] === sFileName) | ||
return true; | ||
} | ||
sArrCustomFileSource.push(sFileName); | ||
return true; | ||
} | ||
|
||
grunt.registerTask('lint', ['jshint:main', 'csslint:main']); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Curious Solutions LLP grants you rights to use AnyPicker for trial purpose. You are expected to purchase AnyPicker license for commercial use as per the terms (https://curioussolutions.in/libraries/anypicker/content/license.htm) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"name": "anypicker", | ||
|
||
"version": "2.0.0", | ||
|
||
"license" : "See License Information in LICENSE file", | ||
|
||
"description": "AnyPicker is a customizable jQuery Picker Library for Mobile OS. Create custom mobile pickers (Date, Time, Rating etc) for iOS, Android & Windows. Use pre-built pickers like Date Picker, Time Picker, Date Time Picker, etc.", | ||
|
||
"keywords": [ | ||
"Picker", | ||
"Date Picker", | ||
"Time Picker", | ||
"DateTime Picker", | ||
"Date", | ||
"Time", | ||
"Date Time Picker", | ||
"Bootstrap", | ||
"Mobile", | ||
"Android", | ||
"iOS", | ||
"Windows", | ||
"Rating" | ||
], | ||
|
||
"homepage": "https://curioussolutions.in/libraries/anypicker", | ||
|
||
"main": ["dist/anypicker.min.js", "dist/anypicker-all.min.css"], | ||
|
||
"authors": [ | ||
"Neha Kadam <[email protected]> (https://github.com/nehakadam)", | ||
"Lajpat Shah (https://github.com/lajpatshah)" | ||
], | ||
|
||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com:CuriousSolutions/AnyPicker.git" | ||
}, | ||
|
||
"license" : "UNLICENSED", | ||
|
||
"dependencies": { | ||
"jquery": ">=1.0.0" | ||
}, | ||
|
||
"devDependencies": { | ||
"grunt": "^0.4.5", | ||
"grunt-contrib-concat": "^0.5.0", | ||
"grunt-contrib-copy": "^0.4.0", | ||
"grunt-contrib-csslint": "^0.4.0", | ||
"grunt-contrib-cssmin": "^0.5.0", | ||
"grunt-contrib-jshint": "^0.11.0", | ||
"grunt-contrib-uglify": "^0.4.0", | ||
"grunt-contrib-watch": "^0.6.0" | ||
}, | ||
|
||
"ignore": [ | ||
"**/.*", | ||
"node_modules", | ||
"package.json" | ||
] | ||
|
||
} |
Oops, something went wrong.