swagger-editor icon indicating copy to clipboard operation
swagger-editor copied to clipboard

Generate dist folder from source code

Open aumerhadi opened this issue 10 years ago • 9 comments

Hi What is the steps to generate dist folder from the source code?

aumerhadi avatar Apr 26 '16 21:04 aumerhadi

If you don't have the dist folder already, you just need to run npm install and npm run build to generate the dist folder.

saharj avatar Apr 26 '16 21:04 saharj

Hi Sahar, thank you for your quick response , I run npm install but couldn't find the dist folder. I don't thing package.json has the script to create dist folder.

aumerhadi avatar Apr 28 '16 03:04 aumerhadi

After you run npm install you need to run npm run build to get the dist folder.

saharj avatar Apr 28 '16 04:04 saharj

Hi Sahar marhaba, I tried the command you mentioned it , but it generate more than 130 files with strange name ( attached the output from run this command)

Can you please check the txt file and let me know if other thing I need to do ? result.txt

aumerhadi avatar Apr 28 '16 17:04 aumerhadi

@saharj when you get a chance...

webron avatar May 03 '16 22:05 webron

There is nothing strange in your output file. That's webpack logs. After that output you should have a working dist folder.

saharj avatar May 17 '16 06:05 saharj

Thank you Sahar for your response, The dist folder has alot of font files, 3 js files and one css file (attached picture for the dist folder) I think there are few steps missing, maybe I need to copy files some where else ? please help me solve this issue. dist_folder

aumerhadi avatar May 20 '16 17:05 aumerhadi

Your dist folder looks good. What is the problem exactly?

saharj avatar May 20 '16 20:05 saharj

Please correct me if I am wrong, I thought the dist folder will be a packaged project (something like the one we download from this location https://github.com/swagger-api/swagger-editor/releases/download/v2.10.1/swagger-editor.zip) .

aumerhadi avatar May 25 '16 17:05 aumerhadi