Skip to content

Commit

Permalink
Fix #1689
Browse files Browse the repository at this point in the history
  • Loading branch information
almasaeed2010 committed May 5, 2018
1 parent 8183f2a commit 49fdbb2
Show file tree
Hide file tree
Showing 10 changed files with 8,452 additions and 7,741 deletions.
15 changes: 14 additions & 1 deletion build/npm/Plugins.js
Expand Up @@ -30,8 +30,21 @@ const Plugins = [
},
// CKEditor
{
from: 'node_modules/@ckeditor/ckeditor5-build-classic/build',
from: 'node_modules/@ckeditor/ckeditor5-build-classic/build/',
to : 'plugins/ckeditor'
},
// DataTables
{
from: 'node_modules/datatables.net/js',
to: 'plugins/datatables'
},
{
from: 'node_modules/datatables.net-bs4/js',
to: 'plugins/datatables'
},
{
from: 'node_modules/datatables.net-bs4/css',
to: 'plugins/datatables'
}
]

Expand Down
11 changes: 4 additions & 7 deletions build/npm/Publish.js
@@ -1,5 +1,5 @@
const Plugins = require('./Plugins')
const copydir = require('copy-dir')
const ncp = require('ncp').ncp

class Publish {
constructor() {
Expand Down Expand Up @@ -27,14 +27,11 @@ class Publish {
run() {
// Publish files
Plugins.forEach((module) => {
copydir(module.from, module.to, (stat, filepath, filename) => {
if (this.options.verbose) {
console.log(`Copied ${filename} from ${module.from} to ${module.to}`)
}
return true
}, error => {
ncp(module.from, module.to, error => {
if (error) {
console.error(`Error: ${error}`)
} else if (this.options.verbose) {
console.log(`Copied ${module.from} to ${module.to}`)
}
})
})
Expand Down

0 comments on commit 49fdbb2

Please sign in to comment.