d9ea7c2ea6
* chore(deps): update dependencies * chore: renamed custom-settings interface * WIP: added new Webview handler main class * WIP: added support for Settings webview * WIP (webview): added gulp command for copying ui files * WIP (preview): scripts for building updated * chore: gitignore * chore: switched to babel-preset-env and added browserify for bundling * chore: small changes to webviews (added external interfaces file) * chore: added new task on task explorer and small fix copy ui task * WIP: webview HTML, JS and CSS added and ready to be developed * chore: Test native elements * chore(release): 2.3.0 * chore: init added release notes webview * chore: Removed unused import * chore: fixed build release-notes * chore: Add release notes template * chore: Update release notes * chore: Update release notes template * chore: Update release notes style * Create stale.yml * chore: Update release notes * chore: Removed show-changelog command
28 lines
830 B
TypeScript
28 lines
830 B
TypeScript
import * as fs from 'fs';
|
|
import * as path from 'path';
|
|
import * as gulp from 'gulp';
|
|
|
|
import {PATHS} from '../../extensions/consts/paths';
|
|
import {ensureDir} from '../../extensions/helpers/fs';
|
|
|
|
/**
|
|
* For each ThemeIconVariant create a Material-Theme-Icons-{variant}.json
|
|
* depends on default Material-Theme-Icons.json
|
|
*/
|
|
export default gulp.task('build:copy-ui', callback => {
|
|
try {
|
|
ensureDir(path.resolve(PATHS.UI));
|
|
fs.copyFileSync(
|
|
path.join(PATHS.SRC, 'webviews', 'ui', 'release-notes', 'release-notes.html'),
|
|
path.join(PATHS.UI, 'release-notes.html')
|
|
);
|
|
fs.copyFileSync(
|
|
path.join(PATHS.SRC, 'webviews', 'ui', 'release-notes', 'style.css'),
|
|
path.join(PATHS.UI, 'release-notes.css')
|
|
);
|
|
} catch (error) {
|
|
return callback(error);
|
|
}
|
|
|
|
callback();
|
|
});
|