Permalink
Browse files

chore(cleanup and update of build with the update of dev packages)

 - package.json
   - updated packages in devDependencies to current
 - DOM.js
   - fixed up test coverage
   - improved handling of childBlockELements, handles nesing now
 - globals.js
   fixed up test coverage with the package changes
 - test/taBind.js
   fixed up test coverage with the package changes
 - test/taBind/taBind.display.spec.js
   fixed up test coverage with the pacakge changes
 - test/taBind/taBind.spec.js
   fixed up test coverage with the pacakge changes
 - test/taDOM.spec.js
   fixed the tests with the package changes
 - test/taExecCommand.spec.js
   fixed the tests with the package changes
 - test/taTools.spec.js
   fixed a test that now works properly with the package changes
 - test/textAngularManager.spec.js
   fixed the tests with the package changes
 - test/sanitize.spec.js
   fixed the tests with the package changes
  • Loading branch information...
1 parent 3633c6e commit 9276b458cc447bf3a508d1eb721ab90923e253dc @JoelParke JoelParke committed Sep 2, 2016
View
@@ -118,9 +118,7 @@ module.exports = function (grunt) {
shell: {
publish: {
command: "npm publish"
- }
- },
- shell: {
+ },
changelog: {
options: {
stdinRawMode: true
@@ -129,25 +127,25 @@ module.exports = function (grunt) {
}
},
clean: {
- coverage: ["coverage"],
- dist: ["dist"],
- },
+ coverage: ["coverage"],
+ dist: ["dist"],
+ },
coverage: {
options: {
- thresholds: {
- 'statements': 100,
- 'branches': 100,
- 'lines': 100,
- 'functions': 100
- },
+ thresholds: {
+ 'statements': 100,
+ 'branches': 100,
+ 'lines': 100,
+ 'functions': 100
+ },
dir: 'coverage'
}
},
coveralls: {
options: {
debug: true,
- coverage_dir: 'coverage',
- force: true
+ coverageDir: 'coverage',
+ force: true,
}
},
karma: {
@@ -181,36 +179,36 @@ module.exports = function (grunt) {
}
},
concat: {
- dist: {
- options: {
- banner: "/*\n@license textAngular\nAuthor : Austin Anderson\nLicense : 2013 MIT\nVersion <%- pkg.version %>\n\nSee README.md or https://github.com/fraywing/textAngular/wiki for requirements and use.\n*/\n\n/*\nCommonjs package manager support (eg componentjs).\n*/\n\n\n\"use strict\";"
- },
- files:{
- 'dist/textAngular.js': ['src/globals.js','src/factories.js','src/DOM.js','src/validators.js','src/taBind.js','src/main.js'],
- }
- },
- umd: {
- files: {
- 'dist/textAngular.umd.js': ['dist/textAngularSetup.js', 'dist/textAngular.js']
- }
- }
- },
- umd: {
- all: {
- options: {
- src: 'dist/textAngular.umd.js',
- dest: 'dist/textAngular.umd.js',
- objectToExport: 'textAngular.name',
- globalAlias: 'textAngular',
- amdModuleId: 'textAngular',
- deps: {
- 'default': ['rangy'],
- cjs: ['rangy', {'rangy/lib/rangy-selectionsaverestore': ''}],
- amd: ['rangy', {'rangy/lib/rangy-selectionsaverestore': ''}]
- }
- }
- }
- },
+ dist: {
+ options: {
+ banner: "/*\n@license textAngular\nAuthor : Austin Anderson\nLicense : 2013 MIT\nVersion <%- pkg.version %>\n\nSee README.md or https://github.com/fraywing/textAngular/wiki for requirements and use.\n*/\n\n/*\nCommonjs package manager support (eg componentjs).\n*/\n\n\n\"use strict\";"
+ },
+ files:{
+ 'dist/textAngular.js': ['src/globals.js','src/factories.js','src/DOM.js','src/validators.js','src/taBind.js','src/main.js'],
+ }
+ },
+ umd: {
+ files: {
+ 'dist/textAngular.umd.js': ['dist/textAngularSetup.js', 'dist/textAngular.js']
+ }
+ }
+ },
+ umd: {
+ all: {
+ options: {
+ src: 'dist/textAngular.umd.js',
+ dest: 'dist/textAngular.umd.js',
+ objectToExport: 'textAngular.name',
+ globalAlias: 'textAngular',
+ amdModuleId: 'textAngular',
+ deps: {
+ 'default': ['rangy'],
+ cjs: ['rangy', {'rangy/lib/rangy-selectionsaverestore': ''}],
+ amd: ['rangy', {'rangy/lib/rangy-selectionsaverestore': ''}]
+ }
+ }
+ }
+ },
uglify: {
options: {
mangle: true,
@@ -226,13 +224,13 @@ module.exports = function (grunt) {
}
}
},
- demo_pages: {
- main: {
- cwd: 'src/demo/',
- src: '*.html',
- dest: 'demo/'
- }
- },
+ demo_pages: {
+ main: {
+ cwd: 'src/demo/',
+ src: '*.html',
+ dest: 'demo/'
+ }
+ },
watch: {
files: "src/*.js",
tasks: "compile"
View
@@ -42,17 +42,17 @@
"grunt-conventional-changelog": "^6.1.0",
"grunt-git": "^1.0.0",
"grunt-istanbul-coverage": "0.0.5",
- "grunt-karma": "^0.6.2",
+ "grunt-karma": "^1.0.0",
"grunt-karma-coveralls": "^2.5.0",
"grunt-shell": "^1.1.1",
"grunt-umd": "^2.3.5",
- "karma": "^0.11.14",
- "karma-chrome-launcher": "~0.1.2",
+ "karma": "^1.2.0",
+ "karma-chrome-launcher": "^2.0.0",
"karma-coverage": "^1.1.1",
- "karma-jasmine": "~0.1.5",
- "karma-phantomjs-launcher": "^0.2.3",
+ "karma-jasmine": "^1.0.2",
+ "karma-phantomjs-launcher": "^1.0.2",
"karma-script-launcher": "^1.0.0",
- "phantomjs": "^1.9.19",
+ "phantomjs": "^2.1.7",
"phantomjs-polyfill": "0.0.2"
},
"scripts": {
Oops, something went wrong.

0 comments on commit 9276b45

Please sign in to comment.