ember-inspector 4.13.1-alpha.2024.8.8 → 4.13.1-alpha.2025.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -2
- package/app/components/app-picker.hbs +2 -2
- package/app/components/component-tree-item.hbs +13 -13
- package/app/components/component-tree-toolbar.hbs +3 -3
- package/app/components/{date-property-field.js → date-property-field.ts} +6 -5
- package/app/components/deprecation-item-source.hbs +1 -1
- package/app/components/deprecation-item.hbs +1 -1
- package/app/components/deprecations-toolbar.hbs +1 -1
- package/app/components/item-types.hbs +7 -7
- package/app/components/list-cell.hbs +3 -3
- package/app/components/list-content.hbs +4 -3
- package/app/components/list-content.ts +96 -0
- package/app/components/list.hbs +3 -3
- package/app/components/list.js +7 -7
- package/app/components/model-types-toolbar.hbs +3 -3
- package/app/components/object-inspector/dependent-keys.hbs +4 -4
- package/app/components/object-inspector/errors.hbs +4 -4
- package/app/components/object-inspector/properties-all.hbs +1 -1
- package/app/components/object-inspector/properties-grouped.hbs +5 -5
- package/app/components/object-inspector/property.hbs +16 -16
- package/app/components/object-inspector/property.ts +26 -17
- package/app/components/object-inspector/sort-properties.js +12 -4
- package/app/components/object-inspector.hbs +8 -8
- package/app/components/object-inspector.js +1 -1
- package/app/components/promise-item.hbs +11 -11
- package/app/components/promise-item.js +8 -6
- package/app/components/promise-tree-toolbar.hbs +5 -5
- package/app/components/records-toolbar.hbs +2 -2
- package/app/components/render-item.hbs +4 -4
- package/app/components/render-item.ts +12 -9
- package/app/components/render-tree-toolbar.hbs +1 -1
- package/app/components/route-cell-name.hbs +1 -1
- package/app/components/route-cell-name.js +3 -2
- package/app/components/route-tree-toolbar.hbs +2 -2
- package/app/components/scroll-container.js +2 -0
- package/app/components/side-nav.hbs +5 -5
- package/app/components/side-nav.js +1 -1
- package/app/computed/{debounce.js → debounce.ts} +7 -5
- package/app/config/environment.d.ts +5 -2
- package/app/controllers/app-config.js +1 -0
- package/app/controllers/application.js +33 -34
- package/app/controllers/component-tree.js +3 -2
- package/app/controllers/container-type.js +2 -1
- package/app/controllers/container-types/{index.js → index.ts} +5 -2
- package/app/controllers/container-types.js +3 -6
- package/app/controllers/deprecations.js +16 -11
- package/app/controllers/libraries.js +1 -0
- package/app/controllers/model-types.js +1 -0
- package/app/controllers/promise-tree.ts +149 -0
- package/app/controllers/records.js +18 -26
- package/app/controllers/{render-tree.js → render-tree.ts} +54 -45
- package/app/controllers/route-tree.js +7 -5
- package/app/helpers/build-style.js +1 -1
- package/app/initializers/setup.js +1 -1
- package/app/libs/promise-assembler.ts +249 -0
- package/app/libs/resizable-columns.js +10 -10
- package/app/models/{promise.js → promise.ts} +72 -69
- package/app/{router.js → router.ts} +1 -1
- package/app/routes/app-detected.js +3 -5
- package/app/routes/application.js +6 -12
- package/app/routes/deprecations.js +7 -16
- package/app/routes/launch.js +2 -1
- package/app/routes/libraries.js +2 -1
- package/app/routes/model-type.js +2 -3
- package/app/routes/model-types.ts +57 -0
- package/app/routes/promise-tree.ts +63 -0
- package/app/routes/records.ts +78 -0
- package/app/routes/render-tree.ts +93 -0
- package/app/routes/route-tree.js +0 -1
- package/app/routes/{tab.js → tab.ts} +9 -2
- package/app/routes/whats-new.js +1 -1
- package/app/services/adapters/{basic.js → basic.ts} +36 -30
- package/app/services/adapters/{bookmarklet.js → bookmarklet.ts} +17 -24
- package/app/services/adapters/{chrome.js → chrome.ts} +1 -2
- package/app/services/adapters/{web-extension.js → web-extension.ts} +43 -46
- package/app/services/adapters/websocket.ts +40 -0
- package/app/services/layout.ts +88 -0
- package/app/services/port.ts +195 -0
- package/app/services/storage/{local.js → local.ts} +7 -20
- package/app/services/storage/{memory.js → memory.ts} +6 -21
- package/app/services/{storage.js → storage.ts} +9 -20
- package/app/styles/base.scss +4 -2
- package/app/styles/colors.scss +33 -31
- package/app/styles/component_tree.scss +56 -51
- package/app/styles/dropdown.scss +2 -2
- package/app/styles/ember-table.scss +3 -3
- package/app/styles/mixin.scss +26 -26
- package/app/styles/object_inspector.scss +22 -21
- package/app/styles/utils.scss +408 -122
- package/app/templates/application.hbs +11 -11
- package/app/templates/component-tree.hbs +1 -1
- package/app/templates/deprecations.hbs +2 -3
- package/app/templates/info.hbs +10 -10
- package/app/templates/promise-tree.hbs +1 -1
- package/app/templates/render-tree.hbs +1 -1
- package/app/templates/route-tree.hbs +1 -1
- package/app/utils/escape-reg-exp.ts +3 -2
- package/app/utils/nullish.ts +7 -0
- package/app/utils/parse-text.ts +4 -5
- package/app/utils/truncate.js +0 -1
- package/config/ember-cli-update.json +5 -3
- package/config/ember-try.js +117 -72
- package/config/environment.js +1 -1
- package/config/optional-features.json +2 -1
- package/dist/bookmarklet/load_inspector.js +30 -11
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js +1135 -0
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.524.6a5edcbbcf29cbe1b167.js +40 -0
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.582.b77d8494154b524e9f91.js +42 -0
- package/dist/bookmarklet/panes-3-16-0/assets/ember-inspector.css +150 -155
- package/dist/bookmarklet/panes-3-16-0/assets/ember-inspector.js +486 -590
- package/dist/bookmarklet/panes-3-16-0/assets/svg/ellipsis.svg +3 -3
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-bug.svg +1 -1
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-components.svg +2 -2
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-container.svg +1 -1
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-data.svg +1 -1
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-deprecations.svg +3 -3
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-info.svg +3 -3
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-promises.svg +2 -2
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-render-performance.svg +2 -2
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-route-tree.svg +7 -7
- package/dist/bookmarklet/panes-3-16-0/assets/vendor.css +147 -148
- package/dist/bookmarklet/panes-3-16-0/assets/vendor.js +5153 -5980
- package/dist/bookmarklet/panes-3-16-0/ember_debug.js +250 -268
- package/dist/bookmarklet/panes-3-16-0/index.html +3 -4
- package/dist/chrome/background.js +26 -21
- package/dist/chrome/boot.js +1 -1
- package/dist/chrome/content-script.js +11 -11
- package/dist/chrome/devtools.js +12 -3
- package/dist/chrome/manifest.json +2 -2
- package/dist/chrome/options.js +17 -12
- package/dist/chrome/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js +1135 -0
- package/dist/chrome/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
- package/dist/chrome/panes-3-16-0/assets/chunk.524.6a5edcbbcf29cbe1b167.js +40 -0
- package/dist/chrome/panes-3-16-0/assets/chunk.582.b77d8494154b524e9f91.js +42 -0
- package/dist/chrome/panes-3-16-0/assets/ember-inspector.css +150 -155
- package/dist/chrome/panes-3-16-0/assets/ember-inspector.js +486 -590
- package/dist/chrome/panes-3-16-0/assets/svg/ellipsis.svg +3 -3
- package/dist/chrome/panes-3-16-0/assets/svg/nav-bug.svg +1 -1
- package/dist/chrome/panes-3-16-0/assets/svg/nav-components.svg +2 -2
- package/dist/chrome/panes-3-16-0/assets/svg/nav-container.svg +1 -1
- package/dist/chrome/panes-3-16-0/assets/svg/nav-data.svg +1 -1
- package/dist/chrome/panes-3-16-0/assets/svg/nav-deprecations.svg +3 -3
- package/dist/chrome/panes-3-16-0/assets/svg/nav-info.svg +3 -3
- package/dist/chrome/panes-3-16-0/assets/svg/nav-promises.svg +2 -2
- package/dist/chrome/panes-3-16-0/assets/svg/nav-render-performance.svg +2 -2
- package/dist/chrome/panes-3-16-0/assets/svg/nav-route-tree.svg +7 -7
- package/dist/chrome/panes-3-16-0/assets/vendor.css +147 -148
- package/dist/chrome/panes-3-16-0/assets/vendor.js +5153 -5980
- package/dist/chrome/panes-3-16-0/ember_debug.js +250 -268
- package/dist/chrome/panes-3-16-0/index.html +3 -4
- package/dist/chrome/scripts/in-page-script.js +19 -13
- package/dist/firefox/background.js +26 -21
- package/dist/firefox/boot.js +1 -1
- package/dist/firefox/content-script.js +11 -11
- package/dist/firefox/devtools.js +12 -3
- package/dist/firefox/manifest.json +2 -2
- package/dist/firefox/options.js +17 -12
- package/dist/firefox/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js +1135 -0
- package/dist/firefox/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
- package/dist/firefox/panes-3-16-0/assets/chunk.524.6a5edcbbcf29cbe1b167.js +40 -0
- package/dist/firefox/panes-3-16-0/assets/chunk.582.b77d8494154b524e9f91.js +42 -0
- package/dist/firefox/panes-3-16-0/assets/ember-inspector.css +150 -155
- package/dist/firefox/panes-3-16-0/assets/ember-inspector.js +486 -590
- package/dist/firefox/panes-3-16-0/assets/svg/ellipsis.svg +3 -3
- package/dist/firefox/panes-3-16-0/assets/svg/nav-bug.svg +1 -1
- package/dist/firefox/panes-3-16-0/assets/svg/nav-components.svg +2 -2
- package/dist/firefox/panes-3-16-0/assets/svg/nav-container.svg +1 -1
- package/dist/firefox/panes-3-16-0/assets/svg/nav-data.svg +1 -1
- package/dist/firefox/panes-3-16-0/assets/svg/nav-deprecations.svg +3 -3
- package/dist/firefox/panes-3-16-0/assets/svg/nav-info.svg +3 -3
- package/dist/firefox/panes-3-16-0/assets/svg/nav-promises.svg +2 -2
- package/dist/firefox/panes-3-16-0/assets/svg/nav-render-performance.svg +2 -2
- package/dist/firefox/panes-3-16-0/assets/svg/nav-route-tree.svg +7 -7
- package/dist/firefox/panes-3-16-0/assets/vendor.css +147 -148
- package/dist/firefox/panes-3-16-0/assets/vendor.js +5153 -5980
- package/dist/firefox/panes-3-16-0/ember_debug.js +250 -268
- package/dist/firefox/panes-3-16-0/index.html +3 -4
- package/dist/firefox/scripts/in-page-script.js +19 -13
- package/dist/websocket/assets/chunk.443.86a005e528b587663b78.js +1135 -0
- package/dist/websocket/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
- package/dist/websocket/assets/chunk.524.6a5edcbbcf29cbe1b167.js +40 -0
- package/dist/websocket/assets/chunk.582.b77d8494154b524e9f91.js +42 -0
- package/dist/websocket/assets/ember-inspector.css +150 -155
- package/dist/websocket/assets/ember-inspector.js +486 -590
- package/dist/websocket/assets/svg/ellipsis.svg +3 -3
- package/dist/websocket/assets/svg/nav-bug.svg +1 -1
- package/dist/websocket/assets/svg/nav-components.svg +2 -2
- package/dist/websocket/assets/svg/nav-container.svg +1 -1
- package/dist/websocket/assets/svg/nav-data.svg +1 -1
- package/dist/websocket/assets/svg/nav-deprecations.svg +3 -3
- package/dist/websocket/assets/svg/nav-info.svg +3 -3
- package/dist/websocket/assets/svg/nav-promises.svg +2 -2
- package/dist/websocket/assets/svg/nav-render-performance.svg +2 -2
- package/dist/websocket/assets/svg/nav-route-tree.svg +7 -7
- package/dist/websocket/assets/vendor.css +147 -148
- package/dist/websocket/assets/vendor.js +5153 -5980
- package/dist/websocket/ember_debug.js +250 -268
- package/dist/websocket/index.html +3 -4
- package/ember-cli-build.js +11 -11
- package/ember_debug/adapters/basic.js +2 -1
- package/ember_debug/adapters/bookmarklet.js +1 -0
- package/ember_debug/adapters/firefox.js +3 -3
- package/ember_debug/adapters/web-extension.js +2 -1
- package/ember_debug/data-debug.js +5 -6
- package/ember_debug/deprecation-debug.js +8 -8
- package/ember_debug/general-debug.js +1 -1
- package/ember_debug/libs/capture-render-tree.js +0 -1
- package/ember_debug/libs/promise-assembler.js +1 -0
- package/ember_debug/libs/render-tree.js +13 -12
- package/ember_debug/libs/source-map.js +5 -4
- package/ember_debug/libs/view-inspection.js +12 -12
- package/ember_debug/main.js +1 -1
- package/ember_debug/models/profile-manager.js +2 -1
- package/ember_debug/object-inspector.js +19 -18
- package/ember_debug/port.js +1 -0
- package/ember_debug/promise-debug.js +1 -1
- package/ember_debug/route-debug.js +3 -2
- package/ember_debug/services/session.js +1 -1
- package/ember_debug/utils/classify.js +1 -1
- package/ember_debug/utils/ember/debug.js +2 -0
- package/ember_debug/utils/ember/loader.js +2 -2
- package/ember_debug/utils/ember/runloop.js +2 -0
- package/ember_debug/utils/ember-object-names.js +2 -2
- package/ember_debug/utils/ember.js +9 -3
- package/ember_debug/utils/evented.js +1 -1
- package/ember_debug/utils/get-object-name.js +2 -2
- package/ember_debug/utils/rsvp.js +1 -0
- package/ember_debug/utils/type-check.js +5 -1
- package/ember_debug/vendor/startup-wrapper.js +4 -1
- package/ember_debug/view-debug.js +3 -2
- package/eslint.config.mjs +172 -0
- package/gulpfile.js +1 -1
- package/lib/ui/addon/components/drag-handle.hbs +4 -4
- package/lib/ui/addon/components/drag-handle.js +3 -1
- package/lib/ui/addon/components/empty-message.hbs +1 -1
- package/lib/ui/addon/components/error-page.hbs +3 -3
- package/lib/ui/addon/components/resizable-column.js +1 -1
- package/lib/ui/addon/components/toolbar-clear-button.hbs +1 -1
- package/lib/ui/addon/components/toolbar-reload-button.hbs +1 -1
- package/lib/ui/addon/components/toolbar-search-field.hbs +2 -2
- package/lib/ui/addon/styles/_disclosure-triangle.scss +3 -1
- package/lib/ui/addon/styles/_drag-handle.scss +7 -7
- package/lib/ui/addon/styles/_empty-message.scss +1 -1
- package/lib/ui/addon/styles/_error-page.scss +8 -7
- package/lib/ui/addon/styles/_list.scss +46 -45
- package/lib/ui/addon/styles/_nav.scss +29 -27
- package/lib/ui/addon/styles/_object-inspector-toggle.scss +5 -5
- package/lib/ui/addon/styles/_pill.scss +4 -4
- package/lib/ui/addon/styles/_send-to-console.scss +1 -1
- package/lib/ui/addon/styles/_split.scss +17 -20
- package/lib/ui/addon/styles/addon.scss +13 -13
- package/lib/ui/addon/styles/toolbar/_checkbox.scss +5 -5
- package/lib/ui/addon/styles/toolbar/_icon-button.scss +44 -25
- package/lib/ui/addon/styles/toolbar/_index.scss +6 -5
- package/lib/ui/addon/styles/toolbar/_radio.scss +10 -10
- package/lib/ui/addon/styles/toolbar/_search.scss +5 -3
- package/package.json +85 -86
- package/public/assets/svg/ellipsis.svg +3 -3
- package/public/assets/svg/nav-bug.svg +1 -1
- package/public/assets/svg/nav-components.svg +2 -2
- package/public/assets/svg/nav-container.svg +1 -1
- package/public/assets/svg/nav-data.svg +1 -1
- package/public/assets/svg/nav-deprecations.svg +3 -3
- package/public/assets/svg/nav-info.svg +3 -3
- package/public/assets/svg/nav-promises.svg +2 -2
- package/public/assets/svg/nav-render-performance.svg +2 -2
- package/public/assets/svg/nav-route-tree.svg +7 -7
- package/scripts/download-panes.js +1 -1
- package/skeletons/bookmarklet/load_inspector.js +30 -11
- package/skeletons/web-extension/background.js +26 -21
- package/skeletons/web-extension/boot.js +1 -1
- package/skeletons/web-extension/content-script.js +11 -11
- package/skeletons/web-extension/devtools.js +12 -3
- package/skeletons/web-extension/manifest.json +2 -2
- package/skeletons/web-extension/options.js +17 -12
- package/skeletons/web-extension/scripts/in-page-script.js +19 -13
- package/testem.js +0 -1
- package/tests/acceptance/app-picker-test.js +4 -4
- package/tests/acceptance/component-tree-test.js +43 -57
- package/tests/acceptance/container-test.js +0 -2
- package/tests/acceptance/data-test.js +8 -10
- package/tests/acceptance/deprecation-test.js +8 -12
- package/tests/acceptance/info-test.js +2 -2
- package/tests/acceptance/object-inspector-test.js +62 -110
- package/tests/acceptance/promise-test.js +1 -11
- package/tests/acceptance/render-tree-test.js +2 -2
- package/tests/acceptance/route-tree-test.js +12 -14
- package/tests/acceptance/whats-new-test.js +3 -3
- package/tests/ember_debug/container-debug-test.js +4 -4
- package/tests/ember_debug/deprecation-debug-test.js +8 -5
- package/tests/ember_debug/ember-debug-test.js +1 -4
- package/tests/ember_debug/object-inspector-test.js +44 -44
- package/tests/ember_debug/profile-manager-test.js +140 -165
- package/tests/ember_debug/profile-node-test.js +3 -3
- package/tests/ember_debug/promise-assembler-test.js +12 -9
- package/tests/ember_debug/promise-debug-test.js +5 -6
- package/tests/ember_debug/route-debug-test.js +8 -7
- package/tests/ember_debug/view-debug-test.js +179 -181
- package/tests/helpers/{index.js → index.ts} +6 -5
- package/tests/helpers/setup-ember-debug-test.js +14 -0
- package/tests/integration/injection-test.js +12 -13
- package/tests/test-adapter.js +15 -15
- package/tests/test-helper.js +6 -1
- package/tests/unit/check-current-route-test.js +0 -4
- package/tests/unit/resizable-columns-test.js +53 -51
- package/tests/unit/utils/parse-text-test.js +3 -3
- package/tests/unit/utils/search-match-test.js +5 -5
- package/tests/unit/utils/type-check-test.js +22 -0
- package/tsconfig.json +3 -1
- package/types/ember-inspector/index.d.ts +2 -1
- package/types/global.d.ts +1 -7
- package/.editorconfig +0 -19
- package/.ember-cli +0 -15
- package/.eslintignore +0 -33
- package/.eslintrc.js +0 -86
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -30
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
- package/.github/dependabot.yml +0 -14
- package/.github/pull_request_template.md +0 -4
- package/.github/workflows/build.yml +0 -339
- package/.github/workflows/plan-release.yml +0 -83
- package/.github/workflows/publish.yml +0 -60
- package/.prettierignore +0 -25
- package/.prettierrc.js +0 -14
- package/.release-plan.json +0 -17
- package/.stylelintrc.js +0 -3
- package/.template-lintrc.js +0 -12
- package/.tool-versions +0 -2
- package/.watchmanconfig +0 -3
- package/app/components/.gitkeep +0 -0
- package/app/components/list-content.js +0 -130
- package/app/controllers/.gitkeep +0 -0
- package/app/controllers/promise-tree.js +0 -130
- package/app/helpers/.gitkeep +0 -0
- package/app/libs/promise-assembler.js +0 -169
- package/app/models/.gitkeep +0 -0
- package/app/routes/.gitkeep +0 -0
- package/app/routes/model-types.js +0 -47
- package/app/routes/promise-tree.js +0 -48
- package/app/routes/records.js +0 -55
- package/app/routes/render-tree.js +0 -66
- package/app/services/adapters/websocket.js +0 -31
- package/app/services/layout.js +0 -39
- package/app/services/port.js +0 -90
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.143.152107b52f1d9b56abd2.js +0 -28
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.178.fd17fd3a54b4e3a24554.js +0 -9
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
- package/dist/chrome/panes-3-16-0/assets/chunk.143.152107b52f1d9b56abd2.js +0 -28
- package/dist/chrome/panes-3-16-0/assets/chunk.178.fd17fd3a54b4e3a24554.js +0 -9
- package/dist/chrome/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
- package/dist/chrome/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
- package/dist/firefox/panes-3-16-0/assets/chunk.143.152107b52f1d9b56abd2.js +0 -28
- package/dist/firefox/panes-3-16-0/assets/chunk.178.fd17fd3a54b4e3a24554.js +0 -9
- package/dist/firefox/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
- package/dist/firefox/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
- package/dist/websocket/assets/chunk.143.152107b52f1d9b56abd2.js +0 -28
- package/dist/websocket/assets/chunk.178.fd17fd3a54b4e3a24554.js +0 -9
- package/dist/websocket/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
- package/dist/websocket/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
- package/ember_debug/.eslintrc.js +0 -13
- package/tests/helpers/trigger-port.js +0 -6
- package/tests/unit/.gitkeep +0 -0
- /package/app/{app.js → app.ts} +0 -0
- /package/app/controllers/{info.js → info.ts} +0 -0
- /package/app/services/adapters/{firefox.js → firefox.ts} +0 -0
package/.editorconfig
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# EditorConfig helps developers define and maintain consistent
|
2
|
-
# coding styles between different editors and IDEs
|
3
|
-
# editorconfig.org
|
4
|
-
|
5
|
-
root = true
|
6
|
-
|
7
|
-
[*]
|
8
|
-
end_of_line = lf
|
9
|
-
charset = utf-8
|
10
|
-
trim_trailing_whitespace = true
|
11
|
-
insert_final_newline = true
|
12
|
-
indent_style = space
|
13
|
-
indent_size = 2
|
14
|
-
|
15
|
-
[*.hbs]
|
16
|
-
insert_final_newline = false
|
17
|
-
|
18
|
-
[*.{diff,md}]
|
19
|
-
trim_trailing_whitespace = false
|
package/.ember-cli
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
{
|
2
|
-
/**
|
3
|
-
Ember CLI sends analytics information by default. The data is completely
|
4
|
-
anonymous, but there are times when you might want to disable this behavior.
|
5
|
-
|
6
|
-
Setting `disableAnalytics` to true will prevent any data from being sent.
|
7
|
-
*/
|
8
|
-
"disableAnalytics": false,
|
9
|
-
|
10
|
-
/**
|
11
|
-
Setting `isTypeScriptProject` to true will force the blueprint generators to generate TypeScript
|
12
|
-
rather than JavaScript by default, when a TypeScript version of a given blueprint is available.
|
13
|
-
*/
|
14
|
-
"isTypeScriptProject": false
|
15
|
-
}
|
package/.eslintignore
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
# unconventional js
|
2
|
-
/blueprints/*/files/
|
3
|
-
/vendor/
|
4
|
-
|
5
|
-
# compiled output
|
6
|
-
/dist/
|
7
|
-
/tmp/
|
8
|
-
|
9
|
-
# dependencies
|
10
|
-
/bower_components/
|
11
|
-
/node_modules/
|
12
|
-
|
13
|
-
# misc
|
14
|
-
/coverage/
|
15
|
-
!.*
|
16
|
-
.*/
|
17
|
-
.eslintcache
|
18
|
-
|
19
|
-
# ember-try
|
20
|
-
/.node_modules.ember-try/
|
21
|
-
/bower.json.ember-try
|
22
|
-
/npm-shrinkwrap.json.ember-try
|
23
|
-
/package.json.ember-try
|
24
|
-
/package-lock.json.ember-try
|
25
|
-
/yarn.lock.ember-try
|
26
|
-
|
27
|
-
# ember-inspector specific
|
28
|
-
/dist_prev/
|
29
|
-
/skeletons/
|
30
|
-
/ember_debug/vendor/startup-wrapper.js
|
31
|
-
|
32
|
-
# Safari build
|
33
|
-
/Ember Inspector/
|
package/.eslintrc.js
DELETED
@@ -1,86 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
module.exports = {
|
4
|
-
root: true,
|
5
|
-
parser: '@babel/eslint-parser',
|
6
|
-
parserOptions: {
|
7
|
-
ecmaVersion: 2020,
|
8
|
-
sourceType: 'module',
|
9
|
-
ecmaFeatures: {
|
10
|
-
legacyDecorators: true,
|
11
|
-
},
|
12
|
-
},
|
13
|
-
plugins: ['ember'],
|
14
|
-
extends: [
|
15
|
-
'eslint:recommended',
|
16
|
-
'plugin:ember/recommended',
|
17
|
-
'plugin:prettier/recommended',
|
18
|
-
],
|
19
|
-
env: {
|
20
|
-
browser: true,
|
21
|
-
},
|
22
|
-
globals: {
|
23
|
-
basicContext: false,
|
24
|
-
require: false,
|
25
|
-
requireModule: false,
|
26
|
-
},
|
27
|
-
rules: {
|
28
|
-
'no-prototype-builtins': 'off',
|
29
|
-
|
30
|
-
'ember/no-jquery': 'error',
|
31
|
-
|
32
|
-
// Temporarily turn these off
|
33
|
-
'ember/classic-decorator-hooks': 'off',
|
34
|
-
'ember/classic-decorator-no-classic-methods': 'off',
|
35
|
-
'ember/no-classic-classes': 'off',
|
36
|
-
'ember/no-classic-components': 'off',
|
37
|
-
'ember/no-computed-properties-in-native-classes': 'off',
|
38
|
-
'ember/no-get': 'off',
|
39
|
-
|
40
|
-
// Best practice
|
41
|
-
'no-duplicate-imports': 'error',
|
42
|
-
'ember/no-mixins': 'error',
|
43
|
-
},
|
44
|
-
overrides: [
|
45
|
-
// node files
|
46
|
-
{
|
47
|
-
files: [
|
48
|
-
'./.eslintrc.js',
|
49
|
-
'./.prettierrc.js',
|
50
|
-
'./.stylelintrc.js',
|
51
|
-
'./.template-lintrc.js',
|
52
|
-
'./ember-cli-build.js',
|
53
|
-
'./testem.js',
|
54
|
-
'./blueprints/*/index.js',
|
55
|
-
'./config/**/*.js',
|
56
|
-
'./lib/*/index.js',
|
57
|
-
'./scripts/**/*.js',
|
58
|
-
'./server/**/*.js',
|
59
|
-
],
|
60
|
-
excludedFiles: ['app/**'],
|
61
|
-
parserOptions: {
|
62
|
-
sourceType: 'script',
|
63
|
-
},
|
64
|
-
env: {
|
65
|
-
browser: false,
|
66
|
-
node: true,
|
67
|
-
},
|
68
|
-
plugins: ['node'],
|
69
|
-
extends: ['plugin:node/recommended'],
|
70
|
-
rules: {
|
71
|
-
// this can be removed once the following is fixed
|
72
|
-
// https://github.com/mysticatea/eslint-plugin-node/issues/77
|
73
|
-
'node/no-unpublished-require': 'off',
|
74
|
-
},
|
75
|
-
},
|
76
|
-
{
|
77
|
-
// test files
|
78
|
-
files: ['tests/**/*-test.{js,ts}'],
|
79
|
-
extends: ['plugin:qunit/recommended'],
|
80
|
-
rules: {
|
81
|
-
'qunit/no-conditional-assertions': 'off',
|
82
|
-
'qunit/no-early-return': 'off',
|
83
|
-
},
|
84
|
-
},
|
85
|
-
],
|
86
|
-
};
|
@@ -1,30 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: Bug report
|
3
|
-
about: Create a report to help us improve
|
4
|
-
title: ''
|
5
|
-
labels: 'bug'
|
6
|
-
assignees: ''
|
7
|
-
|
8
|
-
---
|
9
|
-
|
10
|
-
**Describe the bug**
|
11
|
-
A clear and concise description of what the bug is.
|
12
|
-
|
13
|
-
**To Reproduce**
|
14
|
-
Steps to reproduce the behavior:
|
15
|
-
1. Go to '...'
|
16
|
-
2. Click on '....'
|
17
|
-
3. Scroll down to '....'
|
18
|
-
4. See error
|
19
|
-
|
20
|
-
**Expected behavior**
|
21
|
-
A clear and concise description of what you expected to happen.
|
22
|
-
|
23
|
-
**Screenshots**
|
24
|
-
If applicable, add screenshots to help explain your problem.
|
25
|
-
|
26
|
-
**Environment**
|
27
|
-
Ember version, browser, etc.
|
28
|
-
|
29
|
-
**Additional context**
|
30
|
-
Add any other context about the problem here.
|
@@ -1,20 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: Feature request
|
3
|
-
about: Suggest an idea for this project
|
4
|
-
title: ''
|
5
|
-
labels: ''
|
6
|
-
assignees: ''
|
7
|
-
|
8
|
-
---
|
9
|
-
|
10
|
-
**Is your feature request related to a problem? Please describe.**
|
11
|
-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
12
|
-
|
13
|
-
**Describe the solution you'd like**
|
14
|
-
A clear and concise description of what you want to happen.
|
15
|
-
|
16
|
-
**Describe alternatives you've considered**
|
17
|
-
A clear and concise description of any alternative solutions or features you've considered.
|
18
|
-
|
19
|
-
**Additional context**
|
20
|
-
Add any other context or screenshots about the feature request here.
|
package/.github/dependabot.yml
DELETED
@@ -1,339 +0,0 @@
|
|
1
|
-
name: Build and Publish
|
2
|
-
on:
|
3
|
-
pull_request: {}
|
4
|
-
push:
|
5
|
-
branches:
|
6
|
-
- main
|
7
|
-
- stable
|
8
|
-
- ember-2.7.0-3.4.0
|
9
|
-
- ember-0.0.0-2.7.0
|
10
|
-
tags:
|
11
|
-
- v*
|
12
|
-
schedule:
|
13
|
-
- cron: '0 0 * * *'
|
14
|
-
|
15
|
-
jobs:
|
16
|
-
test:
|
17
|
-
name: Test
|
18
|
-
runs-on: ubuntu-latest
|
19
|
-
env:
|
20
|
-
CI: 'true'
|
21
|
-
steps:
|
22
|
-
- name: Checkout
|
23
|
-
uses: actions/checkout@v3
|
24
|
-
# Code Climate expects these variables to be set
|
25
|
-
- name: Set up commit metadata
|
26
|
-
if: github.event_name == 'push'
|
27
|
-
env:
|
28
|
-
GIT_COMMIT_SHA: ${{ github.sha }}
|
29
|
-
GIT_BRANCH: ${{ github.ref }}
|
30
|
-
run: |
|
31
|
-
echo "GIT_COMMIT_SHA=${GIT_COMMIT_SHA}" >> $GITHUB_ENV
|
32
|
-
echo "GIT_BRANCH=${GIT_BRANCH/refs\/heads\//}" >> $GITHUB_ENV
|
33
|
-
- name: Set up commit metadata
|
34
|
-
if: github.event_name == 'pull_request'
|
35
|
-
env:
|
36
|
-
GIT_COMMIT_SHA: ${{ github.event.pull_request.head.sha }}
|
37
|
-
GIT_BRANCH: ${{ github.event.pull_request.head.ref }}
|
38
|
-
run: |
|
39
|
-
echo "GIT_COMMIT_SHA=${GIT_COMMIT_SHA}" >> $GITHUB_ENV
|
40
|
-
echo "GIT_BRANCH=${GIT_BRANCH}" >> $GITHUB_ENV
|
41
|
-
- name: setup pnpm & node
|
42
|
-
uses: wyvox/action-setup-pnpm@v3
|
43
|
-
- name: Install dependencies (pnpm)
|
44
|
-
run: pnpm install
|
45
|
-
- name: Lint (hbs)
|
46
|
-
run: pnpm lint:hbs
|
47
|
-
- name: Lint (js)
|
48
|
-
run: pnpm lint:js
|
49
|
-
- name: Run test
|
50
|
-
run: pnpm test
|
51
|
-
env:
|
52
|
-
COVERAGE: 'true'
|
53
|
-
# Ideally, we would split up the test task into separate build and run
|
54
|
-
# steps to get better CI log output (folding and timing information).
|
55
|
-
# However, this is not currently possible with ember-cli-code-coverage.
|
56
|
-
#
|
57
|
-
# See https://github.com/kategengler/ember-cli-code-coverage/issues/210
|
58
|
-
#
|
59
|
-
# - name: Build
|
60
|
-
# run: pnpm ember build --environment test
|
61
|
-
# env:
|
62
|
-
# COVERAGE: 'true'
|
63
|
-
# - name: Run test
|
64
|
-
# run: COVERAGE pnpm ember test --path dist
|
65
|
-
# env:
|
66
|
-
# # Due to a bug in ember-cli, running `ember test` with `--path` doesn't set `EMBER_ENV=test`
|
67
|
-
# # See https://github.com/ember-cli/ember-cli/issues/8922
|
68
|
-
# EMBER_ENV: test
|
69
|
-
# COVERAGE: 'true'
|
70
|
-
- name: Report coverage
|
71
|
-
if: github.event_name != 'schedule'
|
72
|
-
run: pnpm codeclimate-test-reporter < coverage/lcov.info
|
73
|
-
env:
|
74
|
-
CODECLIMATE_REPO_TOKEN: 59edcfd1ffc778791af49ca594b503e7179f6bbe1991b2cc0c0a6987d103253d
|
75
|
-
|
76
|
-
ember-try:
|
77
|
-
name: ember-try (${{ matrix.scenario }})
|
78
|
-
needs: test
|
79
|
-
runs-on: ubuntu-latest
|
80
|
-
env:
|
81
|
-
CI: 'true'
|
82
|
-
strategy:
|
83
|
-
fail-fast: false
|
84
|
-
matrix:
|
85
|
-
scenario:
|
86
|
-
- ember-lts-3.16
|
87
|
-
- ember-lts-3.20
|
88
|
-
- ember-lts-3.24
|
89
|
-
- ember-lts-3.28
|
90
|
-
- ember-release
|
91
|
-
- ember-beta
|
92
|
-
- ember-canary
|
93
|
-
- ember-default-no-prototype-extensions
|
94
|
-
|
95
|
-
steps:
|
96
|
-
- name: Checkout
|
97
|
-
uses: actions/checkout@v3
|
98
|
-
- name: setup pnpm & node
|
99
|
-
uses: wyvox/action-setup-pnpm@v3
|
100
|
-
- name: Install dependencies (pnpm)
|
101
|
-
run: pnpm install
|
102
|
-
- name: Set NO_EXTEND_PROTOTYPES
|
103
|
-
if: matrix.scenario == 'ember-default-no-prototype-extensions'
|
104
|
-
run: echo "NO_EXTEND_PROTOTYPES==true" >> .GITHUB_ENV
|
105
|
-
- name: Setup ember-try scenario
|
106
|
-
run: pnpm ember try:one ${{ matrix.scenario }} --skip-cleanup --- cat package.json
|
107
|
-
- name: Build
|
108
|
-
run: pnpm ember build --environment test
|
109
|
-
- name: Run test
|
110
|
-
# Due to a bug in ember-cli, running `ember test` with `--path` doesn't set `EMBER_ENV=test`
|
111
|
-
# See https://github.com/ember-cli/ember-cli/issues/8922
|
112
|
-
run: EMBER_ENV=test pnpm ember test --path dist --filter="Ember Debug"
|
113
|
-
|
114
|
-
build:
|
115
|
-
name: Build extensions
|
116
|
-
runs-on: ubuntu-latest
|
117
|
-
env:
|
118
|
-
CI: 'true'
|
119
|
-
steps:
|
120
|
-
- name: Checkout
|
121
|
-
uses: actions/checkout@v3
|
122
|
-
- name: setup pnpm & node
|
123
|
-
uses: wyvox/action-setup-pnpm@v3
|
124
|
-
- name: Install dependencies (pnpm)
|
125
|
-
run: pnpm install
|
126
|
-
- name: Download panes
|
127
|
-
run: node scripts/download-panes.js
|
128
|
-
env:
|
129
|
-
EMBER_ENV: production
|
130
|
-
- name: Update manifest.json (nightly)
|
131
|
-
if: github.event_name == 'schedule'
|
132
|
-
run: |
|
133
|
-
DATE="$(date +"%Y.%-m.%-d")"
|
134
|
-
SHA="${GITHUB_SHA:0:7}"
|
135
|
-
VERSION="$(jq -r '.version' package.json)"
|
136
|
-
CONTENT="$(cat "$FILE")"
|
137
|
-
|
138
|
-
echo "$CONTENT" | jq --arg date "$DATE" --arg sha "$SHA" --arg version "$VERSION" "$FILTER" > $FILE
|
139
|
-
cat "$FILE"
|
140
|
-
env:
|
141
|
-
FILE: skeletons/web-extension/manifest.json
|
142
|
-
FILTER: >-
|
143
|
-
.name += " (Nightly)" |
|
144
|
-
.version = $date |
|
145
|
-
.version_name = "\($version) (nightly build \($date) / \($sha))"
|
146
|
-
- name: Update manifest.json (pull request)
|
147
|
-
if: github.event_name == 'pull_request'
|
148
|
-
run: |
|
149
|
-
SHA="${SHA:0:7}"
|
150
|
-
CONTENT="$(cat "$FILE")"
|
151
|
-
|
152
|
-
echo "$CONTENT" | jq --arg pr "$PR" --arg sha "$SHA" "$FILTER" > $FILE
|
153
|
-
cat "$FILE"
|
154
|
-
env:
|
155
|
-
FILE: skeletons/web-extension/manifest.json
|
156
|
-
FILTER: >-
|
157
|
-
.name += " (PR #\($pr))" |
|
158
|
-
.version = $pr |
|
159
|
-
.version_name = $sha
|
160
|
-
PR: ${{ github.event.pull_request.number }}
|
161
|
-
SHA: ${{ github.event.pull_request.head.sha }}
|
162
|
-
- name: Update package.json (nightly)
|
163
|
-
if: github.event_name == 'schedule'
|
164
|
-
run: |
|
165
|
-
DATE="$(date +"%Y.%-m.%-d")"
|
166
|
-
SHA="${GITHUB_SHA:0:7}"
|
167
|
-
CONTENT="$(cat "$FILE")"
|
168
|
-
|
169
|
-
echo "$CONTENT" | jq --arg date "$DATE" --arg sha "$SHA" "$FILTER" > $FILE
|
170
|
-
cat "$FILE"
|
171
|
-
env:
|
172
|
-
FILE: package.json
|
173
|
-
FILTER: .version += "-alpha.\($date)+\($sha)"
|
174
|
-
- name: Update package.json (pull request)
|
175
|
-
if: github.event_name == 'pull_request'
|
176
|
-
run: |
|
177
|
-
SHA="${SHA:0:7}"
|
178
|
-
CONTENT="$(cat "$FILE")"
|
179
|
-
|
180
|
-
echo "$CONTENT" | jq --arg pr "$PR" --arg sha "$SHA" "$FILTER" > $FILE
|
181
|
-
cat "$FILE"
|
182
|
-
env:
|
183
|
-
FILE: package.json
|
184
|
-
FILTER: .version += "-alpha.0.\($pr)+\($sha)"
|
185
|
-
PR: ${{ github.event.pull_request.number }}
|
186
|
-
SHA: ${{ github.event.pull_request.head.sha }}
|
187
|
-
- name: Set EMBER_INSPECTOR_TAB (nightly)
|
188
|
-
if: github.event_name == 'schedule'
|
189
|
-
run: echo "EMBER_INSPECTOR_TAB=Nightly" >> $GITHUB_ENV
|
190
|
-
- name: Set EMBER_INSPECTOR_TAB (pull request)
|
191
|
-
if: github.event_name == 'pull_request'
|
192
|
-
run: echo "EMBER_INSPECTOR_TAB=PR \#$PR" >> $GITHUB_ENV
|
193
|
-
env:
|
194
|
-
PR: ${{ github.event.pull_request.number }}
|
195
|
-
- name: Build
|
196
|
-
run: pnpm ember build --environment production
|
197
|
-
- name: Pack
|
198
|
-
run: |
|
199
|
-
VERSION="$(jq -r '.version' package.json)"
|
200
|
-
|
201
|
-
pnpm pack
|
202
|
-
mkdir -p dist/npm
|
203
|
-
tar xvzf "ember-inspector-$VERSION.tgz" -C dist/npm --strip-components 1
|
204
|
-
- name: Upload artifacts (bookmarklet)
|
205
|
-
uses: actions/upload-artifact@v4
|
206
|
-
with:
|
207
|
-
name: bookmarklet
|
208
|
-
path: dist/bookmarklet
|
209
|
-
- name: Upload artifacts (Chrome)
|
210
|
-
uses: actions/upload-artifact@v4
|
211
|
-
with:
|
212
|
-
name: chrome
|
213
|
-
path: dist/chrome
|
214
|
-
- name: Upload artifacts (Firefox)
|
215
|
-
uses: actions/upload-artifact@v4
|
216
|
-
with:
|
217
|
-
name: firefox
|
218
|
-
path: dist/firefox
|
219
|
-
- name: Upload artifacts (npm)
|
220
|
-
uses: actions/upload-artifact@v4
|
221
|
-
with:
|
222
|
-
name: npm
|
223
|
-
path: dist/npm
|
224
|
-
|
225
|
-
publish-bookmarklet:
|
226
|
-
name: Publish bookmarklet
|
227
|
-
needs:
|
228
|
-
- test
|
229
|
-
- ember-try
|
230
|
-
- build
|
231
|
-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
232
|
-
runs-on: ubuntu-latest
|
233
|
-
steps:
|
234
|
-
- name: Download artifacts (bookmarklet)
|
235
|
-
uses: actions/download-artifact@v4
|
236
|
-
with:
|
237
|
-
name: bookmarklet
|
238
|
-
path: bookmarklet
|
239
|
-
- name: Upload to S3
|
240
|
-
uses: jakejarvis/s3-sync-action@v0.5.1
|
241
|
-
with:
|
242
|
-
args: --acl public-read --cache-control "max-age=86400000,public"
|
243
|
-
env:
|
244
|
-
AWS_S3_BUCKET: ember-extension
|
245
|
-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
246
|
-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
247
|
-
SOURCE_DIR: bookmarklet
|
248
|
-
DEST_DIR: dist_bookmarklet
|
249
|
-
|
250
|
-
publish-chrome:
|
251
|
-
name: Publish Chrome extension
|
252
|
-
needs:
|
253
|
-
- test
|
254
|
-
- ember-try
|
255
|
-
- build
|
256
|
-
runs-on: ubuntu-latest
|
257
|
-
steps:
|
258
|
-
- name: Set up node
|
259
|
-
uses: actions/setup-node@v4
|
260
|
-
- name: Install dependencies (chrome-webstore-upload-cli)
|
261
|
-
run: npm install -g chrome-webstore-upload-cli
|
262
|
-
- name: Download artifacts (Chrome)
|
263
|
-
uses: actions/download-artifact@v4
|
264
|
-
with:
|
265
|
-
name: chrome
|
266
|
-
path: chrome
|
267
|
-
- name: Set Environment Variables
|
268
|
-
run: |
|
269
|
-
if [[ "$GITHUB_EVENT_NAME" == "schedule" ]]; then
|
270
|
-
echo "EXTENSION_ID=ibdbkmdgflhglikhjdbogjjflkialpfi" >> $GITHUB_ENV
|
271
|
-
echo "CLIENT_ID=${{ secrets.GOOGLE_NIGHTLY_CLIENT_ID }}" >> $GITHUB_ENV
|
272
|
-
echo "REFRESH_TOKEN=${{ secrets.GOOGLE_NIGHTLY_REFRESH_TOKEN }}" >> $GITHUB_ENV
|
273
|
-
else
|
274
|
-
echo "EXTENSION_ID=bmdblncegkenkacieihfhpjfppoconhi" >> $GITHUB_ENV
|
275
|
-
echo "CLIENT_ID=${{ secrets.GOOGLE_NIGHTLY_CLIENT_ID }}" >> $GITHUB_ENV
|
276
|
-
echo "REFRESH_TOKEN=${{ secrets.GOOGLE_NIGHTLY_REFRESH_TOKEN }}" >> $GITHUB_ENV
|
277
|
-
fi
|
278
|
-
- name: Upload to Chrome Web Store
|
279
|
-
if: >-
|
280
|
-
github.event_name == 'schedule' ||
|
281
|
-
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v'))
|
282
|
-
run: chrome-webstore-upload upload --source chrome --auto-publish
|
283
|
-
|
284
|
-
publish-firefox:
|
285
|
-
name: Publish Firefox extension
|
286
|
-
needs:
|
287
|
-
- test
|
288
|
-
- ember-try
|
289
|
-
- build
|
290
|
-
runs-on: ubuntu-latest
|
291
|
-
steps:
|
292
|
-
- name: Set up nod
|
293
|
-
uses: actions/setup-node@v4
|
294
|
-
- name: Install dependencies (web-ext)
|
295
|
-
run: |
|
296
|
-
npm install -g web-ext
|
297
|
-
# https://github.com/mozilla/web-ext/issues/804
|
298
|
-
npm install -g web-ext-submit
|
299
|
-
- name: Download artifacts (Firefox)
|
300
|
-
uses: actions/download-artifact@v4
|
301
|
-
with:
|
302
|
-
name: firefox
|
303
|
-
path: firefox
|
304
|
-
- name: Upload to AMO
|
305
|
-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
306
|
-
working-directory: firefox
|
307
|
-
run: web-ext-submit --channel=listed
|
308
|
-
env:
|
309
|
-
WEB_EXT_API_KEY: ${{ secrets.FIREFOX_API_KEY }}
|
310
|
-
WEB_EXT_API_SECRET: ${{ secrets.FIREFOX_API_SECRET }}
|
311
|
-
|
312
|
-
publish-npm:
|
313
|
-
name: Publish npm package
|
314
|
-
needs:
|
315
|
-
- test
|
316
|
-
- ember-try
|
317
|
-
- build
|
318
|
-
runs-on: ubuntu-latest
|
319
|
-
steps:
|
320
|
-
- name: Set up node
|
321
|
-
uses: actions/setup-node@v4
|
322
|
-
- name: Download artifacts (npm)
|
323
|
-
uses: actions/download-artifact@v4
|
324
|
-
with:
|
325
|
-
name: npm
|
326
|
-
path: npm
|
327
|
-
- name: Publish to npm
|
328
|
-
if: >-
|
329
|
-
github.event_name == 'schedule' ||
|
330
|
-
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v'))
|
331
|
-
env:
|
332
|
-
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
333
|
-
working-directory: npm
|
334
|
-
run: |
|
335
|
-
echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}"> ~/.npmrc
|
336
|
-
npm whoami
|
337
|
-
if [[ "$GITHUB_EVENT_NAME" == "schedule" ]]; then
|
338
|
-
npm publish --tag alpha
|
339
|
-
fi
|
@@ -1,83 +0,0 @@
|
|
1
|
-
name: Release Plan Review
|
2
|
-
on:
|
3
|
-
push:
|
4
|
-
branches:
|
5
|
-
- main
|
6
|
-
- master
|
7
|
-
pull_request:
|
8
|
-
types:
|
9
|
-
- labeled
|
10
|
-
|
11
|
-
concurrency:
|
12
|
-
group: plan-release # only the latest one of these should ever be running
|
13
|
-
cancel-in-progress: true
|
14
|
-
|
15
|
-
jobs:
|
16
|
-
check-plan:
|
17
|
-
name: "Check Release Plan"
|
18
|
-
runs-on: ubuntu-latest
|
19
|
-
outputs:
|
20
|
-
command: ${{ steps.check-release.outputs.command }}
|
21
|
-
|
22
|
-
steps:
|
23
|
-
- uses: actions/checkout@v4
|
24
|
-
with:
|
25
|
-
fetch-depth: 0
|
26
|
-
ref: 'main'
|
27
|
-
# This will only cause the `check-plan` job to have a "command" of `release`
|
28
|
-
# when the .release-plan.json file was changed on the last commit.
|
29
|
-
- id: check-release
|
30
|
-
run: if git diff --name-only HEAD HEAD~1 | grep -w -q ".release-plan.json"; then echo "command=release"; fi >> $GITHUB_OUTPUT
|
31
|
-
|
32
|
-
prepare_release_notes:
|
33
|
-
name: Prepare Release Notes
|
34
|
-
runs-on: ubuntu-latest
|
35
|
-
timeout-minutes: 5
|
36
|
-
needs: check-plan
|
37
|
-
outputs:
|
38
|
-
explanation: ${{ steps.explanation.outputs.text }}
|
39
|
-
# only run on push event if plan wasn't updated (don't create a release plan when we're releasing)
|
40
|
-
# only run on labeled event if the PR has already been merged
|
41
|
-
if: (github.event_name == 'push' && needs.check-plan.outputs.command != 'release') || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
|
42
|
-
|
43
|
-
steps:
|
44
|
-
- uses: actions/checkout@v4
|
45
|
-
# We need to download lots of history so that
|
46
|
-
# lerna-changelog can discover what's changed since the last release
|
47
|
-
with:
|
48
|
-
fetch-depth: 0
|
49
|
-
- uses: actions/setup-node@v4
|
50
|
-
with:
|
51
|
-
node-version: 18
|
52
|
-
|
53
|
-
- uses: pnpm/action-setup@v2
|
54
|
-
with:
|
55
|
-
version: 8
|
56
|
-
- run: pnpm install --frozen-lockfile
|
57
|
-
|
58
|
-
- name: "Generate Explanation and Prep Changelogs"
|
59
|
-
id: explanation
|
60
|
-
run: |
|
61
|
-
set -x
|
62
|
-
|
63
|
-
pnpm release-plan prepare --singlePackage=ember-inspector
|
64
|
-
|
65
|
-
echo 'text<<EOF' >> $GITHUB_OUTPUT
|
66
|
-
jq .description .release-plan.json -r >> $GITHUB_OUTPUT
|
67
|
-
echo 'EOF' >> $GITHUB_OUTPUT
|
68
|
-
env:
|
69
|
-
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}
|
70
|
-
|
71
|
-
- uses: peter-evans/create-pull-request@v5
|
72
|
-
with:
|
73
|
-
commit-message: "Prepare Release using 'release-plan'"
|
74
|
-
author: "github-actions[bot] <github-actions-bot@users.noreply.github.com>"
|
75
|
-
labels: "internal"
|
76
|
-
branch: release-preview
|
77
|
-
title: Prepare Release
|
78
|
-
body: |
|
79
|
-
This PR is a preview of the release that [release-plan](https://github.com/embroider-build/release-plan) has prepared. To release you should just merge this PR 👍
|
80
|
-
|
81
|
-
-----------------------------------------
|
82
|
-
|
83
|
-
${{ steps.explanation.outputs.text }}
|