shuji icon indicating copy to clipboard operation
shuji copied to clipboard

Create original directory structure

Open BirdyUK opened this issue 7 years ago • 3 comments

Firstly, Great job, Very useful tool. I just have one question which would make this tool the best thing since beer!

Is it possible to have this create the original directory structure as oppose to creating all the files in the current working directory?

For example, Once i run: shuji -v app.bundle.js.map

i get an sample file app.js

and that sample file contains this:

import React from 'react'; import Select from 'components/form/Select';

... ... ...

// WEBPACK FOOTER // // ./app/webpack/react/components/Form/Form.js

Would it be possible to restore these files to the correct directory based on parsing the webpack footer text or using the import from?

Look forward to answer, Thanks.

BirdyUK avatar Sep 07 '18 19:09 BirdyUK

It could be done by adding an option which would either be --flat or --directory-structure, or to that direction..

Want to make a PR?

paazmaya avatar Sep 13 '18 05:09 paazmaya

Ouh, there is a forgotten #4 by @mkubenka

paazmaya avatar Sep 13 '18 05:09 paazmaya

I hope we get this soon :) this project rocks!

falconmick avatar Nov 22 '18 07:11 falconmick

Please try with v0.8.0

paazmaya avatar Dec 04 '23 17:12 paazmaya