GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — launcher/gulpfile.extensions.js at master · FlashpointProject/launcher

Expand file tree

/

gulpfile.extensions.js

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
46 lines (37 loc) · 1.87 KB
/

gulpfile.extensions.js

Copy path

File metadata and controls

46 lines (37 loc) · 1.87 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
/* eslint-disable @typescript-eslint/no-var-requires */
const glob = require('glob');
const path = require('path');
const { execute } = require('./gulpfile.util');
const { parallel } = require('gulp');
const extensionsPath = path.resolve('extensions');
const fs = require('fs');
const tsConfigPaths = glob.sync('**/tsconfig.json', {
cwd: extensionsPath,
ignore: ['**/out/**', '**/dist/**', '**/node_modules/**']
});
const targets = tsConfigPaths.map(target => {
const name = path.dirname(target).replace(/\//g, '-');
const folder = path.join('./extensions', path.dirname(target));
const packageJsonPath = path.join(folder, 'package.json');
const json = JSON.parse(fs.readFileSync(packageJsonPath).toString());
const installTaskExec = `cd ${folder} && npm install`;
const buildTaskExec = `cd ${folder} && ${json['scripts']['build']}`;
const watchTaskExec = `cd ${folder} && ${json['scripts']['watch']}`;
const installTask = (cb) => execute(installTaskExec, cb);
const buildTask = (cb) => execute(buildTaskExec, cb);
const watchTask = (cb) => execute(watchTaskExec, cb);
Object.defineProperty(installTask, 'name', { value: `installExtension:${name}`});
Object.defineProperty(buildTask, 'name', { value: `buildExtension:${name}` });
Object.defineProperty(watchTask, 'name', { value: `watchExtension:${name}` });
return {
installTask,
buildTask,
watchTask
};
});
const installExtensions = targets.length > 0 ? parallel(targets.map(t => t.installTask)) : parallel([(done) => { done(); }]);
const buildExtensions = targets.length > 0 ? parallel(targets.map(t => t.buildTask)) : parallel([(done) => { done(); }]);
const watchExtensions = targets.length > 0 ? parallel(targets.map(t => t.watchTask)) : parallel([(done) => { done(); }]);
exports.installExtensions = installExtensions;
exports.buildExtensions = buildExtensions;
exports.watchExtensions = watchExtensions;
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.