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 Scandolo68c2e722015-12-04 10:14:40 -080019'use strict';
20
21var gulp = require('gulp');
22var wrench = require('wrench');
23
24var options = {
25 src: 'src/',
Matteo Scandolo6c6b9282015-12-15 14:37:27 -080026 css: 'src/css/',
Matteo Scandolo195dde92016-07-25 16:43:16 -070027 icon: 'src/icons',
Matteo Scandolo54bc5f72016-05-18 14:06:45 -070028 sass: 'src/sass/',
Matteo Scandolo68c2e722015-12-04 10:14:40 -080029 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 Scandolo54bc5f72016-05-18 14:06:45 -070034 static: '../../../xos/core/xoslib/static/', // this is the django static folder
Matteo Scandoloea2448d2016-01-20 07:42:13 -080035 dashboards: '../../../xos/core/xoslib/dashboards/' // this is the django html folder
Matteo Scandolo68c2e722015-12-04 10:14:40 -080036};
37
38wrench.readdirSyncRecursive('./gulp')
39.map(function(file) {
40 require('./gulp/' + file)(options);
41});
42
43gulp.task('default', function () {
44 gulp.start('build');
45});