Add a etc/config/language.defaults.properties
file
Add a etc/config/language.local.properties
file with the first compiler
make dev
) check to see if CE agrees with youAdd language to lib/languages.js
MonacoEditorWebpackPlugin
config in webpack.config.js
static/modes/asm-mode.js
as an exampleAdd a lib/compilers/language.js
file using the template below, replacing Language
and language
as appropriate
import { BaseCompiler } from '../base-compiler'; export class LanguageCompiler extends BaseCompiler { static get key() { return 'language'; } }
key
above corresponds to the compilerType
value in etc/config/language.defaults.properties
OptionsForFilter
methodfs.remove(result.dirPath);
in base-compiler.js, so the latest CE compile attempt remains on disk for you to reviewgetOutputFilename()
methodOptionsForFilter()
and adding inputFilenamerunCompiler()
methodrunCompiler()
, here are some ideas:Add your LanguageCompiler
to lib/compilers/_all.js
, in alphabetical order
Add static/modes/language-mode.js
and require it in static/panes/editor.js
You can check http://127.0.0.1:10240/api/compilers to be sure your language and compiler are there
Make an installer in the infra repository