why have methods like createjs(), createcss(), createhtml(), etc. as opposed to a single function which accepts the type as an argument? for instance, create('js') create('css') create('html')?
in terms of APIs- the latter is going to be more flexible and lead to more expressive options.
edit: also, i think i've found one or two bugs in your documentation and code. your documentation explains function "delete" but it seems the actual function name is "delt". your delete function also includes a second parameter, "destination". this is just down right confusing- why would a deleted file need a destination?!
also, if we look at the source of your delete method, consider the bare minimum. do we really need to invoke gulp to delete files? do we even really need this `del` library to delete files? never do more than you need. as a matter of fact, if all you're trying to do is delete a file, you should look into fs.unlink [0] :)!
maybe it would be a fun exercise to try remaking some of these file system functions (delete, rename) without using gulp at all. :)
why have methods like createjs(), createcss(), createhtml(), etc. as opposed to a single function which accepts the type as an argument? for instance, create('js') create('css') create('html')?
in terms of APIs- the latter is going to be more flexible and lead to more expressive options.
edit: also, i think i've found one or two bugs in your documentation and code. your documentation explains function "delete" but it seems the actual function name is "delt". your delete function also includes a second parameter, "destination". this is just down right confusing- why would a deleted file need a destination?!
also, if we look at the source of your delete method, consider the bare minimum. do we really need to invoke gulp to delete files? do we even really need this `del` library to delete files? never do more than you need. as a matter of fact, if all you're trying to do is delete a file, you should look into fs.unlink [0] :)!
maybe it would be a fun exercise to try remaking some of these file system functions (delete, rename) without using gulp at all. :)
cheers again and happy coding!!
[0] https://nodejs.org/api/fs.html#fs_fs_unlink_path_callback