Skip to content

Commit fdcdfe8

Browse files
committed
chore: initial setup
1 parent 65350d3 commit fdcdfe8

File tree

118 files changed

+1028
-5692
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+1028
-5692
lines changed

.csscomb.json

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,4 +271,4 @@ reference GitHub issues that this commit **Closes**.
271271

272272
[jsfiddle]: http://jsfiddle.net/
273273
[plunker]: http://plnkr.co/edit
274-
[unit-testing]: https://docs.angularjs.org/guide/unit-testing
274+
[unit-testing]: https://docs.angularjs.org/guide/unit-testing

.github/issue_template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Supprt Question?
1+
### Support Question?
22
For support questions, please use one of these channels:
33
Gitter: https://gitter.im/dalelotts/angular-bootstrap-datetimepicker
44
Stack Overflow: http://stackoverflow.com/search?q=angular-bootstrap-datetimepicker
@@ -29,4 +29,4 @@ Instructions: https://github.com/dalelotts/angular-bootstrap-datetimepicker/wiki
2929
Search the issue tracker for an existing ticket before creating a new one.
3030
Instructions: https://github.com/dalelotts/angular-bootstrap-datetimepicker/wiki/Requesting-Features
3131

32-
(Please erase the above text and begin typing. Thanks!)
32+
(Please erase the above text and begin typing. Thanks!)

.gitignore

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
1-
*.csv
2-
*.dat
3-
*.gz
4-
*.iml
5-
*.log
6-
*.out
7-
*.pid
8-
*.seed
9-
.idea
10-
build
11-
lib-cov
12-
logs
13-
node_modules/*
1+
node_modules/
2+
.DS_Store
143
npm-debug.log
15-
pids
16-
results
4+
compiled/
5+
dist/
6+
build/
7+
coverage/
8+
.idea
9+
yarn.lock
10+
/.vscode

.jshintrc

Lines changed: 0 additions & 90 deletions
This file was deleted.

LICENSE

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
1-
Copyright (c) 2013-2014 Dale Lotts
1+
(The MIT License)
22

3-
Permission is hereby granted, free of charge, to any person obtaining a copy of
4-
this software and associated documentation files (the "Software"), to deal in
5-
the Software without restriction, including without limitation the rights to
6-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
7-
the Software, and to permit persons to whom the Software is furnished to do so,
8-
subject to the following conditions:
3+
Copyright (c) 2017 Knight Rider Consulting Inc and Alex Winter
94

10-
The above copyright notice and this permission notice shall be included in all
11-
copies or substantial portions of the Software.
5+
Permission is hereby granted, free of charge, to any person obtaining
6+
a copy of this software and associated documentation files (the
7+
'Software'), to deal in the Software without restriction, including
8+
without limitation the rights to use, copy, modify, merge, publish,
9+
distribute, sublicense, and/or sell copies of the Software, and to
10+
permit persons to whom the Software is furnished to do so, subject to
11+
the following conditions:
1212

13-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
13+
The above copyright notice and this permission notice shall be
14+
included in all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Angular bootstrap date & time picker
22

3+
## Angular4+ Work
4+
35
Native AngularJS datetime picker directive styled by Twitter Bootstrap 3
46

57
[![Join the chat at https://gitter.im/dalelotts/angular-bootstrap-datetimepicker](https://badges.gitter.im/dalelotts/angular-bootstrap-datetimepicker.svg)](https://gitter.im/dalelotts/angular-bootstrap-datetimepicker?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
@@ -595,4 +597,3 @@ Support this project and other work by Dale Lotts via [gittip][gittip-dalelotts]
595597

596598
[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat
597599
[license-url]: LICENSE
598-

config/deploy.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
var path = require('path');
2+
var ghpages = require('gh-pages');
3+
4+
var dir = path.resolve(path.join(__dirname, '../', 'dist'));
5+
ghpages.publish(dir, {
6+
user: {
7+
name: 'Austin McDaniel',
8+
email: 'amcdaniel2@gmail.com'
9+
},
10+
message: '(deploy): CI',
11+
logger: function(message) {
12+
console.log('gh-pages: ', message);
13+
}
14+
});

config/helpers.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const path = require('path');
2+
3+
const ENV = process.env.NODE_ENV;
4+
const pkg = require('../package.json');
5+
const ROOT = path.resolve(__dirname, '..');
6+
7+
exports.dir = function(args) {
8+
args = Array.prototype.slice.call(arguments, 0);
9+
return path.join.apply(path, [ROOT].concat(args));
10+
}
11+
12+
exports.ENV = JSON.stringify(ENV);
13+
exports.IS_PRODUCTION = ENV === 'production';
14+
exports.IS_PACKAGE = ENV === 'package';
15+
exports.IS_DEV = ENV === 'dev' || ENV === 'development';
16+
exports.APP_VERSION = JSON.stringify(pkg.version);

config/karma.conf.js

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
const testWebpackConfig = require('./webpack.test');
2+
3+
module.exports = function(config) {
4+
var configuration = {
5+
basePath: '',
6+
singleRun: true,
7+
frameworks: ['jasmine'],
8+
exclude: [],
9+
files: [
10+
{ pattern: './config/spec-bundle.js', watched: false }
11+
],
12+
preprocessors: {
13+
'./config/spec-bundle.js': ['coverage', 'webpack', 'sourcemap']
14+
},
15+
webpack: testWebpackConfig({ env: 'test' }),
16+
webpackMiddleware: { stats: 'errors-only'},
17+
reporters: [ 'mocha', 'coverage', 'remap-coverage' ],
18+
port: 9876,
19+
colors: true,
20+
logLevel: config.LOG_INFO,
21+
autoWatch: false,
22+
browsers: ['Chrome'],
23+
customLaunchers: {
24+
ChromeTravisCi: {
25+
base: 'Chrome',
26+
flags: ['--no-sandbox']
27+
}
28+
},
29+
coverageReporter: {
30+
type: 'in-memory'
31+
},
32+
remapCoverageReporter: {
33+
'text-summary': null,
34+
json: './coverage/coverage.json',
35+
html: './coverage/html',
36+
lcovonly: './coverage/lcov.info'
37+
}
38+
};
39+
40+
if (process.env.TRAVIS){
41+
configuration.browsers = [
42+
'ChromeTravisCi'
43+
];
44+
}
45+
46+
config.set(configuration);
47+
};

0 commit comments

Comments
 (0)