文書の表示以前のリビジョンバックリンク文書の先頭へ この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。 ====== CodeMirror Plugin ====== 本家: [[https://www.dokuwiki.org/plugin:codemirror|plugin:codemirror [DokuWiki]]]\\ ソースコード: [[git>cosmocode/dokuwiki-plugin-codemirror/|cosmocode/dokuwiki-plugin-codemirror: This project is now hosted on GitLab https://gitlab.com/albertgasset/dokuwiki-plugin-codemirror]]\\ [[glb>albertgasset/dokuwiki-plugin-codemirror/|Albert Gasset / dokuwiki-plugin-codemirror · GitLab]] (Old)\\ [[git>albertgasset/dokuwiki-plugin-codemirror/|albertgasset/dokuwiki-plugin-codemirror: This project is now hosted on GitLab https://gitlab.com/albertgasset/dokuwiki-plugin-codemirror]] (Old)\\ ===== インストール (ソースコード) ===== [[https://www.dokuwiki.org/plugin:codemirror|plugin:codemirror [DokuWiki]]]\\ [[javascript:pnpm|pnpm - 高速、かつディスク容量効率が良いパッケージマネージャー]]\\ <WRAP color_term> <WRAP color_command><html><pre> <font color="#0087FF"><b>$</b></font> <font color="#26A269">pnpm</font> <font color="#A347BA">-g</font> install grunt-cli </pre></html></WRAP> <WRAP color_result><html><pre> <span style="background-color:#A2734C"><font color="#171421"> WARN </font></span> <font color="#C01C28">6 deprecated subdependencies found:</font> are-we-there-yet@3.0.1, gauge@4.0.4, glob@7.2.3, inflight@1.0.6, npmlog@6.0.2, sourcemap-codec@1.4.8 Packages: <font color="#26A269">+40</font> <font color="#26A269">++++++++++++++++++++++++++++++++++++++++</font> Progress: resolved <font color="#33C7DE">206</font>, reused <font color="#33C7DE">205</font>, downloaded <font color="#33C7DE">0</font>, added <font color="#33C7DE">0</font>, done <font color="#33C7DE">/home/tomoyan/.local/share/pnpm/global/5:</font> <font color="#26A269">+</font> grunt-cli <font color="#5E5C64">1.5.0</font> Done in 2.6s using pnpm v10.7.1 </pre></html></WRAP> </WRAP> <WRAP color_term> <WRAP color_command><html><pre> <font color="#0087FF"><b>$</b></font> <font color="#26A269">git</font> clone https://github.com/cosmocode/dokuwiki-plugin-codemirror.git codemirror </pre></html></WRAP> <WRAP color_result><html><pre> Cloning into 'codemirror'... remote: Enumerating objects: 616, done. remote: Counting objects: 100% (17/17), done. remote: Compressing objects: 100% (8/8), done. remote: Total 616 (delta 5), reused 16 (delta 5), pack-reused 599 (from 1) Receiving objects: 100% (616/616), 187.82 KiB | 515.00 KiB/s, done. Resolving deltas: 100% (337/337), done. </pre></html></WRAP> </WRAP> <WRAP color_term> <WRAP color_command><html><pre> <font color="#0087FF"><b>$</b></font> <font color="#26A269">cd</font> <u style="text-decoration-style:solid">codemirror</u> <font color="#0087FF"><b>$</b></font> <font color="#26A269">pnpm</font> install </pre></html></WRAP> <WRAP color_result><html><pre class=BSc> <span style="background-color:#A2734C"><font color="#171421"> WARN </font></span> <font color="#C01C28">17 deprecated subdependencies found:</font> are-we-there-yet@1.1.7, boom@2.10.1, cryptiles@2.0.5, gauge@2.7.4, glob@7.1.7, glob@7.2.3, har-validator@4.2.1, hawk@3.1.3, hoek@2.16.3, iltorb@2.4.5, inflight@1.0.6, npmlog@4.1.2, osenv@0.1.5, request@2.81.0, rimraf@2.7.1, sntp@1.0.9, uuid@3.4.0 Packages: <font color="#26A269">+373</font> <font color="#26A269">++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</font> Progress: resolved <font color="#33C7DE">373</font>, reused <font color="#33C7DE">373</font>, downloaded <font color="#33C7DE">0</font>, added <font color="#33C7DE">373</font>, done <font color="#33C7DE">devDependencies:</font> <font color="#26A269">+</font> cm-show-invisibles <font color="#5E5C64">1.2.1</font> <font color="#5E5C64">(3.1.0 is available)</font> <font color="#26A269">+</font> codemirror <font color="#5E5C64">5.65.19</font> <font color="#5E5C64">(6.0.1 is available)</font> <font color="#26A269">+</font> grunt <font color="#5E5C64">1.6.1</font> <font color="#26A269">+</font> grunt-contrib-clean <font color="#5E5C64">1.1.0</font> <font color="#5E5C64">(2.0.1 is available)</font> <font color="#26A269">+</font> grunt-contrib-compress <font color="#5E5C64">1.6.0</font> <font color="#5E5C64">(2.0.0 is available)</font> <font color="#26A269">+</font> grunt-contrib-jshint <font color="#5E5C64">1.1.0</font> <font color="#5E5C64">(3.2.0 is available)</font> <font color="#26A269">+</font> grunt-contrib-less <font color="#5E5C64">1.4.1</font> <font color="#5E5C64">(3.0.0 is available)</font> <font color="#26A269">+</font> grunt-contrib-uglify <font color="#5E5C64">2.3.0</font> <font color="#5E5C64">(5.2.2 is available)</font> <font color="#26A269">+</font> grunt-contrib-watch <font color="#5E5C64">1.1.0</font> <font color="#A2734C">╭ Warning ───────────────────────────────────────────────────────────────────────────────────╮</font> <font color="#A2734C">│</font> <font color="#A2734C">│</font> <font color="#A2734C">│</font> Ignored build scripts: iltorb. <font color="#A2734C">│</font> <font color="#A2734C">│</font> Run "pnpm approve-builds" to pick which dependencies should be allowed to run scripts. <font color="#A2734C">│</font> <font color="#A2734C">│</font> <font color="#A2734C">│</font> <font color="#A2734C">╰────────────────────────────────────────────────────────────────────────────────────────────╯</font> Done in 5.8s using pnpm v10.7.1 </pre></html></WRAP> </WRAP> <WRAP color_term> <WRAP color_command><html><pre> <font color="#0087FF"><b>$</b></font> <font color="#26A269">grunt</font> </pre></html></WRAP> <WRAP color_result><html><pre> <u style="text-decoration-style:solid">Running "jshint:scripts" (jshint) task</u> <font color="#26A269">>> </font>2 files lint free. <u style="text-decoration-style:solid">Running "clean:dist" (clean) task</u> <font color="#26A269">>> </font>0 paths cleaned. <u style="text-decoration-style:solid">Running "less:styles" (less) task</u> <font color="#26A269">>> </font>1 stylesheet created. <font color="#26A269">>> </font>1 sourcemap created. <u style="text-decoration-style:solid">Running "uglify:keymaps" (uglify) task</u> <font color="#26A269">>> </font>3 sourcemaps created. <font color="#26A269">>> </font>3 files created <font color="#196C46">275.24 kB</font><font color="#7D7D7D"> → </font><font color="#196C46">115.58 kB</font> <u style="text-decoration-style:solid">Running "uglify:modes" (uglify) task</u> <font color="#26A269">>> </font>121 sourcemaps created. <font color="#26A269">>> </font>121 files created <font color="#196C46">1.19 MB</font><font color="#7D7D7D"> → </font><font color="#196C46">653.89 kB</font> <u style="text-decoration-style:solid">Running "uglify:scripts" (uglify) task</u> <font color="#26A269">>> </font>1 sourcemap created. <font color="#26A269">>> </font>1 file created <font color="#196C46">537.66 kB</font><font color="#7D7D7D"> → </font><font color="#196C46">250.3 kB</font> <font color="#26A269">Done.</font> </pre></html></WRAP> </WRAP> <WRAP color_term> <WRAP color_command><html><pre> <font color="#0087FF"><b>$</b></font> <font color="#26A269">grunt</font><font color="#999999"> dev</font> </pre></html></WRAP> <WRAP color_result><html><pre> <u style="text-decoration-style:solid">Running "clean:dist" (clean) task</u> <font color="#26A269">>> </font>1 path cleaned. <u style="text-decoration-style:solid">Running "less:styles" (less) task</u> <font color="#26A269">>> </font>1 stylesheet created. <font color="#26A269">>> </font>1 sourcemap created. <u style="text-decoration-style:solid">Running "uglify:keymaps" (uglify) task</u> <font color="#26A269">>> </font>3 sourcemaps created. <font color="#26A269">>> </font>3 files created <font color="#196C46">275.24 kB</font><font color="#7D7D7D"> → </font><font color="#196C46">115.58 kB</font> <u style="text-decoration-style:solid">Running "uglify:modes" (uglify) task</u> <font color="#26A269">>> </font>121 sourcemaps created. <font color="#26A269">>> </font>121 files created <font color="#196C46">1.19 MB</font><font color="#7D7D7D"> → </font><font color="#196C46">653.89 kB</font> <u style="text-decoration-style:solid">Running "uglify:scripts" (uglify) task</u> <font color="#26A269">>> </font>1 sourcemap created. <font color="#26A269">>> </font>1 file created <font color="#196C46">537.66 kB</font><font color="#7D7D7D"> → </font><font color="#196C46">250.3 kB</font> <u style="text-decoration-style:solid">Running "watch" task</u> Waiting... </pre></html></WRAP> </WRAP> ===== 参考文献 ===== ==== 付録 ==== [[tw>tomoyan596/status/1490051770806005760|😱😱😱CodeMirror Pluginががががが😥多分テンプレートのモバイルCSSと相性宜しくない😅]]\\ linux/dokuwiki/codemirror_plugin.txt 最終更新: 2025/04/06 15:12by ともやん