swagger-editor

v4.11.1
Swagger Editor

dev

webpack serve --config webpack/dev.babel.js

lint

eslint --cache --ext '.js,.jsx' src test

test

run-s test:unit-mocha test:unit-jest cy:ci lint-errors

build

npm run build:stylesheets && rimraf ./dist/swagger-editor.js ./dist/swagger-editor.js.map && npm run build-all-bundles

cy:ci

cross-env CYPRESS_BASE_URL=http://localhost:3261/ start-server-and-test cy:start:ci http://localhost:3261 cy:run:electron

start

npm-run-all --parallel build:serve open-static

watch

webpack --config webpack/core.babel.js --watch --progress

cy:dev

cross-env CYPRESS_BASE_URL=http://localhost:3260/ start-server-and-test cy:start http://localhost:3260 cy:open

analyze

source-map-explorer 'dist/swagger-editor-bundle.js'

cy:open

cypress open

cy:start

webpack serve --port 3260 --host 0.0.0.0 --config webpack/dev.babel.js --hot --progress --static test/e2e/static

lint-fix

eslint --cache --ext '.js,.jsx' src test --fix

build:core

webpack --config webpack/core.babel.js --color

deps-check

run-s deps-check:license deps-check:size

hot-server

webpack serve --host 0.0.0.0 --config webpack/dev.babel.js

build:serve

ws --hostname 0.0.0.0 -p 3001

cy:start:ci

webpack serve --port 3261 --host 0.0.0.0 --config webpack/e2e.babel.js --hot --progress --static test/e2e/static

lint-errors

eslint --cache --quiet --ext '.js,.jsx' src test

open-static

open-cli 'http://localhost:3001'

build:bundle

webpack --config webpack/bundle.babel.js --color

test-in-node

run-s lint-errors test:unit-mocha test:unit-jest

cy:run:chrome

cypress run --browser chrome

test:artifact

jest --config ./config/jest/jest.artifact.config.js

cy:run:firefox

cypress run --browser firefox

security-audit

run-s -sc security-audit:all security-audit:prod

test:unit-jest

cross-env BABEL_ENV=test jest --config ./config/jest/jest.unit.config.js

build:es:bundle

webpack --config webpack/es-bundle.babel.js --color

cy:run:electron

cypress run --browser electron

deps-check:size

webpack -p --config webpack/test_deps_size.babel.js --json | webpack-bundle-size-analyzer >| $npm_package_config_deps_check_dir/sizes.txt

test:unit-mocha

cross-env BABEL_ENV=test mocha --require test/mocha/setup.js --recursive --require @babel/register test/mocha

build:standalone

webpack --config webpack/standalone.babel.js --color

automated-release

release-it -VV --config ./release/.release-it.json

build-all-bundles

run-p --aggregate-output build:core build:bundle build:standalone build:es:bundle build:es:bundle:core

build:stylesheets

webpack --config webpack/stylesheets.babel.js --color

deps-check:license

license-checker --production --csv --out $npm_package_config_deps_check_dir/licenses.csv && license-checker --development --csv --out $npm_package_config_deps_check_dir/licenses-dev.csv

security-audit:all

npm-audit-ci-wrapper -t moderate

security-audit:prod

npm-audit-ci-wrapper -p -t low

build:es:bundle:core

webpack --config webpack/es-bundle-core.babel.js --color

test:unit-mocha-watch

npm run test:unit-mocha -- -w

Metadata

Downloads