postinstall
Version:
Deploy files from modules after npm install
25 lines (24 loc) • 532 B
JSON
{
"name": "local-file",
"scripts": {
"postinstall": "postinstall",
"preinstall": "postinstall"
},
"preinstall": {
"./lib/*.js": "concat dest/bundle.js"
},
"postinstall": {
"./src.js": "link dst.js",
"./src/other.js": "copy dest/file.js",
"./src/**": "copy dest/rec/",
"./lib/*.css": "link dest/*.min.css",
"./lib/": {
"command": "concat",
"output": "dest/texts.txt",
"list": ["text2.txt", "text1.txt"]
}
},
"dependencies": {
"postinstall": "../../../"
}
}