blob: c824ebcb2c0f5742adb37be34e4a5df9821cc9df [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
Rizwan Haider8e5f4772016-08-17 18:04:35 -040019'use strict';
20
21var gulp = require('gulp');
22var wrench = require('wrench');
23
24var options = {
25 src: 'src/',
26 css: 'src/css/',
27 sass: 'src/sass/',
28 scripts: 'src/js/',
29 tmp: 'src/.tmp',
30 dist: 'dist/',
31 api: '../../ngXosLib/api/',
32 helpers: '../../../xos/core/xoslib/static/js/vendor/',
33 static: '../../../xos/core/xoslib/static/', // this is the django static folder
34 dashboards: '../../../xos/core/xoslib/dashboards/' // this is the django html folder
35};
36
37wrench.readdirSyncRecursive('./gulp')
38.map(function(file) {
39 require('./gulp/' + file)(options);
40});
41
42gulp.task('default', function () {
43 gulp.start('build');
44});