corelibs/_scripts/build_ckeditor.sh

49 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
WORK_DIR="$1";
REPO_DIR="$2";
DEST_DIR="$3";
cd "$REPO_DIR";
cp "$WORK_DIR/ckeditor"/* .;
npm install --save \
css-loader@5 \
postcss-loader@4 \
raw-loader@4 \
style-loader@2 \
webpack@5 \
webpack-cli@4
npm install --save \
@ckeditor/ckeditor5-dev-utils \
@ckeditor/ckeditor5-editor-classic \
@ckeditor/ckeditor5-alignment \
@ckeditor/ckeditor5-autoformat \
@ckeditor/ckeditor5-basic-styles \
@ckeditor/ckeditor5-block-quote \
@ckeditor/ckeditor5-code-block \
@ckeditor/ckeditor5-essentials \
@ckeditor/ckeditor5-font \
@ckeditor/ckeditor5-heading \
@ckeditor/ckeditor5-horizontal-line \
@ckeditor/ckeditor5-html-embed \
@ckeditor/ckeditor5-image \
@ckeditor/ckeditor5-indent \
@ckeditor/ckeditor5-link \
@ckeditor/ckeditor5-list \
@ckeditor/ckeditor5-media-embed \
@ckeditor/ckeditor5-paragraph \
@ckeditor/ckeditor5-show-blocks \
@ckeditor/ckeditor5-source-editing \
@ckeditor/ckeditor5-special-characters \
@ckeditor/ckeditor5-table \
@ckeditor/ckeditor5-typing \
@ckeditor/ckeditor5-theme-lark
./node_modules/.bin/webpack --mode production;
cp dist/ckeditor.js "$DEST_DIR/ckeditor.js";
cd "$WORK_DIR";