Enables ContextIsolation
This commit is contained in:
parent
4bbf5eb5d4
commit
9374832ea4
83 changed files with 1009 additions and 1073 deletions
29
ts/scripts/copy.ts
Normal file
29
ts/scripts/copy.ts
Normal file
|
@ -0,0 +1,29 @@
|
|||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { join } from 'path';
|
||||
import { copyFileSync } from 'fs';
|
||||
|
||||
const BASE_BOWER = join(__dirname, '../../components');
|
||||
|
||||
// Copy
|
||||
|
||||
console.log();
|
||||
console.log('Copying...');
|
||||
|
||||
const BASE_JS = join(__dirname, '../../js');
|
||||
const COPY_SOURCES = [
|
||||
{
|
||||
src: join(BASE_BOWER, 'mp3lameencoder/lib/Mp3LameEncoder.js'),
|
||||
dest: join(BASE_JS, 'Mp3LameEncoder.min.js'),
|
||||
},
|
||||
{
|
||||
src: join(BASE_BOWER, 'webaudiorecorder/lib/WebAudioRecorderMp3.js'),
|
||||
dest: join(BASE_JS, 'WebAudioRecorderMp3.js'),
|
||||
},
|
||||
];
|
||||
|
||||
for (const { src, dest } of COPY_SOURCES) {
|
||||
console.log(`Copying ${src} to ${dest}`);
|
||||
copyFileSync(src, dest);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue