mirror of
https://github.com/tabler/tabler.git
synced 2025-12-23 02:14:26 +04:00
12 lines
367 B
JavaScript
Executable File
12 lines
367 B
JavaScript
Executable File
const libs = require('../pages/_data/libs'),
|
|
path = require('path'),
|
|
{ exec } = require('child_process');
|
|
|
|
const all_libs = libs.js.concat(libs.css);
|
|
|
|
all_libs.forEach(function (lib) {
|
|
let dirname = path.dirname(lib).replace('@', '');
|
|
let cmd = `mkdir -p "dist/libs/${dirname}" && cp -r node_modules/${lib} dist/libs/${lib.replace('@', '')}`;
|
|
exec(cmd)
|
|
});
|