mirror of
https://github.com/simonw/datasette.git
synced 2026-11-22 01:49:45 +01:00
Merge 28d811320b into c435a80030
This commit is contained in:
commit
c44d2293e3
8 changed files with 234 additions and 546 deletions
|
|
@ -447,13 +447,10 @@ Datasette bundles `CodeMirror <https://codemirror.net/>`__ for the SQL editing i
|
|||
|
||||
npm i codemirror @codemirror/lang-sql
|
||||
|
||||
* Build the bundle using the version number from package.json with::
|
||||
* Build the bundle with::
|
||||
|
||||
node_modules/.bin/rollup datasette/static/cm-editor-6.0.1.js \
|
||||
-f iife \
|
||||
-n cm \
|
||||
-o datasette/static/cm-editor-6.0.1.bundle.js \
|
||||
-p @rollup/plugin-node-resolve \
|
||||
-p @rollup/plugin-terser
|
||||
npm install && npm run build:codemirror
|
||||
|
||||
* Update the version reference in the ``codemirror.html`` template.
|
||||
This runs ``rollup -c`` against the ``rollup.config.mjs`` file at the root of the repository, which reads ``datasette/static/cm-editor.js`` and writes the bundled, minified output to ``datasette/static/cm-editor.bundle.js``. The bundle filename does not include the CodeMirror version number, so no template needs to be updated.
|
||||
|
||||
* Commit the rebuilt ``datasette/static/cm-editor.bundle.js`` - the bundle is checked into the repository.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue