Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions Brocfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import merge from 'broccoli-merge-trees';
import typescript from "broccoli-typescript-compiler";
import rollup from 'broccoli-rollup';

const tsCompilerOpts = {
module: "es6",
target: "es2018",
moduleResolution: "classic",
newLine: "LF",
rootDir: "src",
outDir: "dist",
allowJs: true,
sourceMap: true,
declaration: false,
};

var cjsTree = typescript('src', {
tsconfig: {
compilerOptions: tsCompilerOpts,
files: ["src/lib/main/index.ts", "src/lib/main/app.ts","src/lib/main/thread.ts","src/lib/main/vm.ts"],
},
throwOnError: false,
annotation: "compile program",
});

var workerTree = typescript('src', {
tsconfig: {
compilerOptions: tsCompilerOpts,
files: ["src/lib/worker-thread/ww.ts", "src/lib/worker-thread/hooks.ts"],
},
throwOnError: false,
annotation: "compile program",
});

export default merge(['src', workerTree, rollup(cjsTree, {
rollup: {
input: 'lib/main/index.js',
output: {
file: 'index.js',
format: 'es',
},
} })
]);
Loading