mirror of
				https://github.com/Redocly/redoc.git
				synced 2025-10-30 23:37:28 +03:00 
			
		
		
		
	chore: copy openapi.yaml to the demo folder
This commit is contained in:
		
							parent
							
								
									66dc11bcaa
								
							
						
					
					
						commit
						89c62a6b19
					
				|  | @ -1,6 +1,7 @@ | ||||||
| import * as webpack from 'webpack'; | import * as webpack from 'webpack'; | ||||||
| import * as HtmlWebpackPlugin from 'html-webpack-plugin'; | import * as HtmlWebpackPlugin from 'html-webpack-plugin'; | ||||||
| import * as ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin'; | import * as ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin'; | ||||||
|  | import * as  CopyWebpackPlugin from 'copy-webpack-plugin'; | ||||||
| import { resolve } from 'path'; | import { resolve } from 'path'; | ||||||
| 
 | 
 | ||||||
| const VERSION = JSON.stringify(require('../package.json').version); | const VERSION = JSON.stringify(require('../package.json').version); | ||||||
|  | @ -114,5 +115,8 @@ export default (env: { playground?: boolean; bench?: boolean } = {}, { mode }) = | ||||||
|       template: env.playground ? 'demo/playground/index.html' : 'demo/index.html', |       template: env.playground ? 'demo/playground/index.html' : 'demo/index.html', | ||||||
|     }), |     }), | ||||||
|     new ForkTsCheckerWebpackPlugin(), |     new ForkTsCheckerWebpackPlugin(), | ||||||
|  |     new CopyWebpackPlugin([ | ||||||
|  |       'demo/openapi.yaml' | ||||||
|  |     ]) | ||||||
|   ], |   ], | ||||||
| }); | }); | ||||||
|  |  | ||||||
|  | @ -24,7 +24,7 @@ | ||||||
|   ], |   ], | ||||||
|   "main": "bundles/redoc.lib.js", |   "main": "bundles/redoc.lib.js", | ||||||
|   "scripts": { |   "scripts": { | ||||||
|     "start": "webpack-dev-server --mode=development --env.playground --hot --config demo/webpack.config.ts ", |     "start": "webpack-dev-server --mode=development --env.playground --hot --config demo/webpack.config.ts", | ||||||
|     "start:prod": "webpack-dev-server --env.playground --mode=production --config demo/webpack.config.ts", |     "start:prod": "webpack-dev-server --env.playground --mode=production --config demo/webpack.config.ts", | ||||||
|     "start:benchmark": "webpack-dev-server --mode=production --env.bench --config demo/webpack.config.ts", |     "start:benchmark": "webpack-dev-server --mode=production --env.bench --config demo/webpack.config.ts", | ||||||
|     "test": "npm run lint && npm run unit && npm run bundlesize", |     "test": "npm run lint && npm run unit && npm run bundlesize", | ||||||
|  | @ -43,7 +43,8 @@ | ||||||
|     "lint": "tslint --project tsconfig.json", |     "lint": "tslint --project tsconfig.json", | ||||||
|     "benchmark": "node ./benchmark/benchmark.js", |     "benchmark": "node ./benchmark/benchmark.js", | ||||||
|     "start:demo": "webpack-dev-server --hot --config demo/webpack.config.ts", |     "start:demo": "webpack-dev-server --hot --config demo/webpack.config.ts", | ||||||
|     "compile:cli": "tsc cli/index.ts --target es6 --module commonjs --types yargs" |     "compile:cli": "tsc cli/index.ts --target es6 --module commonjs --types yargs", | ||||||
|  |     "build:demo": "webpack --mode=production --config demo/webpack.config.ts" | ||||||
|   }, |   }, | ||||||
|   "devDependencies": { |   "devDependencies": { | ||||||
|     "@babel/core": "^7.0.0-beta.40", |     "@babel/core": "^7.0.0-beta.40", | ||||||
|  | @ -69,6 +70,7 @@ | ||||||
|     "babel-loader": "8.0.0-beta.2", |     "babel-loader": "8.0.0-beta.2", | ||||||
|     "beautify-benchmark": "^0.2.4", |     "beautify-benchmark": "^0.2.4", | ||||||
|     "conventional-changelog-cli": "^1.3.5", |     "conventional-changelog-cli": "^1.3.5", | ||||||
|  |     "copy-webpack-plugin": "^4.5.1", | ||||||
|     "core-js": "^2.5.1", |     "core-js": "^2.5.1", | ||||||
|     "coveralls": "^3.0.0", |     "coveralls": "^3.0.0", | ||||||
|     "css-loader": "^0.28.11", |     "css-loader": "^0.28.11", | ||||||
|  |  | ||||||
							
								
								
									
										35
									
								
								yarn.lock
									
									
									
									
									
								
							
							
						
						
									
										35
									
								
								yarn.lock
									
									
									
									
									
								
							|  | @ -2450,6 +2450,19 @@ copy-descriptor@^0.1.0: | ||||||
|   version "0.1.1" |   version "0.1.1" | ||||||
|   resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" |   resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" | ||||||
| 
 | 
 | ||||||
|  | copy-webpack-plugin@^4.5.1: | ||||||
|  |   version "4.5.1" | ||||||
|  |   resolved "https://registry.yarnpkg.com/copy-webpack-plugin/-/copy-webpack-plugin-4.5.1.tgz#fc4f68f4add837cc5e13d111b20715793225d29c" | ||||||
|  |   dependencies: | ||||||
|  |     cacache "^10.0.4" | ||||||
|  |     find-cache-dir "^1.0.0" | ||||||
|  |     globby "^7.1.1" | ||||||
|  |     is-glob "^4.0.0" | ||||||
|  |     loader-utils "^1.1.0" | ||||||
|  |     minimatch "^3.0.4" | ||||||
|  |     p-limit "^1.0.0" | ||||||
|  |     serialize-javascript "^1.4.0" | ||||||
|  | 
 | ||||||
| core-js@^1.0.0: | core-js@^1.0.0: | ||||||
|   version "1.2.7" |   version "1.2.7" | ||||||
|   resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636" |   resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636" | ||||||
|  | @ -2931,6 +2944,13 @@ diffie-hellman@^5.0.0: | ||||||
|     miller-rabin "^4.0.0" |     miller-rabin "^4.0.0" | ||||||
|     randombytes "^2.0.0" |     randombytes "^2.0.0" | ||||||
| 
 | 
 | ||||||
|  | dir-glob@^2.0.0: | ||||||
|  |   version "2.0.0" | ||||||
|  |   resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-2.0.0.tgz#0b205d2b6aef98238ca286598a8204d29d0a0034" | ||||||
|  |   dependencies: | ||||||
|  |     arrify "^1.0.1" | ||||||
|  |     path-type "^3.0.0" | ||||||
|  | 
 | ||||||
| discontinuous-range@1.0.0: | discontinuous-range@1.0.0: | ||||||
|   version "1.0.0" |   version "1.0.0" | ||||||
|   resolved "https://registry.yarnpkg.com/discontinuous-range/-/discontinuous-range-1.0.0.tgz#e38331f0844bba49b9a9cb71c771585aab1bc65a" |   resolved "https://registry.yarnpkg.com/discontinuous-range/-/discontinuous-range-1.0.0.tgz#e38331f0844bba49b9a9cb71c771585aab1bc65a" | ||||||
|  | @ -4065,6 +4085,17 @@ globby@^6.1.0: | ||||||
|     pify "^2.0.0" |     pify "^2.0.0" | ||||||
|     pinkie-promise "^2.0.0" |     pinkie-promise "^2.0.0" | ||||||
| 
 | 
 | ||||||
|  | globby@^7.1.1: | ||||||
|  |   version "7.1.1" | ||||||
|  |   resolved "https://registry.yarnpkg.com/globby/-/globby-7.1.1.tgz#fb2ccff9401f8600945dfada97440cca972b8680" | ||||||
|  |   dependencies: | ||||||
|  |     array-union "^1.0.1" | ||||||
|  |     dir-glob "^2.0.0" | ||||||
|  |     glob "^7.1.2" | ||||||
|  |     ignore "^3.3.5" | ||||||
|  |     pify "^3.0.0" | ||||||
|  |     slash "^1.0.0" | ||||||
|  | 
 | ||||||
| good-listener@^1.2.2: | good-listener@^1.2.2: | ||||||
|   version "1.2.2" |   version "1.2.2" | ||||||
|   resolved "https://registry.yarnpkg.com/good-listener/-/good-listener-1.2.2.tgz#d53b30cdf9313dffb7dc9a0d477096aa6d145c50" |   resolved "https://registry.yarnpkg.com/good-listener/-/good-listener-1.2.2.tgz#d53b30cdf9313dffb7dc9a0d477096aa6d145c50" | ||||||
|  | @ -4479,7 +4510,7 @@ iferr@^0.1.5: | ||||||
|   version "0.1.5" |   version "0.1.5" | ||||||
|   resolved "https://registry.yarnpkg.com/iferr/-/iferr-0.1.5.tgz#c60eed69e6d8fdb6b3104a1fcbca1c192dc5b501" |   resolved "https://registry.yarnpkg.com/iferr/-/iferr-0.1.5.tgz#c60eed69e6d8fdb6b3104a1fcbca1c192dc5b501" | ||||||
| 
 | 
 | ||||||
| ignore@^3.3.3: | ignore@^3.3.3, ignore@^3.3.5: | ||||||
|   version "3.3.7" |   version "3.3.7" | ||||||
|   resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.7.tgz#612289bfb3c220e186a58118618d5be8c1bab021" |   resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.7.tgz#612289bfb3c220e186a58118618d5be8c1bab021" | ||||||
| 
 | 
 | ||||||
|  | @ -6708,7 +6739,7 @@ p-lazy@^1.0.0: | ||||||
|   version "1.0.0" |   version "1.0.0" | ||||||
|   resolved "https://registry.yarnpkg.com/p-lazy/-/p-lazy-1.0.0.tgz#ec53c802f2ee3ac28f166cc82d0b2b02de27a835" |   resolved "https://registry.yarnpkg.com/p-lazy/-/p-lazy-1.0.0.tgz#ec53c802f2ee3ac28f166cc82d0b2b02de27a835" | ||||||
| 
 | 
 | ||||||
| p-limit@^1.1.0: | p-limit@^1.0.0, p-limit@^1.1.0: | ||||||
|   version "1.2.0" |   version "1.2.0" | ||||||
|   resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.2.0.tgz#0e92b6bedcb59f022c13d0f1949dc82d15909f1c" |   resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.2.0.tgz#0e92b6bedcb59f022c13d0f1949dc82d15909f1c" | ||||||
|   dependencies: |   dependencies: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user