swagger-editor

v5.0.0-alpha.75
SwaggerEditor is using **forked** Create React App as it's building infrastructure.

lint

eslint . --ext .jsx,.js

test

react-scripts test

build

npm run build:app && npm run build:bundle:esm && npm run build:bundle:umd

clean

rimraf ./build ./dist

cy:ci

start-server-and-test build:app:serve http://localhost:3050 cy:run:chrome

start

cross-env DISABLE_ESLINT_PLUGIN=false ENABLE_PROGRESS_PLUGIN=true react-scripts start

cy:dev

start-server-and-test cy:dev:server http://localhost:3003 cy:dev:open

analyze

source-map-explorer 'build/static/js/main.6d62e780.js'

lint:fix

eslint . --ext .jsx,.js --fix

build:app

cross-env NODE_OPTIONS=--max_old_space_size=4096 ENABLE_PROGRESS_PLUGIN=false DISABLE_ESLINT_PLUGIN=false react-scripts build

cy:dev:open

cross-env CYPRESS_BASE_URL=http://localhost:3003 cypress open --e2e

link:apidom

npm link @swagger-api/apidom-ast @swagger-api/apidom-core @swagger-api/apidom-json-path @swagger-api/apidom-json-pointer @swagger-api/apidom-ls @swagger-api/apidom-ns-api-design-systems @swagger-api/apidom-ns-asyncapi-2 @swagger-api/apidom-ns-json-schema-draft-4 @swagger-api/apidom-ns-json-schema-draft-6 @swagger-api/apidom-ns-json-schema-draft-7 @swagger-api/apidom-ns-openapi-3-0 @swagger-api/apidom-ns-openapi-3-1 @swagger-api/apidom-parser-adapter-api-design-systems-json @swagger-api/apidom-parser-adapter-api-design-systems-yaml @swagger-api/apidom-parser-adapter-asyncapi-json-2 @swagger-api/apidom-parser-adapter-asyncapi-yaml-2 @swagger-api/apidom-parser-adapter-json @swagger-api/apidom-parser-adapter-openapi-json-3-0 @swagger-api/apidom-parser-adapter-openapi-json-3-1 @swagger-api/apidom-parser-adapter-openapi-yaml-3-0 @swagger-api/apidom-parser-adapter-openapi-yaml-3-1 @swagger-api/apidom-parser-adapter-yaml-1-2 @swagger-api/apidom-parser @swagger-api/apidom-reference

postinstall

monaco-treemending

cy:dev:server

cross-env PORT=3003 BROWSER=none ENABLE_PROGRESS_PLUGIN=false react-scripts start

cy:run:chrome

cypress run --browser chrome

cy:run:firefox

cypress run --browser firefox

link:apidom-ls

npm link @swagger-api/apidom-ls

build:app:serve

serve -s build -l 3050

build:bundle:esm

rimraf ./dist/esm && cross-env DISABLE_ESLINT_PLUGIN=false ENABLE_PROGRESS_PLUGIN=false GENERATE_SOURCEMAP=true BUILD_ESM_BUNDLE=true DIST_PATH=dist/esm react-scripts build-bundle && rimraf ./dist/esm/swagger-editor.css*

build:bundle:umd

rimraf ./dist/umd ./dist/swagger-editor.css && cross-env NODE_OPTIONS=--max_old_space_size=4096 DISABLE_ESLINT_PLUGIN=false ENABLE_PROGRESS_PLUGIN=false GENERATE_SOURCEMAP=false BUILD_UMD_BUNDLE=true DIST_PATH=dist/umd react-scripts build-bundle && copyfiles -u 2 ./dist/umd/swagger-editor.css ./dist && rimraf ./dist/umd/swagger-editor.css

Metadata

Downloads