Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gulp task example #92

Closed
antonk52 opened this issue Dec 9, 2015 · 4 comments
Closed

gulp task example #92

antonk52 opened this issue Dec 9, 2015 · 4 comments

Comments

@antonk52
Copy link

antonk52 commented Dec 9, 2015

Please add a code example how to use this module in build process using gulp.

@yoshuawuyts
Copy link

@antonk52 Though you probably mean well, to me your tone comes over as very unpleasant. The maintainers of this package have better things to do than create an example of rimraf + X.

Instead I can encourage you to experiment on your own with whatever packages you're mashing together, and ask around on IRC (Freenode - #node, #nodeschool) / Twitter or the issues if you run into issues. Folks are generally very helpful, and you might learn a few tricks along the way.

If you're new to JS / Node in general, consider doing a few nodeschool tutorials to get yourself acquainted with the Node ecosystem. Cheers! ✨

@antonk52
Copy link
Author

Hi. Did not mean to sound demanding at all. I opened the issue as most of npm packages have multiple examples of how they are used in the projects. I have been experimenting with this as well as other packages which lead to a similar result. As I came across this one I noticed that it's documentation can be improved and made a suggestion. Maybe that did sound a bit off from what I intended it to sound like.

I know and still thrilled how willing to help strangers can be in the web community.

Thank you for your comment.

@yoshuawuyts
Copy link

Is this helpful? - this removes the ./my-directory directory:

const rimraf = require('rimraf')
const path = require('path')

rimraf(path.join(__dirname, './my-directory'), function (err) {
  if (err) throw err
})

I wrote an article about using fs packages in Node, perhaps that's useful too?

@antonk52
Copy link
Author

Thank you for the code. I did get it to work. Before that, guess my issue was due to node's asynchronicity. Still thank you sir. Appreciate the effort

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants