How to use the fuse-box/sparky.tsc function in fuse-box

To help you get started, we’ve selected a few fuse-box examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pedromsilvapt / unicast / fuse.js View on Github external
async function package ( platform ) {
    // sharp: https://github.com/lovell/sharp/releases
    // lipvips: https://github.com/lovell/sharp-libvips/releases/
    await fetch( platform, [ 'ffmpeg', 'rethinkdb', 'libvips', 'sharp' ] );

    const buildFolder = `builds/${ platform }/`;

    await reset( buildFolder );

    await tsc( __dirname, {
        ...JSON.parse( ( await fs.readFile( 'tsconfig.json', 'utf8' ) ) ).compilerOptions
    } );

    await pkg( [ '.', '--target', getPackageHost( platform ), '--out-path', buildFolder ] );

    for ( let native of nativeFolders ) {
        await makeDir( path.join( buildFolder, native ) );

        await src( path.join( native, '**/*' ), { base: "." } )
            .dest( buildFolder )
            .exec();
    }

    
    await copy( 
        './lib/Extensions',
github fuse-box / fuse-react / fuse.js View on Github external
async tsc() {
			await tsc("src", {
				target: "esnext"
			});
		}
github fuse-box / fuse-http / fuse.js View on Github external
async tsc(){
        await tsc("src", {
            target : "esnext"
        });
    }
github fuse-box / fuse-react / fuse.js View on Github external
task("tsc", async () => {
	await tsc("src", {
		target: "esnext",
		declaration: true,
		outDir: "dist/"
	});
});
github fuse-box / fuse-http / fuse.js View on Github external
task("tsc", async () => {
    await tsc("src", {
        target : "esnext",
        declaration : true,
        outDir : "dist/"
    });
});