-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulp.tanzim.js
91 lines (78 loc) · 1.82 KB
/
gulp.tanzim.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
module.exports = function() {
var samteKarbar = './';
var barname = './barname/';
var mvg = './mvg/';
var desktop = process.env.XDG_CURRENT_DESKTOP;
var tanzim = {
/*
Tamame Addressha
*/
tamamejs: barname + '**/*.js',
tolid: './tolid/',
tolidSite: './docs/',
karbar: samteKarbar,
css: mvg + '*.css',
fonts: samteKarbar + 'fonts/**/*.*',
htmltemplates: barname + 'html/**/*.html',
frthtmltmp: barname + 'html/frt.editor.tmd.html',
frtjscss: [
barname + 'directive/frt.editor.dr.js',
mvg + 'templateha.js',
mvg + 'index-dr.css'
],
tourmajazi: samteKarbar + 'Tour-Majazi/**/*.*',
htmltemaghsad: barname + 'html/',
tasavir: samteKarbar + 'tasv/**/*.*',
index: samteKarbar + 'index.html',
jade: barname + '**/*.jade',
js: [
barname + '**/*.vahed.js',
barname + '**/*.js'
],
json: samteKarbar + 'dade.json',
stylus: samteKarbar + 'style/**/*.styl',
stylIndex: samteKarbar + 'style/ind/*.styl',
movaghat: mvg,
templateAdrreess: mvg + 'templateha.js',
/**
* template cache
*/
templateCache: {
file: 'templateha.js',
gozineha: {
module: 'frtEditor',
standAlone: false,
root: 'barname/html/'
}
},
/**
* browserSync
*/
takhirBazneshaniMororgar: 3000,
/**
* mahale bower va NPM
*/
bower: {
json: require(samteKarbar + 'bower.json'),
directory: samteKarbar + 'bower_components/'
},
};
tanzim.begiGoziheHayePishfarzWiredep = function() {
var gozineHa = {
bowerJson: tanzim.bower.json,
directory: tanzim.bower.directory,
devDependencies: true
};
return gozineHa;
};
tanzim.browserBarayeBrowserSync = function() {
if (desktop === 'GNOME' || 'gnome') {
return 'chromium-browser';
} else if (desktop === 'Unity') {
return 'chromium-browser';
} else {
return 'chromium-browser';
}
};
return tanzim;
};