Update UI build system

* Faster build times
* Smaller bundle sizes
* Adjust paths
* Cleanup npm dependencies
* Remove unneded Grunt tasks
This commit is contained in:
gconsidine
2017-09-07 18:09:14 -04:00
parent b565fd2ec1
commit c57c17546e
81 changed files with 1212 additions and 7104 deletions

View File

@@ -1,3 +1,5 @@
const templateUrl = require('@components/truncate/truncate.partial.html');
function atTruncateLink (scope, el, attr, ctrl) {
let truncateController = ctrl;
let string = attr.string;
@@ -44,12 +46,12 @@ function AtTruncateController (strings) {
AtTruncateController.$inject = ['ComponentsStrings'];
function atTruncate(pathService) {
function atTruncate() {
return {
restrict: 'E',
replace: true,
transclude: true,
templateUrl: pathService.getPartialPath('components/truncate/truncate'),
templateUrl,
controller: AtTruncateController,
controllerAs: 'vm',
link: atTruncateLink,
@@ -61,8 +63,4 @@ function atTruncate(pathService) {
}
}
atTruncate.$inject = [
'PathService'
];
export default atTruncate;