Matteo Scandolo | d2044a4 | 2017-08-07 16:08:28 -0700 | [diff] [blame] | 1 | |
| 2 | /* |
| 3 | * Copyright 2017-present Open Networking Foundation |
| 4 | |
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | * you may not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at |
| 8 | |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | */ |
| 17 | |
| 18 | |
Matteo Scandolo | 70bc45f | 2016-05-06 14:10:11 -0700 | [diff] [blame] | 19 | 'use strict'; |
| 20 | |
| 21 | var gulp = require('gulp'); |
| 22 | var wrench = require('wrench'); |
| 23 | |
| 24 | var options = { |
| 25 | src: 'src/', |
| 26 | css: 'src/css/', |
Matteo Scandolo | 195dde9 | 2016-07-25 16:43:16 -0700 | [diff] [blame] | 27 | icon: 'src/icons', |
Matteo Scandolo | 70bc45f | 2016-05-06 14:10:11 -0700 | [diff] [blame] | 28 | sass: 'src/sass/', |
| 29 | scripts: 'src/js/', |
| 30 | tmp: 'src/.tmp', |
| 31 | dist: 'dist/', |
| 32 | api: '../../ngXosLib/api/', |
Matteo Scandolo | 195dde9 | 2016-07-25 16:43:16 -0700 | [diff] [blame] | 33 | helpers: './src/vendor/ng-xos-lib/dist/', |
Matteo Scandolo | 70bc45f | 2016-05-06 14:10:11 -0700 | [diff] [blame] | 34 | static: '../../../xos/core/xoslib/static/', // this is the django static folder |
| 35 | dashboards: '../../../xos/core/xoslib/dashboards/' // this is the django html folder |
| 36 | }; |
| 37 | |
| 38 | wrench.readdirSyncRecursive('./gulp') |
| 39 | .map(function(file) { |
| 40 | require('./gulp/' + file)(options); |
| 41 | }); |
| 42 | |
| 43 | gulp.task('default', function () { |
| 44 | gulp.start('build'); |
| 45 | }); |