aitom-frontenddependencies
Advanced tools
Comparing version 0.0.5 to 0.0.6
20
index.js
@@ -49,9 +49,15 @@ #!/usr/bin/env node | ||
} | ||
if (shell.test("-d", packagePath + "/dist")) { | ||
shell.cp("-r", packagePath + '/dist/', htdocsTargetPath + "/" + packageName); | ||
shell.cp("-r", packagePath + '/dist/', appTargetPath + "/" + packageName); | ||
} else { | ||
shell.cp("-r", packagePath, htdocsTargetPath); | ||
shell.cp("-r", packagePath, appTargetPath); | ||
if(packageName === 'bootstrap') { | ||
shell.cp("-r", packagePath + '/scss/', appTargetPath + "/" + packageName); | ||
}else{ | ||
if (shell.test("-d", packagePath + "/dist")) { | ||
shell.cp("-r", packagePath + '/dist/', htdocsTargetPath + "/" + packageName); | ||
shell.cp("-r", packagePath + '/dist/', appTargetPath + "/" + packageName); | ||
} else { | ||
shell.cp("-r", packagePath, htdocsTargetPath); | ||
shell.cp("-r", packagePath, appTargetPath); | ||
} | ||
} | ||
@@ -58,0 +64,0 @@ |
{ | ||
"name": "aitom-frontenddependencies", | ||
"version": "0.0.5", | ||
"description": "Utility for copying frontend dependecies to htdocs folder", | ||
"version": "0.0.6", | ||
"description": "Utility for copying frontend dependecies to vendor folders", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
aitom-frondenddependencies | ||
===================== | ||
Utility for copying npm installed dependencies packages into a `app/fe/themes/default/vendor` and `/htdocs/fe/vendor` directory and clean them from unnecessary files. | ||
JS and CSS files in htdocs vendor folder are abive that automaticaly minified. | ||
Utility for copying npm installed dependencies packages into a `/app/fe/themes/default/vendor` and `/htdocs/fe/vendor` directory and clean them from unnecessary files. | ||
JS and CSS files in htdocs vendor folder are above that automaticaly minified. | ||
@@ -6,0 +6,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4038
73