Open KarelWintersky opened 6 years ago
Do you mean not only delete the files in the node_modules folder?
You package removes only README.md
My command now is: node-clean-modules --file "AUTHORS|tst|README.markdown|.travis.yml|Makefile|LICENCE|LICENSE.BSD|LICENSE.source-map|LICENSE-MIT|ChangeLog|.jshintrc|.babelrc|.eslintrc|.jscs.json"
too long to remember
And, you package don't remove files, that declared in -f
flag as *.md
or *.html
:(
Are you using cmd or powerShell? When using powerShell, it will have an error. When using cmd, he is good.
When you want to delete a type of document, it should be used:node-modules-clean --ext ".md | .html"
.
You can also configure the scripts command in package.json
and use the npm run command
.
I using gentoo and zsh.
Can you give me a screenshot? I do not have linux system environment.
Screenshot with WHAT? Work output?
Yes,because I do not have linux environment, so I would like to see what is the problem after the command is run.
I mean that: please add to you script ability to load list of files, that must be removed from file. like:
node-modules-clean --filelist files.txt
Any file must be in new line:
AUTHORS
README.*
.travis.yml
LICENSE.*
.jshintrc
<and so on>
It is possible to create required command directly from console using bash, but it's not comfortable for use.
I would like to see what is the problem after the command is run.
if command is correct - output is empty (if files not found) OR list of removed files
DELETE: /srv/shared/archives/.WebVHosts/rpgclubs_rf.towers.local/node_modules/wordwrap\README.markdown
DELETE: /srv/shared/archives/.WebVHosts/rpgclubs_rf.towers.local/node_modules/wrappy\LICENSE
DELETE: /srv/shared/archives/.WebVHosts/rpgclubs_rf.towers.local/node_modules/which\README.md
DELETE: /srv/shared/archives/.WebVHosts/rpgclubs_rf.towers.local/node_modules/ws\LICENSE
DELETE: /srv/shared/archives/.WebVHosts/rpgclubs_rf.towers.local/node_modules/wrappy\README.md
DELETE: /srv/shared/archives/.WebVHosts/rpgclubs_rf.towers.local/node_modules/xml-name-validator\LICENSE.txt
DELETE: /srv/shared/archives/.WebVHosts/rpgclubs_rf.towers.local/node_modules/ws\README.md
DELETE: /srv/shared/archives/.WebVHosts/rpgclubs_rf.towers.local/node_modules/xml-name-validator\README.md
DELETE: /srv/shared/archives/.WebVHosts/rpgclubs_rf.towers.local/node_modules/wordwrap/test\idleness.txt
node-modules-clean --file "README.*|LICENSE.*"
result
DELETE: /srv/shared/archives/.WebVHosts/rpgclubs_rf.towers.local/node_modules/xtend\.npmignore
DELETE: /srv/shared/archives/.WebVHosts/rpgclubs_rf.towers.local/node_modules/xtend\README.md
DELETE: /srv/shared/archives/.WebVHosts/rpgclubs_rf.towers.local/node_modules/wordwrap/test\idleness.txt
but /wordwrap/README.markdown
NOT removed
total 36
drwxr-xr-x 4 arris arris 4096 Feb 7 14:01 .
drwxr-xr-x 218 arris arris 12288 Feb 7 14:00 ..
drwxr-xr-x 2 arris arris 4096 Feb 7 14:00 example
-rw-r--r-- 1 arris arris 2231 May 7 2015 index.js
-rw-r--r-- 1 arris arris 2333 Feb 7 14:00 package.json
-rw-r--r-- 1 arris arris 1827 May 7 2015 README.markdown
drwxr-xr-x 2 arris arris 4096 Feb 7 14:01 test
I understand, I will add this feature, and solve this problem.
Wrote about it, ok? ;-)
I have updated, you can download a new try.
nice!
Last change: add -h
| --help
key with a bit info about keys, functions and copyrights.
Ha ha ha, can help you is very good. The help command is the default, I will change.
I make world better :)
Thank you! :)
in addition to
-f
flag