blob: 1fbdb34f1c10ac53311ed27be792a961aa4956e2 [file] [log] [blame]
Matteo Scandolod2044a42017-08-07 16:08:28 -07001
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 Scandolobba1d782016-07-12 15:56:23 -070019'use strict';
20
21var gulp = require('gulp');
22var wrench = require('wrench');
23
24var options = {
25 src: 'src/',
26 css: 'src/css/',
Matteo Scandolo195dde92016-07-25 16:43:16 -070027 icon: 'src/icons',
Matteo Scandolobba1d782016-07-12 15:56:23 -070028 sass: 'src/sass/',
29 scripts: 'src/js/',
30 tmp: 'src/.tmp',
31 dist: 'dist/',
32 api: '../../ngXosLib/api/',
Matteo Scandolo195dde92016-07-25 16:43:16 -070033 helpers: './src/vendor/ng-xos-lib/dist/',
Matteo Scandolobba1d782016-07-12 15:56:23 -070034 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
38wrench.readdirSyncRecursive('./gulp')
39.map(function(file) {
40 require('./gulp/' + file)(options);
41});
42
43gulp.task('default', function () {
44 gulp.start('build');
45});