fix: Switched webviews to correct folder
This commit is contained in:
parent
5608c72130
commit
ed63525f12
14 changed files with 4 additions and 8 deletions
|
@ -5,19 +5,15 @@ 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.VSIX_DIR, '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.VSIX_DIR, 'webviews', 'ui', 'release-notes', 'style.css'),
|
||||
path.join(PATHS.UI, 'release-notes.css')
|
||||
);
|
||||
} catch (error) {
|
||||
|
|
|
@ -10,7 +10,7 @@ import {onChangeConfiguration} from './helpers/configuration-change';
|
|||
import {changelogMessage, installationMessage} from './helpers/messages';
|
||||
import checkInstallation from './helpers/check-installation';
|
||||
import writeChangelog from './helpers/write-changelog';
|
||||
import {ReleaseNotesWebview} from '../src/webviews/ReleaseNotes';
|
||||
import {ReleaseNotesWebview} from './webviews/ReleaseNotes';
|
||||
import handleAutoapply from './helpers/handle-autoapply';
|
||||
|
||||
export async function activate(context: ExtensionContext) {
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
"build-themes": "gulp build:themes",
|
||||
"build-ui": "yarn copy-ui && yarn build-ui-release-notes",
|
||||
"copy-ui": "gulp build:copy-ui",
|
||||
"build-ui-release-notes": "browserify src/webviews/ui/release-notes/index.js > ui/release-notes.js",
|
||||
"build-ui-release-notes": "browserify extensions/webviews/ui/release-notes/index.js > ui/release-notes.js",
|
||||
"build-ui-only": "yarn cleanup && yarn build-ts && yarn build-ui",
|
||||
"build-ts": "tsc -p ./tsconfig.json",
|
||||
"test": "tslint **.ts",
|
||||
|
|
Loading…
Reference in a new issue