open-consul/ui-v2/package.json
John Cowen 834479d56f ui: Upgrade ember-cli-api-double. Adds new staging env (#6136)
ember-cli-api-double has been upgraded for 3 things:

1. Use the correct configuration flags
2. Automatically include the necessary files to enable the api doubles
without requiring a server. This can be disabled to provide custom
functionality (so we can stitch our BDD style testing in with this)
3. When used statically, read the cookies from the users browser to
enable basic ad-hoc double editing (e.g. CONSUL_SERVICE_COUNT=100000)

Once upgraded we've now moved the config to the correct place, added a
new environment (staging) to use the static-style of doubles
The test environment continues to use custom cookie setting and url
checking so we disable this 'auto importing' by setting 'auto-import' to
false for the configuration for the addon.

We also added a couple of new package script targets to explicitly serve
or build the UI with the entirely static UI.
2019-09-04 08:35:13 +00:00

125 lines
4.2 KiB
JSON

{
"name": "consul-ui",
"version": "2.2.0",
"private": true,
"description": "The web UI for Consul, by HashiCorp.",
"directories": {
"doc": "doc",
"test": "tests"
},
"repository": "",
"scripts": {
"build": "ember build --environment production",
"build:staging": "ember build --environment staging",
"build-ci": "ember build --environment test",
"lint:dev:js": "eslint -c .dev.eslintrc.js --fix ./*.js ./.*.js app config lib server tests",
"lint:js": "eslint -c .eslintrc.js --fix ./*.js ./.*.js app config lib server tests",
"format:js": "prettier --write \"{app,config,lib,server,tests}/**/*.js\" ./*.js ./.*.js",
"format:css": "prettier --write \"app/styles/**/*.*\"",
"start": "ember serve --port=${EMBER_SERVE_PORT:-4200} --live-reload-port=${EMBER_LIVE_RELOAD_PORT:-7020}",
"start:staging": "ember serve --port=${EMBER_SERVE_PORT:-4200} --live-reload-port=${EMBER_LIVE_RELOAD_PORT:-7020} --environment staging",
"start:api": "api-double --dir ./node_modules/@hashicorp/consul-api-double",
"test": "ember test --test-port=${EMBER_TEST_PORT:-7357}",
"test-parallel": "EMBER_EXAM_PARALLEL=true ember exam --split=4 --parallel",
"test:view": "ember test --server --test-port=${EMBER_TEST_PORT:-7357}",
"test:coverage": "COVERAGE=true ember test --test-port=${EMBER_TEST_PORT:-7357}",
"test:view:coverage": "COVERAGE=true ember test --server --test-port=${EMBER_TEST_PORT:-7357}",
"steps:list": "node ./lib/commands/bin/list.js"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"{app,config,lib,server,tests}/**/*.js": [
"prettier --write",
"git add"
],
"app/styles/**/*.*": [
"prettier --write",
"git add"
]
},
"resolutions": {
"handlebars": "^4.1.2",
"lodash": "^4.17.13",
"lodash.template": "^4.5.0",
"lodash.mergewith": "^4.6.2",
"lodash.defaultsdeep": "^4.6.1",
"jquery": "^3.4.0"
},
"devDependencies": {
"@babel/core": "^7.2.2",
"@hashicorp/consul-api-double": "^2.0.1",
"@hashicorp/ember-cli-api-double": "^2.0.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"base64-js": "^1.3.0",
"broccoli-asset-rev": "^2.4.5",
"chalk": "^2.4.2",
"clipboard": "^2.0.4",
"dart-sass": "^1.14.1",
"ember-ajax": "^3.0.0",
"ember-auto-import": "^1.4.0",
"ember-changeset-validations": "^2.1.0",
"ember-cli": "~2.18.2",
"ember-cli-app-version": "^3.0.0",
"ember-cli-autoprefixer": "^0.8.1",
"ember-cli-babel": "^6.6.0",
"ember-cli-code-coverage": "^1.0.0-beta.4",
"ember-cli-dependency-checker": "^2.0.0",
"ember-cli-eslint": "^4.2.1",
"ember-cli-flash": "^1.6.3",
"ember-cli-htmlbars": "^2.0.1",
"ember-cli-htmlbars-inline-precompile": "^1.0.0",
"ember-cli-inject-live-reload": "^1.4.1",
"ember-cli-page-object": "^1.15.0-beta.2",
"ember-cli-qunit": "^4.1.1",
"ember-cli-sass": "^8.0.1",
"ember-cli-shims": "^1.2.0",
"ember-cli-sri": "^2.1.0",
"ember-cli-string-helpers": "^1.9.0",
"ember-cli-uglify": "^2.0.0",
"ember-cli-yadda": "^0.5.0",
"ember-collection": "^1.0.0-alpha.9",
"ember-composable-helpers": "^2.1.0",
"ember-computed-style": "^0.3.0",
"ember-data": "^3.0.2",
"ember-exam": "^2.0.1",
"ember-export-application-global": "^2.0.0",
"ember-href-to": "^1.15.1",
"ember-inflector": "^3.0.0",
"ember-load-initializers": "^1.0.0",
"ember-math-helpers": "^2.4.0",
"ember-power-select": "^2.0.2",
"ember-power-select-with-create": "^0.6.0",
"ember-resolver": "^4.0.0",
"ember-sinon-qunit": "^2.1.0",
"ember-source": "~2.18.2",
"ember-test-selectors": "^1.0.0",
"ember-truth-helpers": "^2.0.0",
"ember-url": "^0.6.0",
"eslint-plugin-ember": "^5.0.0",
"husky": "^1.1.0",
"ivy-codemirror": "^2.1.0",
"js-yaml": "^3.13.1",
"jsonlint": "^1.6.3",
"lint-staged": "^7.0.0",
"loader.js": "^4.2.3",
"node-sass": "^4.9.3",
"prettier": "^1.10.2",
"svgo": "^1.0.5",
"text-encoding": "^0.6.4"
},
"engines": {
"node": "^4.5 || 6.* || >= 7.*"
},
"ember-addon": {
"paths": [
"lib/startup",
"lib/block-slots",
"lib/commands"
]
}
}