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,15 +1,15 @@
function atPanelBody (pathService) {
const templateUrl = require('@components/panel/body.partial.html');
function atPanelBody () {
return {
restrict: 'E',
replace: true,
transclude: true,
templateUrl: pathService.getPartialPath('components/panel/body'),
templateUrl,
scope: {
state: '='
}
};
}
atPanelBody.$inject = ['PathService'];
export default atPanelBody;

View File

@@ -1,18 +1,18 @@
const templateUrl = require('@components/panel/heading.partial.html');
function link (scope, el, attrs, panel) {
panel.use(scope);
}
function atPanelHeading (pathService) {
function atPanelHeading () {
return {
restrict: 'E',
require: '^^atPanel',
replace: true,
transclude: true,
templateUrl: pathService.getPartialPath('components/panel/heading'),
templateUrl,
link
};
}
atPanelHeading.$inject = ['PathService'];
export default atPanelHeading;

View File

@@ -1,3 +1,5 @@
const templateUrl = require('@components/panel/panel.partial.html');
function atPanelLink (scope, el, attrs, controllers) {
let panelController = controllers[0];
@@ -26,13 +28,13 @@ function AtPanelController ($state) {
AtPanelController.$inject = ['$state'];
function atPanel (pathService, _$animate_) {
function atPanel () {
return {
restrict: 'E',
replace: true,
require: ['atPanel'],
transclude: true,
templateUrl: pathService.getPartialPath('components/panel/panel'),
templateUrl,
controller: AtPanelController,
controllerAs: 'vm',
link: atPanelLink,
@@ -43,6 +45,4 @@ function atPanel (pathService, _$animate_) {
};
}
atPanel.$inject = ['PathService'];
export default atPanel;