Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Remove "rm" dependency #27

Merged
merged 7 commits into from
Aug 2, 2013
Merged

Conversation

ehrlich-b
Copy link
Collaborator

Remove dependency on rm. exec("rm") works on windows if you include git/bin in your PATH, but many users select the default value when installing git, which means they only get git.exe and none of the linux helper executables. A pure node solution is better anyway, I think :)

This will add a node dependency on the "wrench" library, which is what I used in the crx module.

I also added the system dependencies from the crx package, "openssl" and "ssh-keygen", into the README. If either of these are not installed the grunt task gives very cryptic errors.

@alexeykuzmin
Copy link
Collaborator

Wouldn't it be better to use isaacs/rimraf instead of fs + wrench?

@ehrlich-b
Copy link
Collaborator Author

Looks better to me, I will update the pull.

@ehrlich-b
Copy link
Collaborator Author

Unfortunately rimraf doesn't handle "file/*" so I still have to use fs.mkdir to remake the directory. It is much cleaner with rimraf anyway though.

var path = require('path');
var rimraf = require('rimraf');
var fs = require('fs');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fs is not used, remove it please.

@thom4parisot
Copy link
Owner

Yes at some point I'd like to get rid of all system commands (even for zipping and encrypting the extension in the crx module).

It might sound stupid but grunt.file.delete would not do the job?

@thom4parisot
Copy link
Owner

@ADotOut I've done a PR on your master as an alternate proposal.

I didn't know grunt had all these utilities. Good find.
thom4parisot pushed a commit that referenced this pull request Aug 2, 2013
Remove "rm" dependency
@thom4parisot thom4parisot merged commit 0b995d6 into thom4parisot:master Aug 2, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants