Swagger-editor: Generate dist folder from source code

Created on 26 Apr 2016  路  9Comments  路  Source: swagger-api/swagger-editor

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

question

Most helpful comment

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.

All 9 comments

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.

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.

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

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

@saharj when you get a chance...

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

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

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

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) .

Was this page helpful?
0 / 5 - 0 ratings

Related issues

confuser picture confuser  路  6Comments

bluesh55 picture bluesh55  路  3Comments

alecmev picture alecmev  路  4Comments

ljerka picture ljerka  路  5Comments

jennaprice picture jennaprice  路  4Comments