Skip to content
This repository was archived by the owner on Jan 22, 2018. It is now read-only.

Commit 8b10b29

Browse files
author
Kamil Kisiela
committed
chore: fix build process and unit testing
1 parent 9f7569b commit 8b10b29

File tree

25 files changed

+99
-757
lines changed

25 files changed

+99
-757
lines changed

dist/formly-material.js

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

dist/formly-material.min.js

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

dist/formly-material.min.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ module.exports = function (config) {
7373

7474

7575
// enable / disable watching file and executing tests whenever any file changes
76-
autoWatch: false,
76+
autoWatch: !ciEnv,
7777

7878

7979
// start these browsers

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"codacy-coverage": "^1.1.3",
4343
"codecov.io": "^0.1.6",
4444
"coveralls": "^2.11.4",
45+
"html-loader": "^0.4.0",
4546
"isparta": "^4.0.0",
4647
"isparta-loader": "1.0.0",
4748
"jasmine-core": "^2.3.4",
@@ -54,8 +55,7 @@
5455
"karma-jasmine": "^0.3.6",
5556
"karma-sourcemap-loader": "^0.3.6",
5657
"karma-webpack": "^1.7.0",
57-
"path": "^0.12.7",
58-
"underscore": "^1.8.3",
58+
"lodash": "^3.10.1",
5959
"webpack": "^1.12.9"
6060
}
6161
}

src/types/checkbox/checkbox.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div>
2+
<md-checkbox ng-model="model[options.key]">
3+
{{to.label}}
4+
</md-checkbox>
5+
</div>

src/types/checkbox/checkbox.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1+
import template from './checkbox.html';
2+
13
export default (formlyConfigProvider) => {
24
formlyConfigProvider.setType({
35
name: 'checkbox',
4-
template: `
5-
<div>
6-
<md-checkbox ng-model="model[options.key]">
7-
{{to.label}}
8-
</md-checkbox>
9-
</div>`
6+
template: template
107
});
118
}

src/types/chips/chips.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<md-chips ng-model="model[options.key]"></md-chips>

src/types/chips/chips.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import template from './chips.html';
2+
13
export default (formlyConfigProvider) => {
24
formlyConfigProvider.setType({
35
name: 'chips',
4-
template: `<md-chips ng-model="model[options.key]"></md-chips>`,
6+
template: template,
57
defaultOptions: {
68
defaultValue: [],
79
ngModelAttrs: {

src/types/datepicker/datepicker.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1+
import template from './datepicker.html';
2+
13
export default (formlyConfigProvider) => {
24
formlyConfigProvider.setType({
35
name: 'datepicker',
4-
template: `
5-
<div>
6-
<md-datepicker ng-model="model[options.key]"></md-datepicker>
7-
</div>`,
6+
template: template,
87
wrapper: ['messages'],
98
defaultOptions: {
109
ngModelAttrs: {

0 commit comments

Comments
 (0)