2
0

2 Revīzijas 1938ac892c ... 9281b0069e

Autors SHA1 Ziņojums Datums
  Michael Zitzmann 9281b0069e Initial commit 5 gadi atpakaļ
  Michael Zitzmann 1938ac892c Initial commit 5 gadi atpakaļ
3 mainītis faili ar 4 papildinājumiem un 8 dzēšanām
  1. 2 3
      bin/prepareData.js
  2. 2 3
      bin/preprocess.js
  3. 0 2
      rollup.config.js

+ 2 - 3
bin/prepareData.js

@@ -110,9 +110,8 @@ function transformData() {
         }
     }
 
-    fs.writeFileSync(path.join('../', config.path.build, 'data_de.json'), JSON.stringify(result, null, '\t'), 'utf8');
+    fs.writeFileSync(path.join('../', config.path.output, config.path.data, 'data_de.json'), JSON.stringify(result, null, '\t'), 'utf8');
 }
 
-createDirectory(path.join('../', config.path.build));
-createDirectory(path.join('../', config.path.output));
+createDirectory(path.join('../', config.path.output, config.path.data));
 transformData();

+ 2 - 3
bin/preprocess.js

@@ -54,7 +54,7 @@ function createVisualisationHtml() {
             fs.writeFileSync(
                 path.join(
                     '../',
-                    config.path.build,
+                    config.path.output,
                     config.html.visualisation.name
                 ), result.html
             );
@@ -104,7 +104,7 @@ function createContextHtml() {
                 fs.writeFileSync(
                     path.join(
                         '../',
-                        config.path.build,
+                        config.path.output,
                         config.html.index.name
                     ), result.html
                 );
@@ -116,6 +116,5 @@ function createHtml() {
     createContextHtml();
 }
 
-createDirectory(path.join('../', config.path.build));
 createDirectory(path.join('../', config.path.output));
 createHtml();

+ 0 - 2
rollup.config.js

@@ -68,8 +68,6 @@ const generateConfiguration = (target, option) => {
                 targets: [
                     { src: path.join(config.path.build, '/*.css'), dest: path.join(config.path.output, config.path.css) },
                     { src: path.join(config.path.build, '/*.js*'), dest: path.join(config.path.output, config.path.js) },
-                    { src: path.join(config.path.build,'/*.json'), dest:  path.join(config.path.output, config.path.data) },
-                    { src: path.join(config.path.build, '/*.html'), dest: config.path.output },
                     { src: path.join(config.path.assets, config.path.js), dest: config.path.output },
                     { src: path.join(config.path.assets, config.path.css), dest: config.path.output },
                     { src: path.join(config.path.assets, config.path.img), dest: config.path.output },