@cxl/build 0.2.0 → 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/amd.js DELETED
@@ -1,121 +0,0 @@
1
- "use strict";
2
- ((window) => {
3
- const __require = window.process ? require : undefined;
4
- const define = (window.define || (window.define = _define));
5
- const modules = (_require.modules = define.modules = define.modules || {});
6
- const modulePromise = {};
7
- const BASENAME_REGEX = /\/?([^/]+)$/;
8
- const windowRequire = (window.require || _require);
9
- function dirname(path) {
10
- return path.replace(BASENAME_REGEX, '');
11
- }
12
- function normalize(path, basePath) {
13
- return new URL(basePath + '/' + (path.endsWith('.js') ? path : `${path}.js`), 'https://localhost').pathname.slice(1);
14
- }
15
- async function _requireAsync(path) {
16
- await Promise.resolve();
17
- const mod = modules[path] || modulePromise[path];
18
- if (mod)
19
- return mod;
20
- const modulePath = windowRequire.replace
21
- ? windowRequire.replace(path)
22
- : path;
23
- return (modulePromise[path] = _import(modulePath, path));
24
- }
25
- function _require(path, resolve, reject, basePath) {
26
- let actualPath = Array.isArray(path) ? path[0] : path;
27
- let mod = modules[actualPath];
28
- if (!mod) {
29
- if (__require) {
30
- try {
31
- mod = __require(actualPath);
32
- }
33
- catch (e) {
34
- }
35
- }
36
- if (!mod) {
37
- if (basePath)
38
- actualPath = normalize(actualPath, basePath);
39
- mod = _requireAsync(actualPath);
40
- }
41
- }
42
- if (resolve) {
43
- if (mod instanceof Promise)
44
- mod.then(resolve, reject);
45
- else
46
- resolve(mod);
47
- }
48
- return mod;
49
- }
50
- function defineAsync(name, injects, module) {
51
- let isAsync = false;
52
- const moduleExports = {};
53
- const args = [];
54
- function resolve(newargs) {
55
- const hasModule = !!window.module;
56
- const mod = (window.module = {
57
- exports: moduleExports,
58
- });
59
- const result = module(...newargs);
60
- const resultMod = (modules[name] =
61
- result || mod.exports || moduleExports);
62
- delete modulePromise[name];
63
- if (hasModule)
64
- delete window.module;
65
- return resultMod;
66
- }
67
- function findModule(modname) {
68
- if (modname === 'exports')
69
- return moduleExports;
70
- if (modname === 'require')
71
- return _require;
72
- if (modname.startsWith('.'))
73
- return _require(modname, undefined, undefined, dirname(name));
74
- return _require(modname);
75
- }
76
- for (const inject of injects) {
77
- const mod = findModule(inject);
78
- if (mod instanceof Promise)
79
- isAsync = true;
80
- args.push(mod);
81
- }
82
- return isAsync ? Promise.all(args).then(resolve) : resolve(args);
83
- }
84
- function defineNormalized(name, injects, module) {
85
- if (!modules[name])
86
- modulePromise[name] = defineAsync(name, injects, module);
87
- else
88
- throw new Error(`Module "${name}" already defined`);
89
- }
90
- function _define(name, injects, module) {
91
- if (Array.isArray(name) && injects && !Array.isArray(injects)) {
92
- defineNormalized(define.moduleName, name, injects);
93
- }
94
- else if (typeof name === 'function') {
95
- defineNormalized(define.moduleName, [], name);
96
- }
97
- else if (typeof name === 'string' && Array.isArray(injects) && module)
98
- defineNormalized(name, injects, module);
99
- else
100
- throw new Error('Invalid define');
101
- }
102
- function _import(url, moduleName) {
103
- return fetch(url)
104
- .then(res => (res.status === 200 ? res.text() : ''))
105
- .then(__src => {
106
- if (!__src)
107
- return (modules[moduleName] = {});
108
- define.moduleName = moduleName;
109
- delete modulePromise[moduleName];
110
- define.eval(`${__src}\n//# sourceURL=${moduleName}`);
111
- return modules[moduleName] || modulePromise[moduleName] || {};
112
- });
113
- }
114
- if (typeof window.require !== 'undefined')
115
- _require.resolve = window.require.resolve;
116
- window.require = window.require || _require;
117
- _define.amd = true;
118
- })(typeof self === 'undefined' ? global : self);
119
- define.eval || (define.eval = function (__source) {
120
- eval(__source);
121
- });
package/builder.js DELETED
@@ -1,129 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.appLog = void 0;
4
- exports.build = build;
5
- exports.exec = exec;
6
- exports.shell = shell;
7
- exports.run = run;
8
- const path_1 = require("path");
9
- const fs_1 = require("fs");
10
- const child_process_1 = require("child_process");
11
- const program_1 = require("@cxl/program");
12
- const rx_1 = require("@cxl/rx");
13
- const tsc_js_1 = require("./tsc.js");
14
- const package_js_1 = require("./package.js");
15
- const AppName = program_1.colors.green('build');
16
- exports.appLog = program_1.log.bind(null, AppName);
17
- function kb(bytes) {
18
- return (bytes / 1000).toFixed(2) + 'kb';
19
- }
20
- class Build {
21
- constructor(log, config) {
22
- this.log = log;
23
- this.config = config;
24
- this.outputDir = config.outputDir || '.';
25
- }
26
- async runTask(task) {
27
- await task.tap(result => {
28
- const outFile = (0, path_1.resolve)(this.outputDir, result.path);
29
- const source = result.source;
30
- const outputDir = (0, path_1.dirname)(outFile);
31
- if (!(0, fs_1.existsSync)(outputDir))
32
- (0, child_process_1.execSync)(`mkdir -p ${outputDir}`);
33
- (0, fs_1.writeFileSync)(outFile, source);
34
- if (result.mtime)
35
- (0, fs_1.utimesSync)(outFile, result.mtime, result.mtime);
36
- const printPath = (0, path_1.relative)(process.cwd(), outFile);
37
- this.log(`${printPath} ${kb((result.source || '').length)}`);
38
- });
39
- }
40
- async build() {
41
- try {
42
- const target = this.config.target || '';
43
- if (target)
44
- this.log(`target ${target}`);
45
- (0, child_process_1.execSync)(`mkdir -p ${this.outputDir}`);
46
- await Promise.all(this.config.tasks.map(task => this.runTask(task)));
47
- }
48
- catch (e) {
49
- console.log('BUILD: ', e);
50
- throw 'Build finished with errors';
51
- }
52
- }
53
- }
54
- async function build(...targets) {
55
- if (!targets)
56
- throw new Error('Invalid configuration');
57
- if (package_js_1.BASEDIR !== process.cwd()) {
58
- process.chdir(package_js_1.BASEDIR);
59
- (0, exports.appLog)(`chdir "${package_js_1.BASEDIR}"`);
60
- }
61
- const pkg = (0, package_js_1.readPackage)();
62
- (0, exports.appLog)(`${pkg.name} ${pkg.version}`);
63
- (0, exports.appLog)(`typescript ${tsc_js_1.tscVersion}`);
64
- const runTargets = [undefined, ...process.argv];
65
- try {
66
- for (const targetId of runTargets) {
67
- for (const target of targets)
68
- if (target.target === targetId)
69
- await new Build(exports.appLog, target).build();
70
- }
71
- }
72
- catch (e) {
73
- console.error(e);
74
- process.exit(1);
75
- }
76
- }
77
- function formatTime(time) {
78
- const s = Number(time) / 1e9, str = s.toFixed(4) + 's';
79
- return s > 0.1 ? (s > 0.5 ? program_1.colors.red(str) : program_1.colors.yellow(str)) : str;
80
- }
81
- function exec(cmd) {
82
- return new rx_1.Observable(subs => {
83
- (0, exports.appLog)(`sh ${cmd}`);
84
- (0, program_1.operation)((0, program_1.sh)(cmd, {})).then(result => {
85
- (0, exports.appLog)(`sh ${cmd}`, formatTime(result.time));
86
- if (result.result)
87
- console.log(result.result);
88
- subs.complete();
89
- }, e => {
90
- subs.error(e);
91
- });
92
- });
93
- }
94
- function shell(cmd, options = {}) {
95
- return new rx_1.Observable(subs => {
96
- const proc = (0, child_process_1.spawn)(cmd, [], { shell: true, ...options });
97
- let output;
98
- let error;
99
- proc.stdout?.on('data', data => (output = output
100
- ? Buffer.concat([output, Buffer.from(data)])
101
- : Buffer.from(data)));
102
- proc.stderr?.on('data', data => (error = error
103
- ? Buffer.concat([error, Buffer.from(data)])
104
- : Buffer.from(data)));
105
- proc.on('close', code => {
106
- if (code)
107
- subs.error(error || output);
108
- else {
109
- subs.next(output);
110
- subs.complete();
111
- }
112
- });
113
- });
114
- }
115
- function run(cmd, params, options) {
116
- const args = [cmd];
117
- for (const p in params) {
118
- const val = params[p];
119
- if (val === false || val === undefined)
120
- continue;
121
- if (Array.isArray(val)) {
122
- val.forEach(v => args.push(`--${p} "${v}"`));
123
- }
124
- else
125
- args.push(typeof val === 'boolean' ? `--${p}` : `--${p} "${val}"`);
126
- }
127
- console.log(args.join(' '));
128
- return (0, program_1.sh)(args.join(' '), options);
129
- }
package/cxl.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import { Output } from '@cxl/source';
2
- import { BuildConfiguration } from './builder.js';
3
- export declare function minifyIf(filename: string): (source: import("@cxl/rx").Observable<Output, "none">) => import("@cxl/rx").Observable<Output, "none">;
4
- export declare function generateTestFile(dirName: string, pkgName: string, testFile: string): string;
5
- export declare function buildCxl(...extra: BuildConfiguration[]): Promise<void>;
package/cxl.js DELETED
@@ -1,178 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.minifyIf = minifyIf;
4
- exports.generateTestFile = generateTestFile;
5
- exports.buildCxl = buildCxl;
6
- const path_1 = require("path");
7
- const child_process_1 = require("child_process");
8
- const fs_1 = require("fs");
9
- const rx_1 = require("@cxl/rx");
10
- const builder_js_1 = require("./builder.js");
11
- const package_js_1 = require("./package.js");
12
- const file_js_1 = require("./file.js");
13
- const lint_js_1 = require("./lint.js");
14
- const tsc_js_1 = require("./tsc.js");
15
- function minifyIf(filename) {
16
- return (0, rx_1.mergeMap)((out) => out.path === filename
17
- ? (0, rx_1.concat)((0, rx_1.of)(out), (0, file_js_1.file)(out.path).pipe((0, file_js_1.minify)()))
18
- : (0, rx_1.of)(out));
19
- }
20
- function generateTestFile(dirName, pkgName, testFile) {
21
- return `<!DOCTYPE html>
22
- <title>${pkgName} Test Suite</title>
23
- <script type="module" src="/cxl/dist/tester/require-browser.js"></script>
24
- <script type="module">
25
- require.replace = function (path) {
26
- return path.replace(
27
- /^@j5g3\\/(.+)/,
28
- (str, p1) =>
29
- \`/j5g3/dist/\${str.endsWith('.js') ? p1 : p1 + '/index.js'}\`
30
- )
31
- .replace(
32
- /^@cxl\\/workspace\\.(.+)/,
33
- (str, p1) =>
34
- \`/cxl.app/dist/$\{
35
- str.endsWith('.js') ? p1 : p1 + '/index.js'
36
- }\`
37
- )
38
- .replace(
39
- /^@cxl\\/gbc\.(.*)/,
40
- (str, p1) =>
41
- \`/gbc/dist/$\{
42
- str.endsWith('.js') ? p1 : p1 + '/index.js'
43
- }\`
44
- )
45
- .replace(
46
- /^@cxl\\/(ui.*)/,
47
- (str, p1) =>
48
- \`/ui/dist/$\{
49
- str.endsWith('.js') ? p1 : p1 + '/index.js'
50
- }\`
51
- )
52
- .replace(
53
- /^@cxl\\/(.+)/,
54
- (str, p1) =>
55
- \`/cxl/dist/$\{
56
- str.endsWith('.js') ? p1 : p1 + '/index.js'
57
- }\`
58
- );
59
- };
60
- const browserRunner = require('/cxl/dist/tester/browser-runner.js').default;
61
-
62
- const suite = require('${testFile}').default;
63
- browserRunner.run([suite], '../../${dirName}/spec');
64
- </script>`;
65
- }
66
- function buildCxl(...extra) {
67
- const packageJson = (0, package_js_1.readPackage)();
68
- const cwd = process.cwd();
69
- const tsconfigFile = require(cwd + '/tsconfig.json');
70
- const outputDir = tsconfigFile?.compilerOptions?.outDir;
71
- if (!outputDir)
72
- throw new Error('No outDir field set in tsconfig.json');
73
- const dirName = (0, path_1.basename)(outputDir);
74
- const tester = (0, path_1.join)(__dirname, '../tester');
75
- const isBrowser = !!packageJson.browser;
76
- return (0, builder_js_1.build)({
77
- target: 'clean',
78
- outputDir,
79
- tasks: [
80
- (0, rx_1.observable)(() => {
81
- (0, child_process_1.execSync)(`rm -rf ${outputDir}`);
82
- }),
83
- ],
84
- }, {
85
- outputDir,
86
- tasks: [
87
- (0, file_js_1.file)('index.html', 'index.html').catchError(() => rx_1.EMPTY),
88
- (0, file_js_1.file)('debug.html', 'debug.html').catchError(() => rx_1.EMPTY),
89
- (0, file_js_1.file)('icons.svg', 'icons.svg').catchError(() => rx_1.EMPTY),
90
- (0, file_js_1.file)('favicon.ico', 'favicon.ico').catchError(() => rx_1.EMPTY),
91
- (0, file_js_1.file)('test.html', 'test.html').catchError(() => (0, rx_1.of)({
92
- path: 'test.html',
93
- source: Buffer.from(generateTestFile(dirName, packageJson.name, './test.js')),
94
- })),
95
- (0, tsc_js_1.tsconfig)('tsconfig.test.json'),
96
- ],
97
- }, {
98
- target: 'test',
99
- outputDir,
100
- tasks: [
101
- (0, builder_js_1.exec)(`cd ${outputDir} && node ${tester} --baselinePath=../../${dirName}/spec${isBrowser ? '' : ' --node'}`),
102
- ],
103
- }, {
104
- target: 'package',
105
- outputDir: '.',
106
- tasks: [(0, package_js_1.readme)()],
107
- }, {
108
- target: 'package',
109
- outputDir,
110
- tasks: [
111
- (0, lint_js_1.eslint)({ resolvePluginsRelativeTo: __dirname }),
112
- packageJson.browser
113
- ? (0, file_js_1.file)(`${outputDir}/index.js`).pipe((0, file_js_1.minify)())
114
- : rx_1.EMPTY,
115
- (0, package_js_1.pkg)(),
116
- ],
117
- }, ...((0, fs_1.existsSync)('tsconfig.amd.json')
118
- ? [
119
- {
120
- target: 'package',
121
- outputDir: outputDir + '/amd',
122
- tasks: [
123
- (0, rx_1.concat)((0, tsc_js_1.tsconfig)('tsconfig.amd.json'), (0, file_js_1.minifyDir)(outputDir + '/amd', {
124
- sourceMap: false,
125
- changePath: false,
126
- })),
127
- ],
128
- },
129
- ]
130
- : []), ...((0, fs_1.existsSync)('tsconfig.mjs.json')
131
- ? [
132
- {
133
- target: 'package',
134
- outputDir: outputDir + '/mjs',
135
- tasks: [
136
- (0, rx_1.concat)((0, tsc_js_1.tsconfig)('tsconfig.mjs.json'), (0, file_js_1.minifyDir)(outputDir + '/mjs', {
137
- sourceMap: false,
138
- changePath: false,
139
- })),
140
- ],
141
- },
142
- ]
143
- : []), ...((0, fs_1.existsSync)('tsconfig.server.json')
144
- ? [
145
- {
146
- outputDir: outputDir,
147
- tasks: [(0, tsc_js_1.tsconfig)('tsconfig.server.json')],
148
- },
149
- ]
150
- : []), ...((0, fs_1.existsSync)('tsconfig.worker.json')
151
- ? [
152
- {
153
- outputDir: outputDir,
154
- tasks: [
155
- (0, tsc_js_1.tsconfig)('tsconfig.worker.json', undefined, outputDir),
156
- ],
157
- },
158
- ]
159
- : []), ...((0, fs_1.existsSync)('tsconfig.bundle.json')
160
- ? [
161
- {
162
- target: 'package',
163
- outputDir: outputDir,
164
- tasks: [
165
- (0, rx_1.concat)((0, tsc_js_1.tsconfig)('tsconfig.bundle.json'), (0, file_js_1.file)(`${outputDir}/index.bundle.js`).pipe((0, file_js_1.minify)({ changePath: false }))),
166
- ],
167
- },
168
- ]
169
- : []), {
170
- target: 'docs-dev',
171
- outputDir: '.',
172
- tasks: [(0, package_js_1.docs)(dirName, true)],
173
- }, ...extra, {
174
- target: 'docs',
175
- outputDir: '.',
176
- tasks: [(0, package_js_1.docs)(dirName)],
177
- });
178
- }
package/file.js DELETED
@@ -1,126 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MinifyDefault = void 0;
4
- exports.ls = ls;
5
- exports.read = read;
6
- exports.filterPath = filterPath;
7
- exports.file = file;
8
- exports.basename = basename;
9
- exports.concatFile = concatFile;
10
- exports.files = files;
11
- exports.matchStat = matchStat;
12
- exports.copyDir = copyDir;
13
- exports.getSourceMap = getSourceMap;
14
- exports.minify = minify;
15
- exports.minifyDir = minifyDir;
16
- exports.zip = zip;
17
- const Terser = require("terser");
18
- const rx_1 = require("@cxl/rx");
19
- const fs_1 = require("fs");
20
- const path_1 = require("path");
21
- const builder_js_1 = require("./builder.js");
22
- function ls(dir) {
23
- return new rx_1.Observable(async (subs) => {
24
- const files = await fs_1.promises.readdir(dir);
25
- for (const path of files)
26
- subs.next((0, path_1.resolve)(dir, path));
27
- subs.complete();
28
- });
29
- }
30
- async function read(source) {
31
- const content = await fs_1.promises.readFile(source);
32
- return {
33
- path: source,
34
- source: content,
35
- };
36
- }
37
- function filterPath(matchPath) {
38
- matchPath = (0, path_1.resolve)(matchPath);
39
- return (0, rx_1.filter)((out) => (0, path_1.resolve)(out.path).startsWith(matchPath));
40
- }
41
- function file(source, out) {
42
- return (0, rx_1.defer)(() => (0, rx_1.from)(read(source).then(res => ({
43
- path: out || (0, path_1.resolve)(source),
44
- source: res.source,
45
- }))));
46
- }
47
- function basename(replace) {
48
- return (0, rx_1.tap)(out => (out.path = (replace || '') + (0, path_1.basename)(out.path)));
49
- }
50
- function concatFile(outName, separator = '\n') {
51
- return (0, rx_1.pipe)((0, rx_1.reduce)((out, src) => `${out}${separator}${src.source}`, ''), (0, rx_1.map)(source => ({ path: outName, source: Buffer.from(source) })));
52
- }
53
- function files(sources) {
54
- return new rx_1.Observable(subs => {
55
- Promise.all(sources.map(read)).then(out => {
56
- out.forEach(o => subs.next(o));
57
- subs.complete();
58
- }, e => subs.error(e));
59
- });
60
- }
61
- function matchStat(fromPath, toPath) {
62
- return Promise.all([fs_1.promises.stat(fromPath), fs_1.promises.stat(toPath)]).then(([fromStat, toStat]) => fromStat.mtime.getTime() === toStat.mtime.getTime(), () => true);
63
- }
64
- function copyDir(fromPath, toPath, glob = '*') {
65
- return (0, builder_js_1.exec)(`mkdir -p ${toPath} && rsync -au -i --delete ${fromPath}/${glob} ${toPath}`);
66
- }
67
- function getSourceMap(out) {
68
- const source = out.source.toString();
69
- const match = /\/\/# sourceMappingURL=(.+)/.exec(source);
70
- const path = match ? (0, path_1.resolve)((0, path_1.dirname)(out.path), match?.[1]) : null;
71
- if (path)
72
- return { path: (0, path_1.basename)(path), source: (0, fs_1.readFileSync)(path) };
73
- }
74
- exports.MinifyDefault = {
75
- ecma: 2020,
76
- };
77
- function minify(op) {
78
- return (0, rx_1.mergeMap)(out => {
79
- const config = { ...exports.MinifyDefault, ...op };
80
- if (!out.path.endsWith('.js'))
81
- return (0, rx_1.of)(out);
82
- const destPath = op?.changePath === false
83
- ? out.path
84
- : out.path.replace(/\.js$/, '.min.js');
85
- if (config.sourceMap === undefined) {
86
- const sourceMap = getSourceMap(out);
87
- if (sourceMap)
88
- config.sourceMap = {
89
- content: sourceMap.source.toString(),
90
- url: destPath + '.map',
91
- };
92
- }
93
- const source = out.source.toString();
94
- delete config.changePath;
95
- return new rx_1.Observable(async (subscriber) => {
96
- try {
97
- const { code, map } = await Terser.minify({ [out.path]: source }, config);
98
- if (!code)
99
- throw new Error('No code generated');
100
- subscriber.next({
101
- path: destPath,
102
- source: Buffer.from(code),
103
- });
104
- if (map && config.sourceMap)
105
- subscriber.next({
106
- path: config.sourceMap.url,
107
- source: Buffer.from(map.toString()),
108
- });
109
- }
110
- catch (e) {
111
- console.error(`Error minifying ${out.path}`);
112
- throw e;
113
- }
114
- subscriber.complete();
115
- });
116
- });
117
- }
118
- function minifyDir(dir, op) {
119
- return ls(dir)
120
- .filter(path => path.endsWith('.js'))
121
- .mergeMap(file)
122
- .pipe(minify(op));
123
- }
124
- function zip(src, path) {
125
- return (0, builder_js_1.shell)(`zip - ${src.join(' ')}`).map(source => ({ path, source }));
126
- }
package/git.js DELETED
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getBranch = getBranch;
4
- exports.checkBranchClean = checkBranchClean;
5
- exports.checkBranchUpToDate = checkBranchUpToDate;
6
- const program_1 = require("@cxl/program");
7
- async function getBranch(cwd) {
8
- return (await (0, program_1.sh)('git rev-parse --abbrev-ref HEAD', { cwd })).trim();
9
- }
10
- async function checkBranchClean(branch) {
11
- try {
12
- await (0, program_1.sh)(`git status > /dev/null; git diff-index --quiet ${branch}`);
13
- }
14
- catch (e) {
15
- throw new Error('Not a clean repository');
16
- }
17
- }
18
- async function checkBranchUpToDate(branch = 'master') {
19
- try {
20
- await (0, program_1.sh)(`git diff origin ${branch} --quiet`);
21
- }
22
- catch (e) {
23
- throw new Error('Branch has not been merged with origin');
24
- }
25
- }
package/index.js DELETED
@@ -1,40 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.shell = exports.exec = exports.build = exports.buildCxl = exports.docgenTask = exports.docgen = exports.template = exports.bundleAmd = exports.bundle = exports.readme = exports.pkg = exports.REQUIRE_REPLACE = exports.AMD = exports.readJson = exports.sh = exports.mkdirp = exports.concat = exports.zip = exports.minify = exports.copyDir = exports.concatFile = exports.files = exports.file = exports.basename = exports.tsBundle = exports.tsconfig = void 0;
5
- const cxl_js_1 = require("./cxl.js");
6
- var tsc_js_1 = require("./tsc.js");
7
- Object.defineProperty(exports, "tsconfig", { enumerable: true, get: function () { return tsc_js_1.tsconfig; } });
8
- Object.defineProperty(exports, "tsBundle", { enumerable: true, get: function () { return tsc_js_1.bundle; } });
9
- var file_js_1 = require("./file.js");
10
- Object.defineProperty(exports, "basename", { enumerable: true, get: function () { return file_js_1.basename; } });
11
- Object.defineProperty(exports, "file", { enumerable: true, get: function () { return file_js_1.file; } });
12
- Object.defineProperty(exports, "files", { enumerable: true, get: function () { return file_js_1.files; } });
13
- Object.defineProperty(exports, "concatFile", { enumerable: true, get: function () { return file_js_1.concatFile; } });
14
- Object.defineProperty(exports, "copyDir", { enumerable: true, get: function () { return file_js_1.copyDir; } });
15
- Object.defineProperty(exports, "minify", { enumerable: true, get: function () { return file_js_1.minify; } });
16
- Object.defineProperty(exports, "zip", { enumerable: true, get: function () { return file_js_1.zip; } });
17
- var rx_1 = require("@cxl/rx");
18
- Object.defineProperty(exports, "concat", { enumerable: true, get: function () { return rx_1.concat; } });
19
- var program_1 = require("@cxl/program");
20
- Object.defineProperty(exports, "mkdirp", { enumerable: true, get: function () { return program_1.mkdirp; } });
21
- Object.defineProperty(exports, "sh", { enumerable: true, get: function () { return program_1.sh; } });
22
- Object.defineProperty(exports, "readJson", { enumerable: true, get: function () { return program_1.readJson; } });
23
- var package_js_1 = require("./package.js");
24
- Object.defineProperty(exports, "AMD", { enumerable: true, get: function () { return package_js_1.AMD; } });
25
- Object.defineProperty(exports, "REQUIRE_REPLACE", { enumerable: true, get: function () { return package_js_1.REQUIRE_REPLACE; } });
26
- Object.defineProperty(exports, "pkg", { enumerable: true, get: function () { return package_js_1.pkg; } });
27
- Object.defineProperty(exports, "readme", { enumerable: true, get: function () { return package_js_1.readme; } });
28
- Object.defineProperty(exports, "bundle", { enumerable: true, get: function () { return package_js_1.bundle; } });
29
- Object.defineProperty(exports, "bundleAmd", { enumerable: true, get: function () { return package_js_1.bundleAmd; } });
30
- Object.defineProperty(exports, "template", { enumerable: true, get: function () { return package_js_1.template; } });
31
- Object.defineProperty(exports, "docgen", { enumerable: true, get: function () { return package_js_1.docgen; } });
32
- Object.defineProperty(exports, "docgenTask", { enumerable: true, get: function () { return package_js_1.docgenTask; } });
33
- var cxl_js_2 = require("./cxl.js");
34
- Object.defineProperty(exports, "buildCxl", { enumerable: true, get: function () { return cxl_js_2.buildCxl; } });
35
- var builder_js_1 = require("./builder.js");
36
- Object.defineProperty(exports, "build", { enumerable: true, get: function () { return builder_js_1.build; } });
37
- Object.defineProperty(exports, "exec", { enumerable: true, get: function () { return builder_js_1.exec; } });
38
- Object.defineProperty(exports, "shell", { enumerable: true, get: function () { return builder_js_1.shell; } });
39
- if (require.main?.filename === __filename)
40
- (0, cxl_js_1.buildCxl)();