Skip to content
Snippets Groups Projects
Commit c6c35faf authored by Steven DuBois's avatar Steven DuBois Committed by Chris Snyder
Browse files

Upgrade ckeditor5 and related packages, update webpack build script

parent 1945969e
Branches
Tags
1 merge request!7Upgrade ckeditor5 and related packages, update webpack build script
# This adds the plugin JavaScript to the pages that render CKEditors.
htmlEmbed:
remote: https://github.com/ckeditor/ckeditor5
version: "35.4.0"
version: "45.0.0"
license:
name: GNU-GPL-2.0-or-later
url: https://github.com/ckeditor/ckeditor5/blob/master/LICENSE.md
......
This diff is collapsed.
......@@ -12,7 +12,26 @@ function getDirectories(srcpath) {
module.exports = [];
// TODO: ADD SOMETHING TO COPY ./node_modules/@ckeditor/ckeditor5-html-embed/build/* to ./js/build/*
// Copy ckeditor5-html-embed to build directory
const srcDir = path.resolve(__dirname, './node_modules/@ckeditor/ckeditor5-html-embed/build');
const buildDir = path.resolve(__dirname, './js/build');
if (!fs.existsSync(srcDir)) {
throw new Error(`Source directory does not exist: ${srcDir}`);
}
if (!fs.existsSync(buildDir)) {
throw new Error(`Build directory does not exist: ${buildDir}`);
}
fs.readdirSync(srcDir).forEach(file => {
const srcFile = path.join(srcDir, file);
const destFile = path.join(buildDir, file);
if (fs.statSync(srcFile).isFile()) {
fs.copyFileSync(srcFile, destFile);
}
});
// Loop through every subdirectory in src, each a different plugin, and build
// each one in ./build.
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment