FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Started codemirror update, In broken state · equippedcoding/BookStack@d4f2fcd · GitHub

Commit d4f2fcd

Browse files
committed
Started codemirror update, In broken state
1 parent 42f4c9a commit d4f2fcd

6 files changed

Lines changed: 663 additions & 330 deletions

File tree

‎dev/build/esbuild.js‎

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
11
#!/usr/bin/env node
22

33
const esbuild = require('esbuild');
4-
const fs = require('fs');
54
const path = require('path');
65

76
// Check if we're building for production
87
// (Set via passing `production` as first argument)
98
const isProd = process.argv[2] === 'production';
109

1110
// Gather our input files
12-
const jsInDir = path.join(__dirname, '../../resources/js');
13-
const jsInDirFiles = fs.readdirSync(jsInDir, 'utf8');
14-
const entryFiles = jsInDirFiles
15-
.filter(f => f.endsWith('.js') || f.endsWith('.mjs'))
16-
.map(f => path.join(jsInDir, f));
11+
const entryPoints = {
12+
app: path.join(__dirname, '../../resources/js/app.js'),
13+
code: path.join(__dirname, '../../resources/js/code/index.mjs'),
14+
};
1715

1816
// Locate our output directory
19-
const outDir = path.join(__dirname, '../../public/dist');
17+
const outdir = path.join(__dirname, '../../public/dist');
2018

2119
// Build via esbuild
2220
esbuild.build({
2321
bundle: true,
24-
entryPoints: entryFiles,
25-
outdir: outDir,
22+
entryPoints,
23+
outdir,
2624
sourcemap: true,
2725
target: 'es2020',
2826
mainFields: ['module', 'main'],

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL