Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
d4f2fcd
Started codemirror update, In broken state
ssddanbrown Aug 2, 2022
97146a6
Added handling of codemirror 6 code languages
ssddanbrown Aug 3, 2022
4757ed9
Converted codemirror languges to new packages where available
ssddanbrown Aug 4, 2022
9fd7a6a
Added dark theme handling
ssddanbrown Aug 4, 2022
9135a85
Merge branch 'codemirror6' into codemirror6_take2
ssddanbrown Feb 17, 2023
f51036b
Added newer languages where possible
ssddanbrown Feb 17, 2023
c148e2f
Added esbuild bundle inspection metafile
ssddanbrown Feb 17, 2023
c81cb6f
Merge branch 'development' into codemirror6
ssddanbrown Mar 19, 2023
dce5123
Added own twig/smarty packages for cm6 lang support
ssddanbrown Mar 21, 2023
572037e
Got markdown editor barely functional
ssddanbrown Apr 10, 2023
da3e4f5
Got md shortcuts working, marked actions for update
ssddanbrown Apr 11, 2023
9813c94
Made a start on updating editor actions
ssddanbrown Apr 11, 2023
32c765d
Updated another range of actions for cm6
ssddanbrown Apr 13, 2023
6f45d34
Finished update pass of all md editor actions to cm6
ssddanbrown Apr 13, 2023
fdda813
Cleaned up change handling in cm6 editor action handling
ssddanbrown Apr 13, 2023
257a703
Addressed existing cm6 todos
ssddanbrown Apr 14, 2023
9874a53
Added cm6 strategy for splitting and dyn. loading langs
ssddanbrown Apr 14, 2023
74b76ec
Updated cm6 theme handling to allow extension via API
ssddanbrown Apr 15, 2023
74b4751
CM6: Aligned styling with existing, improved theme handling
ssddanbrown Apr 16, 2023
09fd0bc
CM6: Got WYSIWYG code blocks working
ssddanbrown Apr 16, 2023
900571a
CM6: Updated for popup editor, added new interface
ssddanbrown Apr 17, 2023
94f464c
CM6: Added tabbing, fixed dark mode border in WYSIWYG
ssddanbrown Apr 18, 2023
3e738b1
CM6: Fixed a range of issues during browser testing
ssddanbrown Apr 18, 2023
baf5edd
CM6: Further fixes/improvements after testing
ssddanbrown Apr 18, 2023
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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ yarn.lock
nbproject
.buildpath
.project
.nvmrc
.settings/
webpack-stats.json
.phpunit.result.cache
.DS_Store
phpstan.neon
phpstan.neon
esbuild-meta.json
21 changes: 12 additions & 9 deletions dev/build/esbuild.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,35 @@
#!/usr/bin/env node

const esbuild = require('esbuild');
const fs = require('fs');
const path = require('path');
const fs = require('fs');

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

// Gather our input files
const jsInDir = path.join(__dirname, '../../resources/js');
const jsInDirFiles = fs.readdirSync(jsInDir, 'utf8');
const entryFiles = jsInDirFiles
.filter(f => f.endsWith('.js') || f.endsWith('.mjs'))
.map(f => path.join(jsInDir, f));
const entryPoints = {
app: path.join(__dirname, '../../resources/js/app.js'),
code: path.join(__dirname, '../../resources/js/code/index.mjs'),
'legacy-modes': path.join(__dirname, '../../resources/js/code/legacy-modes.mjs'),
};

// Locate our output directory
const outDir = path.join(__dirname, '../../public/dist');
const outdir = path.join(__dirname, '../../public/dist');

// Build via esbuild
esbuild.build({
bundle: true,
entryPoints: entryFiles,
outdir: outDir,
metafile: true,
entryPoints,
outdir,
sourcemap: true,
target: 'es2020',
mainFields: ['module', 'main'],
format: 'esm',
minify: isProd,
logLevel: "info",
}).then(result => {
fs.writeFileSync('esbuild-meta.json', JSON.stringify(result.metafile));
}).catch(() => process.exit(1));
Loading