Skip to content

Commit

Permalink
Fix(build): Two banners was being added to the built files. Also the …
Browse files Browse the repository at this point in the history
….css banner was with a outdated version
  • Loading branch information
pbassut committed Sep 12, 2015
1 parent b33e4f0 commit 776db53
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 56 deletions.
30 changes: 18 additions & 12 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = function (grunt) {

grunt.registerTask('compile', ['concat', 'copy:setupFiles', 'jshint', 'uglify']);
grunt.registerTask('default', ['compile', 'test']);
grunt.registerTask('test', ['clean', 'jshint', 'karma', 'coverage']);
grunt.registerTask('test', ['clean:coverage', 'jshint', 'karma', 'coverage']);
grunt.registerTask('travis-test', ['concat', 'copy:setupFiles', 'jshint', 'karma', 'coverage', 'coveralls']);

grunt.registerTask('release', ['bump-only','compile', 'demo_pages', 'changelog','gitcommit','bump-commit', 'shell:publish']);
Expand Down Expand Up @@ -78,15 +78,18 @@ module.exports = function (grunt) {
command: "npm publish"
}
},
clean: ["coverage"],
clean: {
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'
}
},
Expand Down Expand Up @@ -123,7 +126,7 @@ module.exports = function (grunt) {
setupFiles: {
expand: true,
cwd: 'src/',
src: ['textAngularSetup.js', 'textAngular.css', 'textAngular-sanitize.js'],
src: ['textAngularSetup.js', 'textAngular-sanitize.js'],
dest: 'dist/'
}
},
Expand All @@ -133,9 +136,12 @@ module.exports = function (grunt) {
footer: "})();"
},
dist: {
src: ['src/globals.js','src/factories.js','src/DOM.js','src/validators.js','src/taBind.js','src/main.js'],
dest: 'dist/textAngular.js'
}
files:{
'dist/textAngular.js': ['src/globals.js','src/factories.js','src/DOM.js','src/validators.js','src/taBind.js','src/main.js'],
// This one is just for reusing the banner and have it automatically generated to include the current version
'dist/textAngular.css': ['src/textAngular.css'],
}
},
},
uglify: {
options: {
Expand Down
2 changes: 1 addition & 1 deletion dist/textAngular-rangy.min.js

Large diffs are not rendered by default.

15 changes: 12 additions & 3 deletions dist/textAngular.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@
@license textAngular
Author : Austin Anderson
License : 2013 MIT
Version 1.3.7
Version 1.4.4
See README.md or https://github.com/fraywing/textAngular/wiki for requirements and use.
*/

.ta-hidden-input {
/*
Commonjs package manager support (eg componentjs).
*/

/* istanbul ignore next: */
'undefined'!=typeof module&&'undefined'!=typeof exports&&module.exports===exports&&(module.exports='textAngular');

(function(){ // encapsulate all variables so they don't become global vars
"use strict";.ta-hidden-input {
width: 1px;
height: 1px;
border: none;
Expand Down Expand Up @@ -199,4 +207,5 @@ See README.md or https://github.com/fraywing/textAngular/wiki for requirements a
content: " ";
border-top-width: 0;
border-bottom-color: #fff;
}
}
})();
12 changes: 2 additions & 10 deletions dist/textAngular.min.js

Large diffs are not rendered by default.

10 changes: 0 additions & 10 deletions dist/textAngularSetup.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
/*
@license textAngular
Author : Austin Anderson
License : 2013 MIT
Version 1.3.7
See README.md or https://github.com/fraywing/textAngular/wiki for requirements and use.
*/


angular.module('textAngularSetup', [])
// Here we set up the global display defaults, to set your own use a angular $provider#decorator.
.value('taOptions', {
Expand Down
11 changes: 1 addition & 10 deletions src/textAngular.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
/*
@license textAngular
Author : Austin Anderson
License : 2013 MIT
Version 1.3.7
See README.md or https://github.com/fraywing/textAngular/wiki for requirements and use.
*/

.ta-hidden-input {
width: 1px;
height: 1px;
Expand Down Expand Up @@ -199,4 +190,4 @@ See README.md or https://github.com/fraywing/textAngular/wiki for requirements a
content: " ";
border-top-width: 0;
border-bottom-color: #fff;
}
}
10 changes: 0 additions & 10 deletions src/textAngularSetup.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
/*
@license textAngular
Author : Austin Anderson
License : 2013 MIT
Version 1.3.7
See README.md or https://github.com/fraywing/textAngular/wiki for requirements and use.
*/


angular.module('textAngularSetup', [])
// Here we set up the global display defaults, to set your own use a angular $provider#decorator.
.value('taOptions', {
Expand Down

0 comments on commit 776db53

Please sign in to comment.