tinyMCE 编译笔记
tinyMCE,源码,从https://github.com/tinymce/tinymce 下载。
1. 安装yarn
brew update
brew install yarn
yarn --version
2. 安装 package
yarn install
~ » yarn install
yarn install v1.22.22
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning " > stylelint-order@5.0.0" has incorrect peer dependency "stylelint@^14.0.0".
[4/4] 🔨 Building fresh packages...
✨ Done in 61.39s.
----------------------------------------------------------------------------
3. 编译
yarn build
~ » yarn build
yarn run v1.22.22
$ npm-run-all -p oxide-icons-ci oxide-ci -s tinymce-grunt
$ yarn -s --cwd modules/oxide ci
$ yarn -s --cwd modules/oxide-icons-default ci
[10:41:37] Using gulpfile ~/Documents/code/php/tinymce/modules/oxide-icons-default/gulpfile.js
[10:41:37] Starting 'default'...
[10:41:37] Starting 'clean'...
[10:41:37] Finished 'clean' after 6.17 ms
[10:41:37] Starting 'icon-packager'...
[10:41:37] Finished 'icon-packager' after 202 ms
[10:41:37] Finished 'default' after 209 ms
[10:41:37] Using gulpfile ~/Documents/code/php/tinymce/modules/oxide/gulpfile.js
[10:41:37] Starting 'build'...
[10:41:37] Starting 'clean'...
[10:41:37] Finished 'clean' after 4.72 ms
[10:41:37] Starting 'css'...
[10:41:37] Starting 'lint'...
[10:41:38] Finished 'lint' after 1.3 s
[10:41:38] Starting 'less'...
[10:41:39] Finished 'less' after 437 ms
[10:41:39] Starting 'generateJs'...
[10:41:39] Finished 'generateJs' after 239 ms
[10:41:39] Starting 'minifyCss'...
[10:41:39] Finished 'minifyCss' after 129 ms
[10:41:39] Finished 'css' after 2.1 s
[10:41:39] Finished 'build' after 2.11 s
$ grunt --gruntfile modules/tinymce/Gruntfile.js
Running "clean:dist" (clean) task
>> 0 paths cleaned.Running "eslint:target" (eslint) task
Running "shell:prismjs" (shell) task
Running "shell:tsc" (shell) task
Running "globals" task
Running "emojis" task
Running "terser:emoticons-raw" (terser) task
>> 2 files created.Running "html-i18n" task
Generating help-keynav translation filesRunning "rollup:core" (rollup) task
Running "rollup:core-types" (rollup) task
Running "rollup:accordion-plugin" (rollup) task
Running "rollup:advlist-plugin" (rollup) task
Running "rollup:anchor-plugin" (rollup) task
Running "rollup:autolink-plugin" (rollup) task
Running "rollup:autoresize-plugin" (rollup) task
Running "rollup:autosave-plugin" (rollup) task
Running "rollup:charmap-plugin" (rollup) task
Running "rollup:code-plugin" (rollup) task
Running "rollup:codesample-plugin" (rollup) task
Running "rollup:directionality-plugin" (rollup) task
Running "rollup:emoticons-plugin" (rollup) task
Running "rollup:help-plugin" (rollup) task
Running "rollup:fullscreen-plugin" (rollup) task
Running "rollup:image-plugin" (rollup) task
Running "rollup:importcss-plugin" (rollup) task
Running "rollup:insertdatetime-plugin" (rollup) task
Running "rollup:link-plugin" (rollup) task
Running "rollup:lists-plugin" (rollup) task
Running "rollup:media-plugin" (rollup) task
Running "rollup:nonbreaking-plugin" (rollup) task
Running "rollup:pagebreak-plugin" (rollup) task
Running "rollup:preview-plugin" (rollup) task
Running "rollup:save-plugin" (rollup) task
Running "rollup:searchreplace-plugin" (rollup) task
Running "rollup:table-plugin" (rollup) task
Running "rollup:visualblocks-plugin" (rollup) task
Running "rollup:visualchars-plugin" (rollup) task
Running "rollup:wordcount-plugin" (rollup) task
Running "rollup:quickbars-plugin" (rollup) task
Running "rollup:silver-theme" (rollup) task
Running "rollup:dom-model" (rollup) task
Running "concat:core" (concat) task
Running "concat:accordion-plugin" (concat) task
Running "concat:advlist-plugin" (concat) task
Running "concat:anchor-plugin" (concat) task
Running "concat:autolink-plugin" (concat) task
Running "concat:autoresize-plugin" (concat) task
Running "concat:autosave-plugin" (concat) task
Running "concat:charmap-plugin" (concat) task
Running "concat:code-plugin" (concat) task
Running "concat:codesample-plugin" (concat) task
Running "concat:directionality-plugin" (concat) task
Running "concat:emoticons-plugin" (concat) task
Running "concat:help-plugin" (concat) task
Running "concat:fullscreen-plugin" (concat) task
Running "concat:image-plugin" (concat) task
Running "concat:importcss-plugin" (concat) task
Running "concat:insertdatetime-plugin" (concat) task
Running "concat:link-plugin" (concat) task
Running "concat:lists-plugin" (concat) task
Running "concat:media-plugin" (concat) task
Running "concat:nonbreaking-plugin" (concat) task
Running "concat:pagebreak-plugin" (concat) task
Running "concat:preview-plugin" (concat) task
Running "concat:save-plugin" (concat) task
Running "concat:searchreplace-plugin" (concat) task
Running "concat:table-plugin" (concat) task
Running "concat:visualblocks-plugin" (concat) task
Running "concat:visualchars-plugin" (concat) task
Running "concat:wordcount-plugin" (concat) task
Running "concat:quickbars-plugin" (concat) task
Running "concat:silver-theme" (concat) task
Running "concat:dom-model" (concat) task
Running "copy:core" (copy) task
Copied 4 filesRunning "copy:default-icons" (copy) task
Copied 1 fileRunning "copy:ui-skins" (copy) task
Copied 80 filesRunning "copy:content-skins" (copy) task
Created 6 directories, copied 30 filesRunning "copy:visualblocks-plugin" (copy) task
Running "copy:html-i18n" (copy) task
Copied 39 filesRunning "terser:core" (terser) task
>> 2 files created.Running "terser:emoticons-raw" (terser) task
>> 2 files created.Running "terser:accordion-plugin" (terser) task
>> 1 file created.Running "terser:advlist-plugin" (terser) task
>> 1 file created.Running "terser:anchor-plugin" (terser) task
>> 1 file created.Running "terser:autolink-plugin" (terser) task
>> 1 file created.Running "terser:autoresize-plugin" (terser) task
>> 1 file created.Running "terser:autosave-plugin" (terser) task
>> 1 file created.Running "terser:charmap-plugin" (terser) task
>> 1 file created.Running "terser:code-plugin" (terser) task
>> 1 file created.Running "terser:codesample-plugin" (terser) task
>> 1 file created.Running "terser:directionality-plugin" (terser) task
>> 1 file created.Running "terser:emoticons-plugin" (terser) task
>> 3 files created.Running "terser:help-plugin" (terser) task
>> 1 file created.Running "terser:fullscreen-plugin" (terser) task
>> 1 file created.Running "terser:image-plugin" (terser) task
>> 1 file created.Running "terser:importcss-plugin" (terser) task
>> 1 file created.Running "terser:insertdatetime-plugin" (terser) task
>> 1 file created.Running "terser:link-plugin" (terser) task
>> 1 file created.Running "terser:lists-plugin" (terser) task
>> 1 file created.Running "terser:media-plugin" (terser) task
>> 1 file created.Running "terser:nonbreaking-plugin" (terser) task
>> 1 file created.Running "terser:pagebreak-plugin" (terser) task
>> 1 file created.Running "terser:preview-plugin" (terser) task
>> 1 file created.Running "terser:save-plugin" (terser) task
>> 1 file created.Running "terser:searchreplace-plugin" (terser) task
>> 1 file created.Running "terser:table-plugin" (terser) task
>> 1 file created.Running "terser:visualblocks-plugin" (terser) task
>> 1 file created.Running "terser:visualchars-plugin" (terser) task
>> 1 file created.Running "terser:wordcount-plugin" (terser) task
>> 1 file created.Running "terser:quickbars-plugin" (terser) task
>> 1 file created.Running "terser:silver-theme" (terser) task
>> 1 file created.Running "terser:dom-model" (terser) task
>> 1 file created.Running "clean:release" (clean) task
>> 0 paths cleaned.Running "moxiezip:production" (moxiezip) task
>> Created zip file: dist/tinymce_7.1.0.zipRunning "moxiezip:development" (moxiezip) task
>> Created zip file: dist/tinymce_7.1.0_dev.zipRunning "moxiezip:cdn" (moxiezip) task
>> Created zip file: dist/tinymce_7.1.0_cdn.zipRunning "moxiezip:component" (moxiezip) task
>> Created zip file: dist/tinymce_7.1.0_component.zipRunning "nugetpack:main" (nugetpack) task
>> Created nupkg file: dist/TinyMCE.7.1.0.nupkgRunning "symlink-dist" task
Running "symlink:dist" (symlink) task
>> Created 1 symbolic links.Running "symlink:js" (symlink) task
>> Created 1 symbolic links.Running "version" task
Done.
✨ Done in 66.47s.
------------------------------------------------------------------
~ »