addon-tools-raub
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -53,4 +53,5 @@ 'use strict'; | ||
_rd :`${thisDir}/_rd.bat`, | ||
_md :`${thisDir}/_md.bat`, | ||
_del :`${thisDir}/_del.bat`, | ||
}; |
@@ -5,3 +5,3 @@ { | ||
"description": "A set of extra tools for Node.js addons", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"main": "index.js", | ||
@@ -8,0 +8,0 @@ "keywords": [ |
@@ -31,3 +31,3 @@ # Addon Tools | ||
[\_rd.bat / \_del.bat](#_rdbat--_delbat) | ||
[Windows BAT](#windows-bat) | ||
@@ -42,3 +42,3 @@ | ||
* For Windows custom file/folder removers are present, you can put them into variables. | ||
* For Windows custom file/folder removers/creators are present, you can put them into variables. | ||
@@ -48,2 +48,3 @@ ``` | ||
'_rd' : '<!(node -e "console.log(require(\'addon-tools-raub\')._rd)")', | ||
'_md' : '<!(node -e "console.log(require(\'addon-tools-raub\')._md)")', | ||
'_del' : '<!(node -e "console.log(require(\'addon-tools-raub\')._del)")', | ||
@@ -78,4 +79,5 @@ }, | ||
[ 'OS=="win"', { 'action' : [ | ||
'<(_del) "<(module_root_dir)/build/Release/addon.*" && ' + | ||
'<(_del) "<(module_root_dir)/build/Release/obj/addon/*.*"' | ||
'<(_del)', | ||
'<(module_root_dir)/build/Release/addon.*', | ||
'<(module_root_dir)/build/Release/obj/addon/*.*' | ||
] } ], | ||
@@ -154,6 +156,3 @@ ``` | ||
[ 'OS=="mac"', { 'action': ['mkdir', '-p', 'binary'] } ], | ||
[ 'OS=="win"', { 'action': [ | ||
'<(_rd) "<(module_root_dir)/binary" && ' + | ||
'md "<(module_root_dir)/binary"' | ||
] } ], | ||
[ 'OS=="win"', { 'action': ['<(_md)', 'binary'] } ], | ||
], | ||
@@ -211,3 +210,3 @@ }], | ||
'_del' : '<!(node -e "console.log(require(\'addon-tools-raub\')._del)")', | ||
'_rd' : '<!(node -e "console.log(require(\'addon-tools-raub\')._rd)")', | ||
'_md' : '<!(node -e "console.log(require(\'addon-tools-raub\')._md)")', | ||
'EXT_LIB_include' : '<!(node -e "console.log(require(\'node-deps-EXT_LIB-raub\').include)")', | ||
@@ -284,6 +283,3 @@ 'EXT_LIB_bin' : '<!(node -e "console.log(require(\'node-deps-EXT_LIB-raub\').bin)")', | ||
[ 'OS=="mac"', { 'action': ['mkdir', '-p', 'binary'] } ], | ||
[ 'OS=="win"', { 'action': [ | ||
'<(_rd) "<(module_root_dir)/binary" && ' + | ||
'md "<(module_root_dir)/binary"' | ||
] } ], | ||
[ 'OS=="win"', { 'action': ['<(_md)', 'binary'] } ], | ||
], | ||
@@ -340,4 +336,5 @@ }], | ||
[ 'OS=="win"', { 'action' : [ | ||
'<(_del) "<(module_root_dir)/build/Release/MY_ADDON.*" && ' + | ||
'<(_del) "<(module_root_dir)/build/Release/obj/MY_ADDON/*.*"' | ||
'<(_del)', | ||
'<(module_root_dir)/build/Release/MY_ADDON.*', | ||
'<(module_root_dir)/build/Release/obj/MY_ADDON/*.*' | ||
] } ], | ||
@@ -548,2 +545,3 @@ ], | ||
* `_rd` - the location of `'_rd.bat'` file. | ||
* `_md` - the location of `'_md.bat'` file. | ||
* `_del` - the location of `'_del.bat'` file. | ||
@@ -554,3 +552,3 @@ | ||
## \_rd.bat / \_del.bat | ||
## Windows BAT | ||
@@ -563,2 +561,5 @@ Windows-only utilities. Because in gyp any `/` on Windows is converted to `\`, it is | ||
Also on Windows there is no `mkdir -p`, hence if directory exists you get an error | ||
trying to make it great again with `md`. | ||
``` | ||
@@ -572,5 +573,6 @@ ... | ||
[ 'OS=="win"', { 'action' : [ | ||
'<(_del) "<(module_root_dir)/build/Release/addon.*" && ' + | ||
'<(_del) "<(module_root_dir)/build/Release/obj/addon/*.*"' | ||
'<(_del)', | ||
'<(module_root_dir)/build/Release/addon.*', | ||
'<(module_root_dir)/build/Release/obj/addon/*.*' | ||
] } ], | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
27359
35
567