You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My project grew pretty big and so I decided to move all .json files into a /configs folder, so that the root directory of the project is not so overcrowded. I managed to get this to work for everything, except for typings. I then tried this gulp plugin to be able to load the typings.json from /configs/typings.json. This works quite good so far, except for the typings folder being created inside /configs and not on the root (/typings). I then tried to pipe the stream once again with gulp.dest('.') as param but this does not work. I get an error message stating "something went wrong: Check if path is correct: /<absolute-path-to-my-project>/configs/typings.json". Well, the path is correct. And by the way, a copy of /configs/typings.json gets created in /typings.json.
Throws an error: "something went wrong: Check if path is correct: /<absolute-path-to-my-project>/configs/typings.json", the typings file does exist and is valid. This creates a copy of /configs/typings.json in /typings.json.
So heres my question/feature-request:
Is it possible (to add a feature) to pipe the typings stuff to a destination folder of my choice?
Edit: Okay I now see that dest just can't work, but it would be nice to add some options to operate the plugin somehow like this:
I'll see if there is some time next week to look into this. As a quick solution you can always move things in place yourself. Take a look at shelljs or fs-extra for that matter.
My project grew pretty big and so I decided to move all
.json
files into a/configs
folder, so that the root directory of the project is not so overcrowded. I managed to get this to work for everything, except fortypings
. I then tried this gulp plugin to be able to load thetypings.json
from/configs/typings.json
. This works quite good so far, except for thetypings
folder being created inside/configs
and not on the root (/typings
). I then tried topipe
the stream once again withgulp.dest('.')
as param but this does not work. I get an error message stating "something went wrong: Check if path is correct:/<absolute-path-to-my-project>/configs/typings.json
". Well, the path is correct. And by the way, a copy of/configs/typings.json
gets created in/typings.json
.So here's a wrap-up:
In
/gulpfile.ts
works, but creates thetypings
folder in/configs
and not in/
. Addingdest
like this:Throws an error: "something went wrong: Check if path is correct:
/<absolute-path-to-my-project>/configs/typings.json
", the typings file does exist and is valid. This creates a copy of/configs/typings.json
in/typings.json
.So heres my question/feature-request:
Is it possible (to add a feature) to pipe the typings stuff to a destination folder of my choice?
Edit: Okay I now see that
dest
just can't work, but it would be nice to add some options to operate the plugin somehow like this:The text was updated successfully, but these errors were encountered: