flatpickr
v2.1.1 javascript datetimepicker calendar date time picker lightweight
build
parallelshell "npm run build-all-scripts" "npm run build-all-styles"
build-all-scripts
parallelshell "npm run build-script" "npm run build-min-script" "npm run build-l10n"
build-all-styles
parallelshell "npm run build-style" "npm run build-themes"
build-script
babel src/flatpickr.js --out-file dist/flatpickr.js
build-min-script
babel src/flatpickr.js | uglifyjs --screw-ie8 --compress --comments --mangle > dist/flatpickr.min.js
build-l10n
babel src/l10n --out-dir dist/l10n
build-style
stylus --compress --include src/style < ./src/style/flatpickr.styl > ./dist/flatpickr.min.css
build-themes
stylus --out dist/themes --compress src/style/themes
dev-script
onchange "src/flatpickr.js" -- npm run build-script
dev-style
parallelshell "onchange "src/style/flatpickr_base.styl" -- npm run build-style" "npm run build-themes -- --watch"
dev
parallelshell "npm run dev-script" "npm run dev-style"
livereload
livereload "dist"
serve
parallelshell "http-server -o --silent" "npm run livereload"
start
parallelshell "npm run dev" "npm run serve"