Permalink
Browse files

Fix #1689

  • Loading branch information...
almasaeed2010 committed May 5, 2018
1 parent 8183f2a commit 49fdbb2873c3fa1e5d357ca3a47d82501a067878
@@ -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'
}
]
@@ -1,5 +1,5 @@
const Plugins = require('./Plugins')
const copydir = require('copy-dir')
const ncp = require('ncp').ncp
class Publish {
constructor() {
@@ -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}`)
}
})
})
Oops, something went wrong.

0 comments on commit 49fdbb2

Please sign in to comment.