aitom-frontenddependencies
Advanced tools
Comparing version 0.0.2 to 0.0.3
10
index.js
@@ -31,3 +31,4 @@ #!/usr/bin/env node | ||
var modulePath = path.join(workDir, "node_modules", packageName); | ||
var targetPath = path.join(workDir, 'htdocs/vendor'); | ||
var appTargetPath = path.join(workDir, 'app/fe/themes/default/vendor'); | ||
var htdocsTargetPath = path.join(workDir, 'htdocs/Fe/vendor'); | ||
@@ -38,5 +39,8 @@ if (!shell.test("-d", modulePath)) { | ||
shell.mkdir("-p", targetPath); | ||
shell.cp("-r", modulePath, targetPath); | ||
shell.mkdir("-p", appTargetPath); | ||
shell.cp("-r", modulePath, appTargetPath); | ||
shell.mkdir("-p", htdocsTargetPath); | ||
shell.cp("-r", modulePath, htdocsTargetPath); | ||
} | ||
@@ -43,0 +47,0 @@ } |
{ | ||
"name": "aitom-frontenddependencies", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Utility for copying frontend dependecies to htdocs folder", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,14 +0,10 @@ | ||
frontend-dependencies | ||
aitom-frondenddependencies | ||
===================== | ||
Utility for copying npm installed dependencies packages into a app/fe/themes/default/vendor and /htdocs/fe/vendor directory. | ||
Utility for copying npm installed packages into a htdocs directory. | ||
For example, you might wish to use this for automatically copying `node_modules/jquery` to `static/vendor` | ||
after running `npm install` in your project. | ||
Installation | ||
------------ | ||
`npm install --save aitom-frontendDependencies` | ||
`npm install --save-dev aitom-frontendDependencies` | ||
@@ -21,8 +17,8 @@ Configuration | ||
Then you can run `/node_modules/.bin/aitom-frontendDependencies` by hand, or even better, make it a postinstall script | ||
Then you can run `/node_modules/.bin/aitom-frontenddependencies` by hand, or even better, make it a postinstall script | ||
by adding to your package.json scripts sections something like: | ||
"scripts": { | ||
"postinstall": "./node_modules/.bin/aitom-frontendDependencies" | ||
"postinstall": "./node_modules/.bin/aitom-frontenddependencies" | ||
} | ||
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
2450
35
23