claro-8.x-1.x-dev/scripts/js/changeOrAdded.js

scripts/js/changeOrAdded.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const fs = require('fs');
const log = require('./log');
const compile = require('./compile');
 
module.exports = (filePath) => {
  log(`'${filePath}' is being processed.`);
  // Transform the file.
  compile(filePath, function write(code) {
    const fileName = filePath.slice(0, -7);
    // Write the result to the filesystem.
    fs.writeFile(`${fileName}.js`, code, () => {
      log(`'${filePath}' is finished.`);
    });
  });
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc