--- a/src_js/iconolab-bundle/move_dist.js Mon Aug 22 11:43:00 2016 +0200
+++ b/src_js/iconolab-bundle/move_dist.js Mon Aug 22 12:46:43 2016 +0200
@@ -4,6 +4,7 @@
const ncp = require('ncp').ncp
ncp.limit = 16;
const rimraf = require('rimraf')
+var mkdirp = require('mkdirp');
const srcJsPath = path.dirname(__dirname)
const iconolabSrcPath = path.join(srcJsPath,"..","src")
const destJsDir = path.join(iconolabSrcPath, "iconolab", "static","iconolab", "js")
@@ -52,11 +53,23 @@
)
-const bootstrapPath = path.join(srcJsPath, "iconolab-bundle", "node_modules", "bootstrap", "dist", "css", "bootstrap.min.css");
+const bootstrapPath = path.join(srcJsPath, "iconolab-bundle", "node_modules", "bootstrap");
const fontAwesomeCssPath = path.join(srcJsPath, "iconolab-bundle", "node_modules", "font-awesome","css","font-awesome.min.css");
const fontAwesomeDir = path.join(srcJsPath, "iconolab-bundle", "node_modules", "font-awesome");
-copyFile(bootstrapPath, path.join(destCssDir, "bootstrap.min.css"));
+//copyFile(bootstrapPath, path.join(destCssDir, "bootstrap.min.css"));
+
+
+
+/* boostrap: we copy the dist folder*/
+rimraf(path.join(destCssDir, 'bootstrap'), function () {
+ ncp(path.join(bootstrapPath, "dist"), path.join(destCssDir, "bootstrap"), function (e) {
+ if (e) {
+ console.log(e);
+ console.log("Erreur pendant la copie de boostrap vers le dossier dist");
+ }
+ });
+});
/* delete font-awesome folder */