@@ -65,15 +65,9 @@ module.exports = function (grunt) {
6565 dest : 'docs' ,
6666 expand : true
6767 } ,
68- styles : {
69- cwd : 'styles/' ,
70- src : [ '*.css' , '!*.min.css' ] ,
71- dest : 'dist/styles' ,
72- expand : true
73- } ,
7468 img : {
7569 cwd : 'misc/' ,
76- src : 'patternfly-orb.svg' ,
70+ src : [ 'patternfly-orb.svg' , '*.png' ] ,
7771 dest : 'docs/img' ,
7872 expand : true
7973 } ,
@@ -82,13 +76,30 @@ module.exports = function (grunt) {
8276 src : [ '**' ] ,
8377 dest : 'dist/docs' ,
8478 expand : true
79+ } ,
80+ distimg : {
81+ cwd : 'misc' ,
82+ src : [ 'canvas-dot-grid.png' ] ,
83+ dest : 'dist/imgs' ,
84+ expand : true
85+ }
86+ } ,
87+ less : {
88+ patternfly : {
89+ files : {
90+ 'dist/styles/angular-patternfly.css' : 'styles/angular-patternfly.less'
91+ } ,
92+ options : {
93+ paths : [ 'src/less/' ] ,
94+ strictMath : true
95+ }
8596 }
8697 } ,
8798 cssmin : {
8899 target : {
89100 files : [ {
90101 expand : true ,
91- cwd : 'styles' ,
102+ cwd : 'dist/ styles' ,
92103 src : [ '*.css' , '!*.min.css' ] ,
93104 dest : 'dist/styles' ,
94105 ext : '.min.css'
@@ -126,6 +137,7 @@ module.exports = function (grunt) {
126137 image : 'misc/logo-alt.svg' ,
127138 scripts : [
128139 'node_modules/jquery/dist/jquery.js' ,
140+ 'node_modules/components-jqueryui/jquery-ui.min.js' ,
129141 'node_modules/datatables.net/js/jquery.dataTables.js' ,
130142 'node_modules/datatables.net-select/js/dataTables.select.js' ,
131143 'node_modules/moment/moment.js' ,
@@ -135,6 +147,7 @@ module.exports = function (grunt) {
135147 'node_modules/patternfly/dist/js/patternfly-settings-colors.js' ,
136148 'node_modules/patternfly/dist/js/patternfly-settings-charts.js' ,
137149 'node_modules/angular/angular.js' ,
150+ 'node_modules/angular-dragdrop/src/angular-dragdrop.js' ,
138151 'node_modules/angular-datatables/dist/angular-datatables.min.js' ,
139152 'node_modules/angular-datatables/dist/plugins/select/angular-datatables.select.min.js' ,
140153 'node_modules/angular-sanitize/angular-sanitize.js' ,
@@ -143,7 +156,8 @@ module.exports = function (grunt) {
143156 'misc/angular-bootstrap-prettify.js' ,
144157 'node_modules/lodash/lodash.min.js' ,
145158 'dist/angular-patternfly.js' ,
146- 'node_modules/angular-ui-router/release/angular-ui-router.min.js' ] ,
159+ 'node_modules/angular-ui-router/release/angular-ui-router.min.js' ,
160+ 'node_modules/angular-drag-and-drop-lists/angular-drag-and-drop-lists.js' ] ,
147161 html5Mode : false ,
148162 template : 'grunt-ngdocs-index.tmpl' ,
149163 styles : [ 'node_modules/datatables.net-dt/css/jquery.dataTables.css' ,
@@ -233,6 +247,11 @@ module.exports = function (grunt) {
233247 cwd : 'src/' ,
234248 src : [ 'wizard/**/*.html' ] ,
235249 dest : 'templates/wizard.js'
250+ } ,
251+ 'patternfly.canvas' : {
252+ cwd : 'src/' ,
253+ src : [ 'canvas-view/**/*.html' ] ,
254+ dest : 'templates/canvas.js'
236255 }
237256 } ,
238257 // ng-annotate tries to make the code safe for minification automatically
@@ -270,7 +289,7 @@ module.exports = function (grunt) {
270289 tasks : [ 'test' ]
271290 } ,
272291 all : {
273- files : [ 'Gruntfile.js' , 'src/**/*.js' , 'src/**/*.html' , 'styles/**/*.css' ] ,
292+ files : [ 'Gruntfile.js' , 'src/**/*.js' , 'src/**/*.html' , 'styles/**/*.css' , '**/*.less' ] ,
274293 tasks : [ 'build' ] ,
275294 options : {
276295 livereload : 35722
@@ -279,7 +298,7 @@ module.exports = function (grunt) {
279298 }
280299 } ) ;
281300
282- grunt . registerTask ( 'copymain' , [ 'copy:docdata' , 'copy:fa' , 'copy:styles ' , 'copy:img ' ] ) ;
301+ grunt . registerTask ( 'copymain' , [ 'copy:docdata' , 'copy:fa' , 'copy:img ' , 'copy:distimg ' ] ) ;
283302
284303 // You can specify which modules to build as arguments of the build task.
285304 grunt . registerTask ( 'build' , 'Create bootstrap build files' , function ( ) {
@@ -299,13 +318,13 @@ module.exports = function (grunt) {
299318 concatSrc = 'src/**/*.js' ;
300319 }
301320
302- grunt . task . run ( [ 'clean' , 'lint' , 'test' , 'ngtemplates' , 'concat' , 'ngAnnotate' , 'uglify:build' , 'cssmin' , 'copymain' , 'ngdocs' , 'clean:templates' ] ) ;
321+ grunt . task . run ( [ 'clean' , 'lint' , 'test' , 'ngtemplates' , 'concat' , 'ngAnnotate' , 'uglify:build' , 'less' , ' cssmin', 'copymain' , 'ngdocs' , 'clean:templates' ] ) ;
303322 } ) ;
304323
305324 // Runs all the tasks of build with the exception of tests
306325 grunt . registerTask ( 'deploy' , 'Prepares the project for deployment. Does not run unit tests' , function ( ) {
307326 var concatSrc = 'src/**/*.js' ;
308- grunt . task . run ( [ 'clean' , 'lint' , 'ngtemplates' , 'concat' , 'ngAnnotate' , 'uglify:build' , 'cssmin' , 'copymain' , 'ngdocs' , 'clean:templates' ] ) ;
327+ grunt . task . run ( [ 'clean' , 'lint' , 'ngtemplates' , 'concat' , 'ngAnnotate' , 'uglify:build' , 'less' , ' cssmin', 'copymain' , 'ngdocs' , 'clean:templates' ] ) ;
309328 } ) ;
310329
311330 grunt . registerTask ( 'default' , [ 'build' ] ) ;
0 commit comments