-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
57 lines (47 loc) · 1.79 KB
/
gulpfile.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
/****
* This is an example folder to be used in client that uses the gulpBin commands.
***/
const config = require('./config.json');
const gulpBin = require('sekrab-gulpbin');
const localConfig = { ...gulpBin.defaultConfig, ...config };
// assets, css and mirroring
const allAssets = gulpBin.assets(localConfig);
// generate css from less
exports.rawless = allAssets.rawless;
// also clean, and minify into public (no critical)
exports.buildcss = allAssets.buildcss;
// generate critical seperated css files
exports.critical = allAssets.critical;
// watch and rawless
exports.watch = allAssets.watch;
// gererate icons from ico-moon generated files and less
exports.icons = gulpBin.icons(localConfig);
// extract translation terms into src/locale/prefix-lang.js files
exports.extract = gulpBin.extract(localConfig);
// genreate index.lang.html into host client, from placeholder
exports.locales = gulpBin.locales(localConfig);
// example CUSTOM task
// exports.writesurge = gulpBin.locales({
// ...localConfig,
// locales: {
// source: '../surge/client/placeholder.html',
// destination: '../surge/client/',
// fileName: '200.html',
// withFolders: true,
// isUrlBased: false
// }
// });
// ng generators
const ng = gulpBin.ng(localConfig);
// no longer needed
// exports.injectServices = ng.injectServices;
// exports.injectLib = ng.injectLibModule;
// exports.injectModels = ng.injectModels;
// exports.inject = ng.injectAll;
exports.routemodule = ng.createRouteModule;
exports.component = ng.createComponent;
exports.pipe = ng.createPipe;
exports.directive = ng.createDirective;
exports.model = ng.createModel;
exports.service = ng.createService;
exports.fullService = ng.createFullService;