chore: Changed path to exstensions

This commit is contained in:
Alessio 2018-08-30 09:28:26 +02:00
parent ed63525f12
commit dbc9a364d2
3 changed files with 7 additions and 2 deletions

View file

@ -9,11 +9,11 @@ export default gulp.task('build:copy-ui', callback => {
try { try {
ensureDir(path.resolve(PATHS.UI)); ensureDir(path.resolve(PATHS.UI));
fs.copyFileSync( fs.copyFileSync(
path.join(PATHS.VSIX_DIR, 'webviews', 'ui', 'release-notes', 'release-notes.html'), path.join(PATHS.EXT_DIR, 'webviews', 'ui', 'release-notes', 'release-notes.html'),
path.join(PATHS.UI, 'release-notes.html') path.join(PATHS.UI, 'release-notes.html')
); );
fs.copyFileSync( fs.copyFileSync(
path.join(PATHS.VSIX_DIR, 'webviews', 'ui', 'release-notes', 'style.css'), path.join(PATHS.EXT_DIR, 'webviews', 'ui', 'release-notes', 'style.css'),
path.join(PATHS.UI, 'release-notes.css') path.join(PATHS.UI, 'release-notes.css')
); );
} catch (error) { } catch (error) {

View file

@ -9,6 +9,7 @@ export const PATHS: IPaths = {
THEMES: './themes', THEMES: './themes',
UI: './ui', UI: './ui',
VSIX_DIR: path.join(__dirname, '../../'), VSIX_DIR: path.join(__dirname, '../../'),
EXT_DIR: path.join(__dirname, '..')
}; };
export default PATHS; export default PATHS;

View file

@ -19,6 +19,10 @@ export interface IPaths {
* Extension directory * Extension directory
*/ */
VSIX_DIR: string; VSIX_DIR: string;
/**
* Internal Extensions directory
*/
EXT_DIR: string;
/** /**
* UI directory * UI directory
*/ */