-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Milne
committed
May 8, 2015
1 parent
34d06d9
commit 6261927
Showing
16 changed files
with
2,102 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 |
---|---|---|
|
@@ -23,3 +23,5 @@ target/ | |
#Bower | ||
bower_components/ | ||
|
||
#Node | ||
node_modules/ |
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,103 @@ | ||
'use strict'; | ||
|
||
module.exports = function (grunt) { | ||
|
||
// Load grunt tasks automatically | ||
require('load-grunt-tasks')(grunt); | ||
|
||
grunt.initConfig({ | ||
concat: { | ||
js: { | ||
options: { | ||
banner: | ||
'angular.module(\'datetime.bootstrap\', [\'datetime.bootstrap.directives\',' + | ||
'\'datetime.bootstrap.services\',' + | ||
'\'datetime.bootstrap.templates\']);\n\n' | ||
}, | ||
src: ['./src/scripts/*.js'], | ||
dest: './dist/datetime-bootstrap.js' | ||
}, | ||
css: { | ||
src: ['./src/styles/*.css'], | ||
dest: './dist/datetime-bootstrap.css' | ||
} | ||
}, | ||
htmlangular: { | ||
options: { | ||
customtags: [ | ||
'date-input', | ||
'time-input', | ||
'numeric-dropdown' | ||
], | ||
customattrs: [ | ||
'dropdown', | ||
'dropdown-toggle', | ||
'is-open', | ||
'padded-numeric' | ||
] | ||
}, | ||
files: { | ||
src: ['src/templates/*.html'], | ||
} | ||
}, | ||
html2js: { | ||
app: { | ||
options: { | ||
base: './src/templates/', | ||
useStrict: true, | ||
quoteChar: '\'', | ||
htmlmin: { | ||
collapseBooleanAttributes: true, | ||
collapseWhitespace: true, | ||
removeAttributeQuotes: true, | ||
removeComments: true, | ||
removeEmptyAttributes: true, | ||
removeRedundantAttributes: true, | ||
removeScriptTypeAttributes: true, | ||
removeStyleLinkTypeAttributes: true | ||
} | ||
}, | ||
src: ['./src/templates/*.html'], | ||
dest: './src/scripts/templates.js', | ||
module: 'datetime.bootstrap.templates' | ||
} | ||
}, | ||
uglify: { | ||
js: { | ||
src: ['./dist/datetime-bootstrap.js'], | ||
dest: './dist/datetime-bootstrap.min.js' | ||
} | ||
}, | ||
cssmin: { | ||
target: { | ||
files: { | ||
'./dist/datetime-bootstrap.min.css': ['./dist/datetime-bootstrap.css'] | ||
} | ||
} | ||
}, | ||
watch: { | ||
files: [ | ||
'./src/templates/*.html', | ||
'./src/scripts/*.js', | ||
'./src/styles/*.css' | ||
], | ||
tasks: 'quick' | ||
} | ||
}); | ||
|
||
grunt.registerTask('default', [ | ||
'htmlangular', | ||
'html2js', | ||
'concat', | ||
'uglify', | ||
'cssmin' | ||
]); | ||
|
||
grunt.registerTask('quick', [ | ||
'html2js', | ||
'concat', | ||
'uglify', | ||
'cssmin' | ||
]) ; | ||
|
||
}; |
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,35 @@ | ||
{ | ||
"name": "datetime-bootstrap", | ||
"version": "0.0.1", | ||
"dependencies": { | ||
"angular": "latest", | ||
"lodash": "latest", | ||
"moment": "latest", | ||
"bootstrap": "latest", | ||
"angular-bootstrap": "latest" | ||
}, | ||
"devDependencies": { | ||
"angular-mocks": "latest", | ||
"angular-resource": "latest" | ||
}, | ||
"main": ["dist/datetime-bootstrap.js", "datetime/datetime-bootstrap.css"], | ||
"authors": [ | ||
"David Milne <[email protected]>" | ||
], | ||
"description": "Angular widgets for entering dates and times, with boostrap theming", | ||
"keywords": [ | ||
"angular", | ||
"date", | ||
"time", | ||
"bootstrap" | ||
], | ||
"license": "MIT", | ||
"homepage": "https://github.com/dnmilne/datetime-bootstrap", | ||
"ignore": [ | ||
"**/.*", | ||
"node_modules", | ||
"bower_components", | ||
"test", | ||
"tests" | ||
] | ||
} |
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,22 @@ | ||
.internal-form-control { | ||
display: inline-block; | ||
border: none; | ||
} | ||
|
||
.internal-form-control input { | ||
border: none; | ||
width: 100%; | ||
text-align:center; | ||
} | ||
|
||
.internal-form-control.left input { | ||
text-align:right; | ||
} | ||
|
||
.internal-form-control.center input { | ||
text-align:center; | ||
} | ||
|
||
.internal-form-control.right input { | ||
text-align:left; | ||
} |
Oops, something went wrong.