Commit Graph

18 Commits

Author SHA1 Message Date
Oliwia Rogala
8c90d5d9d0 fix: distribute proper source maps in npm distribution packages (#9877)
Refs #9101
2024-04-30 11:11:31 +02:00
Vladimír Gorej
532f8de2e2 fix(swagger-ui-react): align React versions with swagger-ui (#9465) 2024-01-08 10:51:55 +01:00
Vladimír Gorej
955c0ddbac build(babel): use browserslist explicitly (#9207) 2023-09-13 15:08:15 +02:00
Vladimír Gorej
70b01404a7 fix(swagger-ui-react): fix build scripts and allow releasing (#9191)
Refs https://github.com/swagger-api/swagger-ui/releases/tag/v5.6.0
2023-09-05 15:17:06 +02:00
Vladimír Gorej
6aa1b445b9 fix(swagger-ui-react): fix corrupted exports field from package.json (#9144)
Refs #9143
2023-08-17 20:23:04 +02:00
Tim Lai
07d346b516 feat(build): webpack@5 and webpack-dev-server@4 (#7826)
SwaggerUI is now built using `webpack@5`, with dev support for `webpack-dev-server@4`
- ES Module output bundle path now points to `swagger-ui-es-bundle-core`, which does not include dependencies
- No change to CommonJS output bundle or path
- Now uses Asset Modules, which replaces `file-loader`, `raw-loader`, and `url-loader`
- Removed unused rules/loaders for `.woff | .woff2 | .ttf | .eot` fonts and html
- Node polyfills are no longer bundled with `webpack@5`, and must be loaded separately and/or use `resolve.fallback`. 
As an example, SwaggerUI loads `process`, `buffer`, and `stream-browserify` as `devDependencies` in order to build development and production bundles.

SwaggerUI-React
- Now imports `swagger-ui-es-bundle-core`, and similarly outputs `swagger-ui-es-bundle-core` to its `dist` directory

Dev notes:
- Order of execution matters for the production npm build scripts. `build-stylesheets` needs to get built first, 
then cleanup of any empty artifacts, before building the various production bundles
- `Dev-helpers` now relies on `HTMLWebpackPlugin` to inject css and bundle files
2022-03-01 12:08:50 -08:00
Tim Lai
b1e94733b5 chore(deps-dev): @babel plugins needed to build swagger-ui-react (#7779)
* chore(deps-dev): @babel plugins needed to build swagger-ui-react

* chore(swagger-ui-react): remove unused require `fs`
2022-01-19 09:46:15 -08:00
Xavier Fournet
e6ea523e7c Add source map of js files to swagger-ui-react (#7717)
Co-authored-by: Tim Lai <timothy.lai@gmail.com>
2022-01-12 13:59:50 -08:00
Florian Dreier
83021df9b0 fix: add source map of css file to swagger-ui-react (#7601)
Fixes source map of css file missing in swagger-ui-react.
The source map is referenced in ./dist/swagger-ui.css,
but as it does not exist in the final package creates errors in our tooling.
2021-11-05 16:11:56 +01:00
Vladimir Gorej
d018e8a25a build(swagger-ui-react): align version of React with SwaggerUI
Refs #7341
2021-11-03 09:49:50 +01:00
Vladimir Gorej
bd75178241 docs(LICENSE): apply Apache 2.0 License correctly (#7574)
Closes #6635
2021-11-02 23:44:28 +01:00
Tim Lai
e538e26314 fix(swagger-ui-react): src filename extension to transpile (#6876) 2021-01-28 11:23:51 -08:00
Tim Lai
c5753248ab feat(swagger-ui-react): es module (#6303) 2020-08-14 13:53:05 -07:00
Tim Lai
7a6999b7f3 fix(swagger-ui-react): updated babel config file target (#6277) 2020-07-30 10:48:28 -07:00
kyle
d542f98530 housekeeping(flavor-react): point babel to root .babelrc (via #5467) 2019-07-18 19:25:26 -05:00
kyle
47b992f51c housekeeping: fail React flavor release if a step fails (via #5466)
* housekeeping: fail React flavor release if a step fails

* Update run.sh
2019-07-13 02:13:26 -05:00
kyle
0c04c1cdec housekeeping: allow overriding swagger-ui-react version` (via #5300)
...by setting the `REACT_FLAVOR_VERSION_IDENTIFIER` env var
2019-04-12 17:40:46 -07:00
kyle
7025773fbf feature: swagger-ui-react module (via #5207)
* swagger-ui-react alpha.0

* alpha.1

* alpha.2

* alpha.3

* begin updating README

* alpha.4

* WIP: `displayOperationId` support

* move loading error readouts to BaseLayout

* add `url` prop

* export React component as default

* add interceptor support

* modify docs markup

* add `onComplete` prop

* add `spec` prop

* Update README.md

* alpha.6

* remove independent manifest; build releasable exclusively from template

* ensure dist is present; drop config field in manifest

* drop alpha field

this script is now able to release to npm!

* remove unused selector references

* Update README.md
2019-03-01 20:41:30 -08:00