open-nomad/ui/package.json

149 lines
4.4 KiB
JSON
Raw Normal View History

2017-09-19 14:47:10 +00:00
{
"name": "nomad-ui",
"version": "0.0.0",
"description": "The web ui for Nomad, by HashiCorp.",
2019-03-15 20:26:18 +00:00
"repository": "",
2017-09-19 14:47:10 +00:00
"directories": {
"doc": "doc",
"test": "tests"
},
"scripts": {
"build": "./node_modules/ember-cli/bin/ember build -prod",
"precommit": "lint-staged",
2019-03-15 20:26:18 +00:00
"lint:hbs": "ember-template-lint .",
"lint:js": "eslint .",
"start": "./node_modules/ember-cli/bin/ember server",
UI: Migrate to Storybook (#6507) I originally planned to add component documentation, but as this dragged on and I found that JSDoc-to-Markdown sometimes needed hand-tuning, I decided to skip it and focus on replicating what was already present in Freestyle. Adding documentation is a finite task that can be revisited in the future. My goal was to migrate everything from Freestyle with as few changes as possible. Some adaptations that I found necessary: • the DelayedArray and DelayedTruth utilities that delay component rendering until slightly after initial render because without them: ◦ charts were rendering with zero width ◦ the JSON viewer was rendering with empty content • Storybook in Ember renders components in a routerless/controllerless context by default, so some component stories needed changes: ◦ table pagination/sorting stories access to query params, which necessitates some reaching into Ember internals to start routing and dynamically generate a Storybook route/controller to render components into ◦ some stories have a faux controller as part of their Storybook context that hosts setInterval-linked dynamic computed properties • some jiggery-pokery with anchor tags ◦ inert href='#' had to become href='javascript:; ◦ links that are actually meant to navigate need target='_parent' so they don’t navigate inside the Storybook iframe Maybe some of these could be addressed by fixes in ember-cli-storybook but I’m wary of digging around in there any more than I already have, as I’ve lost a lot of time to Storybook confusion and frustrations already 😞 The STORYBOOK=true environment variable tweaks some environment settings to get things working as expected in the Storybook context. I chose to: • use angle bracket invocation within stories rather than have to migrate them soon after having moved to Storybook • keep Freestyle around for now for its palette and typeface components
2020-01-21 21:46:32 +00:00
"build-storybook": "STORYBOOK=true ember build && build-storybook -s dist",
"storybook": "STORYBOOK=true start-storybook -p 6006 -s dist",
2019-03-15 20:26:18 +00:00
"test": "./node_modules/ember-cli/bin/ember test"
2017-09-19 14:47:10 +00:00
},
2019-04-02 23:11:22 +00:00
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
2017-09-19 14:47:10 +00:00
"lint-staged": {
UI: Migrate to Storybook (#6507) I originally planned to add component documentation, but as this dragged on and I found that JSDoc-to-Markdown sometimes needed hand-tuning, I decided to skip it and focus on replicating what was already present in Freestyle. Adding documentation is a finite task that can be revisited in the future. My goal was to migrate everything from Freestyle with as few changes as possible. Some adaptations that I found necessary: • the DelayedArray and DelayedTruth utilities that delay component rendering until slightly after initial render because without them: ◦ charts were rendering with zero width ◦ the JSON viewer was rendering with empty content • Storybook in Ember renders components in a routerless/controllerless context by default, so some component stories needed changes: ◦ table pagination/sorting stories access to query params, which necessitates some reaching into Ember internals to start routing and dynamically generate a Storybook route/controller to render components into ◦ some stories have a faux controller as part of their Storybook context that hosts setInterval-linked dynamic computed properties • some jiggery-pokery with anchor tags ◦ inert href='#' had to become href='javascript:; ◦ links that are actually meant to navigate need target='_parent' so they don’t navigate inside the Storybook iframe Maybe some of these could be addressed by fixes in ember-cli-storybook but I’m wary of digging around in there any more than I already have, as I’ve lost a lot of time to Storybook confusion and frustrations already 😞 The STORYBOOK=true environment variable tweaks some environment settings to get things working as expected in the Storybook context. I chose to: • use angle bracket invocation within stories rather than have to migrate them soon after having moved to Storybook • keep Freestyle around for now for its palette and typeface components
2020-01-21 21:46:32 +00:00
"{app,tests,config,lib,mirage,stories}/**/*.js": [
"prettier --write"
],
"app/styles/**/*.*": [
"prettier --write"
]
2017-09-19 14:47:10 +00:00
},
"devDependencies": {
2019-04-02 22:01:20 +00:00
"@babel/plugin-proposal-object-rest-spread": "^7.4.3",
"@ember/optional-features": "^0.7.0",
"@hashicorp/structure-icons": "^1.3.0",
UI: Migrate to Storybook (#6507) I originally planned to add component documentation, but as this dragged on and I found that JSDoc-to-Markdown sometimes needed hand-tuning, I decided to skip it and focus on replicating what was already present in Freestyle. Adding documentation is a finite task that can be revisited in the future. My goal was to migrate everything from Freestyle with as few changes as possible. Some adaptations that I found necessary: • the DelayedArray and DelayedTruth utilities that delay component rendering until slightly after initial render because without them: ◦ charts were rendering with zero width ◦ the JSON viewer was rendering with empty content • Storybook in Ember renders components in a routerless/controllerless context by default, so some component stories needed changes: ◦ table pagination/sorting stories access to query params, which necessitates some reaching into Ember internals to start routing and dynamically generate a Storybook route/controller to render components into ◦ some stories have a faux controller as part of their Storybook context that hosts setInterval-linked dynamic computed properties • some jiggery-pokery with anchor tags ◦ inert href='#' had to become href='javascript:; ◦ links that are actually meant to navigate need target='_parent' so they don’t navigate inside the Storybook iframe Maybe some of these could be addressed by fixes in ember-cli-storybook but I’m wary of digging around in there any more than I already have, as I’ve lost a lot of time to Storybook confusion and frustrations already 😞 The STORYBOOK=true environment variable tweaks some environment settings to get things working as expected in the Storybook context. I chose to: • use angle bracket invocation within stories rather than have to migrate them soon after having moved to Storybook • keep Freestyle around for now for its palette and typeface components
2020-01-21 21:46:32 +00:00
"@storybook/ember-cli-storybook": "^0.2.0",
"anser": "^1.4.8",
"babel-eslint": "^10.1.0",
"base64-js": "^1.3.1",
2019-04-02 22:01:20 +00:00
"broccoli-asset-rev": "^3.0.0",
2017-12-20 15:37:56 +00:00
"bulma": "0.6.1",
2017-09-19 14:47:10 +00:00
"core-js": "^2.4.1",
2018-09-07 16:55:39 +00:00
"d3-array": "^1.2.0",
"d3-axis": "^1.0.0",
"d3-format": "^1.3.0",
"d3-scale": "^1.0.0",
2018-09-17 22:55:48 +00:00
"d3-selection": "^1.1.0",
2018-09-07 16:55:39 +00:00
"d3-shape": "^1.2.0",
"d3-time-format": "^2.1.0",
2017-09-19 14:47:10 +00:00
"d3-transition": "^1.1.0",
"duration-js": "^4.0.0",
2019-04-02 22:55:20 +00:00
"ember-ajax": "^5.0.0",
2019-03-16 00:18:26 +00:00
"ember-auto-import": "^1.2.21",
"ember-can": "^2.0.0",
"ember-classic-decorator": "^1.0.8",
"ember-cli": "~3.12.0",
"ember-cli-babel": "^7.7.3",
"ember-cli-clipboard": "^0.13.0",
2019-10-08 18:44:19 +00:00
"ember-cli-dependency-checker": "^3.1.0",
2019-03-12 23:15:07 +00:00
"ember-cli-deprecation-workflow": "^1.0.1",
2019-04-02 22:55:20 +00:00
"ember-cli-eslint": "^5.1.0",
2019-03-16 00:18:26 +00:00
"ember-cli-funnel": "^0.6.1",
"ember-cli-htmlbars": "^3.0.1",
"ember-cli-htmlbars-inline-precompile": "^2.1.0",
2019-04-02 22:55:20 +00:00
"ember-cli-inject-live-reload": "^2.0.1",
2019-09-26 18:47:07 +00:00
"ember-cli-mirage": "^1.1.2",
2017-12-13 03:14:19 +00:00
"ember-cli-moment-shim": "^3.5.0",
"ember-cli-page-object": "^1.17.2",
"ember-cli-sass": "^10.0.0",
2019-03-15 20:26:18 +00:00
"ember-cli-sri": "^2.1.1",
2017-12-13 03:14:19 +00:00
"ember-cli-string-helpers": "^1.5.0",
2019-03-15 20:26:18 +00:00
"ember-cli-template-lint": "^1.0.0-beta.1",
"ember-cli-uglify": "^2.1.0",
2017-09-19 14:47:10 +00:00
"ember-composable-helpers": "^2.0.3",
2019-10-08 18:44:19 +00:00
"ember-concurrency": "^1.0.0",
2019-03-26 04:55:06 +00:00
"ember-copy": "^1.0.0",
"ember-data": "~3.12.0",
2019-10-08 18:44:19 +00:00
"ember-data-model-fragments": "4.0.0",
"ember-decorators": "^6.1.1",
2017-09-19 14:47:10 +00:00
"ember-export-application-global": "^2.0.0",
2019-04-02 22:55:20 +00:00
"ember-fetch": "^6.5.0",
2019-03-26 04:24:11 +00:00
"ember-inflector": "^3.0.0",
2019-10-08 18:44:19 +00:00
"ember-inline-svg": "^0.3.0",
"ember-load-initializers": "^2.0.0",
2019-03-12 23:42:47 +00:00
"ember-maybe-import-regenerator": "^0.1.6",
2019-03-26 05:27:47 +00:00
"ember-moment": "^7.8.1",
"ember-overridable-computed": "^1.0.0",
"ember-page-title": "^5.0.2",
"ember-power-select": "^3.0.4",
"ember-qunit": "^4.4.1",
"ember-qunit-nice-errors": "^1.2.0",
2019-03-15 20:26:18 +00:00
"ember-resolver": "^5.0.1",
2019-10-08 18:44:19 +00:00
"ember-responsive": "^3.0.4",
"ember-sinon": "^4.0.0",
"ember-source": "~3.12.0",
2019-03-16 00:18:26 +00:00
"ember-test-selectors": "^2.1.0",
2017-12-13 03:14:19 +00:00
"ember-truth-helpers": "^2.0.0",
2019-04-02 22:59:16 +00:00
"eslint": "^5.16.0",
"eslint-plugin-ember": "^6.2.0",
"eslint-plugin-node": "^9.0.1",
2019-09-26 18:47:07 +00:00
"faker": "^4.1.0",
2017-12-13 03:14:19 +00:00
"flat": "^4.0.0",
2019-04-02 23:11:22 +00:00
"fuse.js": "^3.4.4",
"glob": "^4.0.5",
"http-proxy": "^1.1.6",
2020-04-10 03:45:37 +00:00
"husky": "^4.2.5",
"is-ip": "^3.1.0",
"ivy-codemirror": "IvyApp/ivy-codemirror#c3b7f49f8e6492878619f8055695581240cce21a",
"lint-staged": "^10.1.3",
2019-03-15 20:26:18 +00:00
"loader.js": "^4.7.0",
"lodash.intersection": "^4.4.0",
"morgan": "^1.3.2",
2019-09-26 18:47:07 +00:00
"pretender": "^3.0.1",
2017-10-18 17:38:18 +00:00
"prettier": "^1.4.4",
"query-string": "^5.0.0",
"qunit-dom": "^0.9.0",
"sass": "^1.17.3",
"testem": "^3.0.3",
"testem-multi-reporter": "^1.2.0",
"text-encoder-lite": "^2.0.0",
"xterm": "^4.6.0",
"xterm-addon-fit": "^0.3.0"
2017-09-19 14:47:10 +00:00
},
UI: Migrate to Storybook (#6507) I originally planned to add component documentation, but as this dragged on and I found that JSDoc-to-Markdown sometimes needed hand-tuning, I decided to skip it and focus on replicating what was already present in Freestyle. Adding documentation is a finite task that can be revisited in the future. My goal was to migrate everything from Freestyle with as few changes as possible. Some adaptations that I found necessary: • the DelayedArray and DelayedTruth utilities that delay component rendering until slightly after initial render because without them: ◦ charts were rendering with zero width ◦ the JSON viewer was rendering with empty content • Storybook in Ember renders components in a routerless/controllerless context by default, so some component stories needed changes: ◦ table pagination/sorting stories access to query params, which necessitates some reaching into Ember internals to start routing and dynamically generate a Storybook route/controller to render components into ◦ some stories have a faux controller as part of their Storybook context that hosts setInterval-linked dynamic computed properties • some jiggery-pokery with anchor tags ◦ inert href='#' had to become href='javascript:; ◦ links that are actually meant to navigate need target='_parent' so they don’t navigate inside the Storybook iframe Maybe some of these could be addressed by fixes in ember-cli-storybook but I’m wary of digging around in there any more than I already have, as I’ve lost a lot of time to Storybook confusion and frustrations already 😞 The STORYBOOK=true environment variable tweaks some environment settings to get things working as expected in the Storybook context. I chose to: • use angle bracket invocation within stories rather than have to migrate them soon after having moved to Storybook • keep Freestyle around for now for its palette and typeface components
2020-01-21 21:46:32 +00:00
"optionalDependencies": {
"@babel/plugin-transform-member-expression-literals": "^7.2.0",
"@storybook/addon-knobs": "^5.2.5",
"@storybook/addon-storysource": "^5.2.5",
"@storybook/addon-viewport": "^5.2.5",
"@storybook/addons": "^5.2.5",
"@storybook/ember": "^5.2.5",
"babel-loader": "^8.0.6",
"ember-cli-get-component-path-option": "^1.0.0",
"ember-cli-string-utils": "^1.1.0"
},
2017-09-19 14:47:10 +00:00
"engines": {
"node": "8.* || >= 10.*"
2017-09-19 14:47:10 +00:00
},
"private": true,
"ember-addon": {
"paths": [
"lib/bulma"
]
2018-09-17 22:55:48 +00:00
},
"dependencies": {
"lru_map": "^0.3.3"
2017-09-19 14:47:10 +00:00
}
}