Add a 'npm run build' command

This commit is contained in:
Jonathan Gotti 2015-09-23 16:14:03 +02:00
parent a9c7b81bf1
commit f910a50ffd
7 changed files with 2776 additions and 7 deletions

5
.gitignore vendored
View File

@ -1,2 +1,3 @@
$ cat .gitignore
parse.php
parse.php
bower_components
node_modules

View File

@ -13,7 +13,9 @@
"**/*.md",
"**/*.html",
"**/*.tpl",
"**/jquery.js"
"**/jquery.js",
"bower_components",
"node_modules"
],
"keywords": [
"calendar",
@ -36,7 +38,7 @@
"dependencies": {
"jquery": ">= 1.7.2",
"jquery-mousewheel": ">= 3.1.13",
"date-functions": "https://gist.github.com/42ceeee96db98bf03b83.git"
"date-functions": "~0.0.1"
},
"authors": [
{

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

3
build/jquery.datetimepicker.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
* (c) 2014, Chupurnov Valeriy.
*/
/*global document,window,jQuery,setTimeout,clearTimeout,HighlightedDate,getCurrentValue*/
(function (factory) {
;(function (factory) {
if ( typeof define === 'function' && define.amd ) {
// AMD. Register as an anonymous module.
define(['jquery', 'jquery-mousewheel'], factory);

View File

@ -4,7 +4,11 @@
"description": "jQuery Plugin DateTimePicker it is DatePicker and TimePicker in one",
"main": "jquery.datetimepicker.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"concat": "bower update && cat jquery.datetimepicker.js bower_components/jquery-mousewheel/jquery.mousewheel.js bower_components/date-functions/date-functions.js > build/jquery.datetimepicker.full.js",
"minify": "uglifyjs jquery.datetimepicker.js -c -m -o build/jquery.datetimepicker.min.js",
"minifyconcat": "uglifyjs build/jquery.datetimepicker.full.js -c -m -o build/jquery.datetimepicker.full.min.js",
"build": "npm run minify && npm run concat && npm run minifyconcat"
},
"repository": {
"type": "git",
@ -24,5 +28,9 @@
"bugs": {
"url": "https://github.com/xdan/datetimepicker/issues"
},
"homepage": "https://github.com/xdan/datetimepicker"
"homepage": "https://github.com/xdan/datetimepicker",
"devDependencies": {
"bower": "^1.5.2",
"uglifyjs": "^2.4.10"
}
}