@rindo/core 1.8.12
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/LICENSE.md +27 -0
- package/bin/rindo +22 -0
- package/build-conditionals/index.d.ts +2 -0
- package/build-conditionals/index.mjs +66 -0
- package/build-conditionals/package.json +6 -0
- package/compiler/index.js +2 -0
- package/compiler/package.json +6 -0
- package/compiler/rindo.js +6765 -0
- package/dist/cli/index.js +6068 -0
- package/dist/client/css-shim-14a9812e.js +656 -0
- package/dist/client/css-shim-69821662.js +658 -0
- package/dist/client/declarations/rindo.core.d.ts +1347 -0
- package/dist/client/dom-68c8fe31.js +139 -0
- package/dist/client/dom-af01458a.js +137 -0
- package/dist/client/index.js +2937 -0
- package/dist/client/index.mjs +2820 -0
- package/dist/client/polyfills/core-js.js +10 -0
- package/dist/client/polyfills/css-shim.js +656 -0
- package/dist/client/polyfills/dom.js +146 -0
- package/dist/client/polyfills/es5-html-element.js +18 -0
- package/dist/client/polyfills/index.js +35 -0
- package/dist/client/polyfills/promise.js +9 -0
- package/dist/client/polyfills/system.js +6 -0
- package/dist/client/shadow-css-6ef31c68.js +386 -0
- package/dist/client/shadow-css-8fd1a9e4.js +388 -0
- package/dist/compiler/app-core/app-es5-disabled.d.ts +2 -0
- package/dist/compiler/app-core/app-polyfills.d.ts +3 -0
- package/dist/compiler/app-core/build-conditionals.d.ts +6 -0
- package/dist/compiler/app-core/bundle-app-core.d.ts +6 -0
- package/dist/compiler/app-core/component-styles.d.ts +4 -0
- package/dist/compiler/app-core/format-component-runtime-meta.d.ts +4 -0
- package/dist/compiler/app-core/optimize-module.d.ts +7 -0
- package/dist/compiler/browser/build-conditionals-client.d.ts +3 -0
- package/dist/compiler/browser/compile-options.d.ts +12 -0
- package/dist/compiler/browser/compile.d.ts +2 -0
- package/dist/compiler/browser/create-compiler.d.ts +14 -0
- package/dist/compiler/browser/index.d.ts +11 -0
- package/dist/compiler/build/build-ctx.d.ts +74 -0
- package/dist/compiler/build/build-finish.d.ts +3 -0
- package/dist/compiler/build/build-hmr.d.ts +2 -0
- package/dist/compiler/build/build-results.d.ts +2 -0
- package/dist/compiler/build/build-stats.d.ts +3 -0
- package/dist/compiler/build/build.d.ts +2 -0
- package/dist/compiler/build/cache-stats.d.ts +4 -0
- package/dist/compiler/build/compiler-build-id.d.ts +6 -0
- package/dist/compiler/build/compiler-ctx.d.ts +44 -0
- package/dist/compiler/build/init-index-html.d.ts +2 -0
- package/dist/compiler/build/validate-files.d.ts +2 -0
- package/dist/compiler/build/write-build.d.ts +2 -0
- package/dist/compiler/cache.d.ts +22 -0
- package/dist/compiler/compiler.d.ts +27 -0
- package/dist/compiler/component-hydrate/bundle-hydrate-factory.d.ts +3 -0
- package/dist/compiler/component-hydrate/generate-hydrate-app.d.ts +2 -0
- package/dist/compiler/component-hydrate/hydrate-factory-closure.d.ts +2 -0
- package/dist/compiler/component-hydrate/update-to-hydrate-components.d.ts +2 -0
- package/dist/compiler/component-hydrate/write-hydrate-outputs.d.ts +3 -0
- package/dist/compiler/component-lazy/generate-cjs.d.ts +3 -0
- package/dist/compiler/component-lazy/generate-esm-browser.d.ts +3 -0
- package/dist/compiler/component-lazy/generate-esm.d.ts +3 -0
- package/dist/compiler/component-lazy/generate-lazy-app.d.ts +3 -0
- package/dist/compiler/component-lazy/generate-lazy-module.d.ts +4 -0
- package/dist/compiler/component-lazy/generate-system.d.ts +3 -0
- package/dist/compiler/component-lazy/update-to-lazy-component.d.ts +2 -0
- package/dist/compiler/component-lazy/write-lazy-entry-module.d.ts +2 -0
- package/dist/compiler/component-native/update-to-native-component.d.ts +2 -0
- package/dist/compiler/config/config-reload.d.ts +3 -0
- package/dist/compiler/config/config-utils.d.ts +4 -0
- package/dist/compiler/config/validate-config.d.ts +4 -0
- package/dist/compiler/config/validate-copy.d.ts +2 -0
- package/dist/compiler/config/validate-dev-server.d.ts +2 -0
- package/dist/compiler/config/validate-docs.d.ts +2 -0
- package/dist/compiler/config/validate-namespace.d.ts +3 -0
- package/dist/compiler/config/validate-output-stats.d.ts +2 -0
- package/dist/compiler/config/validate-outputs-angular.d.ts +2 -0
- package/dist/compiler/config/validate-outputs-custom.d.ts +2 -0
- package/dist/compiler/config/validate-outputs-dist-module.d.ts +2 -0
- package/dist/compiler/config/validate-outputs-dist.d.ts +2 -0
- package/dist/compiler/config/validate-outputs-hydrate-script.d.ts +2 -0
- package/dist/compiler/config/validate-outputs-www.d.ts +2 -0
- package/dist/compiler/config/validate-outputs.d.ts +2 -0
- package/dist/compiler/config/validate-paths.d.ts +2 -0
- package/dist/compiler/config/validate-plugins.d.ts +2 -0
- package/dist/compiler/config/validate-prerender.d.ts +2 -0
- package/dist/compiler/config/validate-rollup-config.d.ts +2 -0
- package/dist/compiler/config/validate-service-worker.d.ts +2 -0
- package/dist/compiler/config/validate-testing.d.ts +2 -0
- package/dist/compiler/config/validate-workers.d.ts +2 -0
- package/dist/compiler/copy/assets-copy-tasks.d.ts +3 -0
- package/dist/compiler/copy/hashed-copy.d.ts +2 -0
- package/dist/compiler/copy/local-copy-tasks.d.ts +3 -0
- package/dist/compiler/docs/constants.d.ts +2 -0
- package/dist/compiler/docs/custom/index.d.ts +2 -0
- package/dist/compiler/docs/docs.d.ts +2 -0
- package/dist/compiler/docs/generate-doc-data.d.ts +3 -0
- package/dist/compiler/docs/json/index.d.ts +3 -0
- package/dist/compiler/docs/readme/docs-util.d.ts +13 -0
- package/dist/compiler/docs/readme/index.d.ts +3 -0
- package/dist/compiler/docs/readme/markdown-css-props.d.ts +2 -0
- package/dist/compiler/docs/readme/markdown-dependencies.d.ts +2 -0
- package/dist/compiler/docs/readme/markdown-events.d.ts +2 -0
- package/dist/compiler/docs/readme/markdown-methods.d.ts +2 -0
- package/dist/compiler/docs/readme/markdown-props.d.ts +2 -0
- package/dist/compiler/docs/readme/markdown-slots.d.ts +2 -0
- package/dist/compiler/docs/readme/markdown-usage.d.ts +6 -0
- package/dist/compiler/docs/readme/output-docs.d.ts +3 -0
- package/dist/compiler/docs/style-docs.d.ts +2 -0
- package/dist/compiler/docs/vscode/index.d.ts +2 -0
- package/dist/compiler/entries/component-bundles.d.ts +3 -0
- package/dist/compiler/entries/component-graph.d.ts +2 -0
- package/dist/compiler/entries/default-bundles.d.ts +3 -0
- package/dist/compiler/entries/entry-modules.d.ts +6 -0
- package/dist/compiler/entries/resolve-component-dependencies.d.ts +2 -0
- package/dist/compiler/events.d.ts +15 -0
- package/dist/compiler/fs-watch/fs-watch-init.d.ts +2 -0
- package/dist/compiler/fs-watch/fs-watch-log.d.ts +2 -0
- package/dist/compiler/fs-watch/fs-watch-rebuild.d.ts +7 -0
- package/dist/compiler/html/inject-module-preloads.d.ts +3 -0
- package/dist/compiler/html/inject-sw-script.d.ts +4 -0
- package/dist/compiler/html/inline-esm-import.d.ts +2 -0
- package/dist/compiler/html/inline-style-sheets.d.ts +2 -0
- package/dist/compiler/html/update-global-styles-link.d.ts +2 -0
- package/dist/compiler/html/used-components.d.ts +2 -0
- package/dist/compiler/html/utils.d.ts +2 -0
- package/dist/compiler/html/validate-manifest-json.d.ts +2 -0
- package/dist/compiler/index.d.ts +10 -0
- package/dist/compiler/index.js +18008 -0
- package/dist/compiler/output-targets/empty-dir.d.ts +6 -0
- package/dist/compiler/output-targets/index.d.ts +2 -0
- package/dist/compiler/output-targets/output-angular.d.ts +4 -0
- package/dist/compiler/output-targets/output-app.d.ts +4 -0
- package/dist/compiler/output-targets/output-collection.d.ts +3 -0
- package/dist/compiler/output-targets/output-copy.d.ts +2 -0
- package/dist/compiler/output-targets/output-custom.d.ts +2 -0
- package/dist/compiler/output-targets/output-docs.d.ts +2 -0
- package/dist/compiler/output-targets/output-hydrate.d.ts +2 -0
- package/dist/compiler/output-targets/output-lazy-loader.d.ts +2 -0
- package/dist/compiler/output-targets/output-module.d.ts +4 -0
- package/dist/compiler/output-targets/output-prerender.d.ts +2 -0
- package/dist/compiler/output-targets/output-service-workers.d.ts +2 -0
- package/dist/compiler/output-targets/output-types.d.ts +2 -0
- package/dist/compiler/output-targets/output-utils.d.ts +54 -0
- package/dist/compiler/output-targets/output-www.d.ts +2 -0
- package/dist/compiler/plugin/plugin.d.ts +6 -0
- package/dist/compiler/polyfills.d.ts +0 -0
- package/dist/compiler/prerender/crawl-urls.d.ts +3 -0
- package/dist/compiler/prerender/host-config.d.ts +12 -0
- package/dist/compiler/prerender/prerender-config.d.ts +2 -0
- package/dist/compiler/prerender/prerender-main.d.ts +2 -0
- package/dist/compiler/prerender/prerender-queue.d.ts +3 -0
- package/dist/compiler/prerender/prerender-template-html.d.ts +2 -0
- package/dist/compiler/prerender/prerendered-write-path.d.ts +2 -0
- package/dist/compiler/prerender/robots-txt.d.ts +2 -0
- package/dist/compiler/prerender/sitemap-xml.d.ts +3 -0
- package/dist/compiler/rollup-plugins/component-entry.d.ts +3 -0
- package/dist/compiler/rollup-plugins/css-transformer.d.ts +3 -0
- package/dist/compiler/rollup-plugins/global-scripts.d.ts +4 -0
- package/dist/compiler/rollup-plugins/image-plugin.d.ts +3 -0
- package/dist/compiler/rollup-plugins/in-memory-fs-read.d.ts +3 -0
- package/dist/compiler/rollup-plugins/loader.d.ts +4 -0
- package/dist/compiler/rollup-plugins/plugin-helper.d.ts +5 -0
- package/dist/compiler/rollup-plugins/rindo-build-conditionals.d.ts +7 -0
- package/dist/compiler/rollup-plugins/rindo-client.d.ts +3 -0
- package/dist/compiler/rollup-plugins/rindo-external-runtime.d.ts +2 -0
- package/dist/compiler/rollup-plugins/rindo-hydrate.d.ts +3 -0
- package/dist/compiler/rollup-plugins/rindo-public-plugin.d.ts +2 -0
- package/dist/compiler/service-worker/generate-sw.d.ts +7 -0
- package/dist/compiler/service-worker/service-worker-util.d.ts +2 -0
- package/dist/compiler/style/cached-styles.d.ts +5 -0
- package/dist/compiler/style/component-styles.d.ts +2 -0
- package/dist/compiler/style/css-imports.d.ts +9 -0
- package/dist/compiler/style/css-to-esm.d.ts +5 -0
- package/dist/compiler/style/generate-styles.d.ts +2 -0
- package/dist/compiler/style/global-styles.d.ts +3 -0
- package/dist/compiler/style/normalize-styles.d.ts +2 -0
- package/dist/compiler/style/optimize-css.d.ts +2 -0
- package/dist/compiler/style/scope-css.d.ts +3 -0
- package/dist/compiler/style/style-utils.d.ts +10 -0
- package/dist/compiler/transformers/add-component-meta-proxy.d.ts +3 -0
- package/dist/compiler/transformers/add-component-meta-static.d.ts +4 -0
- package/dist/compiler/transformers/add-imports.d.ts +3 -0
- package/dist/compiler/transformers/collections/add-external-import.d.ts +2 -0
- package/dist/compiler/transformers/collections/parse-collection-components.d.ts +2 -0
- package/dist/compiler/transformers/collections/parse-collection-deprecated.d.ts +2 -0
- package/dist/compiler/transformers/collections/parse-collection-manifest.d.ts +7 -0
- package/dist/compiler/transformers/collections/parse-collection-module.d.ts +2 -0
- package/dist/compiler/transformers/component-build-conditionals.d.ts +2 -0
- package/dist/compiler/transformers/component-hydrate/hydrate-component.d.ts +3 -0
- package/dist/compiler/transformers/component-hydrate/hydrate-runtime-cmp-meta.d.ts +3 -0
- package/dist/compiler/transformers/component-hydrate/tranform-to-hydrate-component.d.ts +2 -0
- package/dist/compiler/transformers/component-lazy/lazy-component.d.ts +3 -0
- package/dist/compiler/transformers/component-lazy/lazy-constructor.d.ts +3 -0
- package/dist/compiler/transformers/component-lazy/lazy-element-getter.d.ts +3 -0
- package/dist/compiler/transformers/component-lazy/transform-lazy-component.d.ts +4 -0
- package/dist/compiler/transformers/component-native/native-component.d.ts +3 -0
- package/dist/compiler/transformers/component-native/native-connected-callback.d.ts +3 -0
- package/dist/compiler/transformers/component-native/native-constructor.d.ts +3 -0
- package/dist/compiler/transformers/component-native/native-element-getter.d.ts +3 -0
- package/dist/compiler/transformers/component-native/native-static-style.d.ts +3 -0
- package/dist/compiler/transformers/component-native/tranform-to-native-component.d.ts +4 -0
- package/dist/compiler/transformers/core-runtime-apis.d.ts +30 -0
- package/dist/compiler/transformers/create-event.d.ts +3 -0
- package/dist/compiler/transformers/decorators-to-static/component-decorator.d.ts +3 -0
- package/dist/compiler/transformers/decorators-to-static/convert-decorators.d.ts +3 -0
- package/dist/compiler/transformers/decorators-to-static/decorator-utils.d.ts +10 -0
- package/dist/compiler/transformers/decorators-to-static/element-decorator.d.ts +3 -0
- package/dist/compiler/transformers/decorators-to-static/event-decorator.d.ts +4 -0
- package/dist/compiler/transformers/decorators-to-static/listen-decorator.d.ts +6 -0
- package/dist/compiler/transformers/decorators-to-static/method-decorator.d.ts +3 -0
- package/dist/compiler/transformers/decorators-to-static/prop-decorator.d.ts +4 -0
- package/dist/compiler/transformers/decorators-to-static/state-decorator.d.ts +3 -0
- package/dist/compiler/transformers/decorators-to-static/style-to-static.d.ts +3 -0
- package/dist/compiler/transformers/decorators-to-static/watch-decorator.d.ts +3 -0
- package/dist/compiler/transformers/define-custom-element.d.ts +3 -0
- package/dist/compiler/transformers/host-data-transform.d.ts +3 -0
- package/dist/compiler/transformers/legacy-props.d.ts +3 -0
- package/dist/compiler/transformers/remove-static-meta-properties.d.ts +2 -0
- package/dist/compiler/transformers/reserved-public-members.d.ts +3 -0
- package/dist/compiler/transformers/rindo-import-path.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/call-expression.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/class-methods.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/component.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/element-ref.d.ts +2 -0
- package/dist/compiler/transformers/static-to-meta/encapsulation.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/events.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/import.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/listeners.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/methods.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/props.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/states.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/string-literal.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/styles.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/vdom.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/visitor.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/watchers.d.ts +3 -0
- package/dist/compiler/transformers/style-imports.d.ts +3 -0
- package/dist/compiler/transformers/transform-utils.d.ts +31 -0
- package/dist/compiler/transformers/update-component-class.d.ts +3 -0
- package/dist/compiler/transformers/update-rindo-core-import.d.ts +3 -0
- package/dist/compiler/transformers/watcher-meta-transform.d.ts +3 -0
- package/dist/compiler/transpile/compiler-options.d.ts +4 -0
- package/dist/compiler/transpile/transpile-app.d.ts +2 -0
- package/dist/compiler/transpile/transpile-module.d.ts +5 -0
- package/dist/compiler/transpile/transpile-service.d.ts +3 -0
- package/dist/compiler/transpile/transpile-to-es5-main.d.ts +2 -0
- package/dist/compiler/transpile/validate-types-main.d.ts +2 -0
- package/dist/compiler/types/generate-app-types.d.ts +2 -0
- package/dist/compiler/types/generate-component-types.d.ts +8 -0
- package/dist/compiler/types/generate-event-types.d.ts +2 -0
- package/dist/compiler/types/generate-method-types.d.ts +2 -0
- package/dist/compiler/types/generate-prop-types.d.ts +2 -0
- package/dist/compiler/types/generate-types.d.ts +2 -0
- package/dist/compiler/types/rindo-types.d.ts +3 -0
- package/dist/compiler/types/types-utils.d.ts +4 -0
- package/dist/compiler/types/update-import-refs.d.ts +11 -0
- package/dist/compiler/types/validate-package-json.d.ts +9 -0
- package/dist/declarations/assets.d.ts +17 -0
- package/dist/declarations/browser-compile.d.ts +47 -0
- package/dist/declarations/build-conditionals.d.ts +91 -0
- package/dist/declarations/build-events.d.ts +19 -0
- package/dist/declarations/build.d.ts +247 -0
- package/dist/declarations/cache.d.ts +11 -0
- package/dist/declarations/collection-manifest.d.ts +106 -0
- package/dist/declarations/collection.d.ts +139 -0
- package/dist/declarations/compiler.d.ts +53 -0
- package/dist/declarations/component-compiler-meta.d.ts +198 -0
- package/dist/declarations/component-constructor.d.ts +61 -0
- package/dist/declarations/component-interfaces.d.ts +123 -0
- package/dist/declarations/config.d.ts +409 -0
- package/dist/declarations/css-var-shim.d.ts +9 -0
- package/dist/declarations/decorators.d.ts +150 -0
- package/dist/declarations/dev-server.d.ts +135 -0
- package/dist/declarations/diagnostics.d.ts +21 -0
- package/dist/declarations/docs.d.ts +101 -0
- package/dist/declarations/entry.d.ts +28 -0
- package/dist/declarations/events.d.ts +13 -0
- package/dist/declarations/file-system.d.ts +91 -0
- package/dist/declarations/fs-watch.d.ts +15 -0
- package/dist/declarations/host-element.d.ts +53 -0
- package/dist/declarations/hydrate.d.ts +99 -0
- package/dist/declarations/in-memory-fs.d.ts +59 -0
- package/dist/declarations/index.d.ts +45 -0
- package/dist/declarations/jsdoc.d.ts +16 -0
- package/dist/declarations/jsx.d.ts +1050 -0
- package/dist/declarations/logger.d.ts +25 -0
- package/dist/declarations/minify-js.d.ts +11 -0
- package/dist/declarations/module.d.ts +35 -0
- package/dist/declarations/optimize-css.d.ts +12 -0
- package/dist/declarations/output-targets.d.ts +189 -0
- package/dist/declarations/plugin.d.ts +23 -0
- package/dist/declarations/prerender.d.ts +79 -0
- package/dist/declarations/render.d.ts +62 -0
- package/dist/declarations/runtime.d.ts +92 -0
- package/dist/declarations/screenshots.d.ts +192 -0
- package/dist/declarations/server.d.ts +19 -0
- package/dist/declarations/style.d.ts +35 -0
- package/dist/declarations/system.d.ts +174 -0
- package/dist/declarations/testing.d.ts +523 -0
- package/dist/declarations/transpile.d.ts +24 -0
- package/dist/declarations/types.d.ts +24 -0
- package/dist/declarations/vdom.d.ts +55 -0
- package/dist/declarations/worker.d.ts +33 -0
- package/dist/dev-server/content-type-db.json +1 -0
- package/dist/dev-server/index.js +887 -0
- package/dist/dev-server/static/app-error.css +257 -0
- package/dist/dev-server/static/dev-server-client.html +13 -0
- package/dist/dev-server/static/favicon.ico +0 -0
- package/dist/dev-server/templates/directory-index.html +132 -0
- package/dist/dev-server/templates/initial-load.html +160 -0
- package/dist/hydrate/index.d.ts +101 -0
- package/dist/hydrate/index.mjs +1281 -0
- package/dist/hydrate/platform.mjs +347 -0
- package/dist/index.d.ts +99 -0
- package/dist/index.js +1 -0
- package/dist/mock-doc/index.d.ts +851 -0
- package/dist/mock-doc/index.js +3982 -0
- package/dist/mock-doc/index.mjs +3954 -0
- package/dist/runtime/index.js +2576 -0
- package/dist/runtime/index.mjs +2521 -0
- package/dist/runtime/shadow-css-6ef31c68.js +386 -0
- package/dist/runtime/shadow-css-8fd1a9e4.js +388 -0
- package/dist/screenshot/connector-base.d.ts +42 -0
- package/dist/screenshot/connector-local.d.ts +7 -0
- package/dist/screenshot/index.d.ts +3 -0
- package/dist/screenshot/index.js +520 -0
- package/dist/screenshot/pixel-match.d.ts +1 -0
- package/dist/screenshot/screenshot-fs.d.ts +15 -0
- package/dist/sys/node/graceful-fs.js +975 -0
- package/dist/sys/node/index.js +33545 -0
- package/dist/sys/node/node-fetch.js +1779 -0
- package/dist/sys/node/open-in-editor.js +734 -0
- package/dist/sys/node/sys-worker.js +67035 -0
- package/dist/sys/node/visualstudio.vbs +82 -0
- package/dist/sys/node/websocket.js +3728 -0
- package/dist/sys/node/xdg-open +1066 -0
- package/dist/testing/build-conditionals.d.ts +4 -0
- package/dist/testing/build-conditionals.js +43 -0
- package/dist/testing/core.d.ts +35 -0
- package/dist/testing/core.js +52 -0
- package/dist/testing/index.d.ts +13 -0
- package/dist/testing/index.js +40511 -0
- package/dist/testing/jest/jest-config.d.ts +4 -0
- package/dist/testing/jest/jest-environment.d.ts +12 -0
- package/dist/testing/jest/jest-preprocessor.d.ts +10 -0
- package/dist/testing/jest/jest-runner.d.ts +5 -0
- package/dist/testing/jest/jest-screenshot.d.ts +2 -0
- package/dist/testing/jest/jest-serializer.d.ts +5 -0
- package/dist/testing/jest/jest-setup-test-framework.d.ts +1 -0
- package/dist/testing/matchers/attributes.d.ts +14 -0
- package/dist/testing/matchers/class-list.d.ts +12 -0
- package/dist/testing/matchers/events.d.ts +13 -0
- package/dist/testing/matchers/html.d.ts +12 -0
- package/dist/testing/matchers/index.d.ts +21 -0
- package/dist/testing/matchers/screenshot.d.ts +5 -0
- package/dist/testing/matchers/text.d.ts +4 -0
- package/dist/testing/mock-fetch.d.ts +46 -0
- package/dist/testing/mocks.d.ts +12 -0
- package/dist/testing/platform.d.ts +23 -0
- package/dist/testing/platform.js +321 -0
- package/dist/testing/puppeteer/puppeteer-browser.d.ts +6 -0
- package/dist/testing/puppeteer/puppeteer-declarations.d.ts +396 -0
- package/dist/testing/puppeteer/puppeteer-element.d.ts +65 -0
- package/dist/testing/puppeteer/puppeteer-emulate.d.ts +2 -0
- package/dist/testing/puppeteer/puppeteer-events.d.ts +21 -0
- package/dist/testing/puppeteer/puppeteer-find.d.ts +5 -0
- package/dist/testing/puppeteer/puppeteer-page.d.ts +2 -0
- package/dist/testing/puppeteer/puppeteer-screenshot.d.ts +4 -0
- package/dist/testing/spec-page.d.ts +5 -0
- package/dist/testing/task-queue.d.ts +15 -0
- package/dist/testing/test-transpile.d.ts +5 -0
- package/dist/testing/testing-fs.d.ts +31 -0
- package/dist/testing/testing-logger.d.ts +23 -0
- package/dist/testing/testing-sys.d.ts +19 -0
- package/dist/testing/testing-utils.d.ts +5 -0
- package/dist/testing/testing.d.ts +12 -0
- package/dist/utils/index.js +1575 -0
- package/dist/utils/index.mjs +1511 -0
- package/internal/client/build-conditionals.mjs +82 -0
- package/internal/client/css-shim.rindo-client.mjs +656 -0
- package/internal/client/dom.rindo-client.mjs +137 -0
- package/internal/client/index.mjs +2859 -0
- package/internal/client/polyfills/core-js.js +10 -0
- package/internal/client/polyfills/css-shim.js +656 -0
- package/internal/client/polyfills/dom.js +146 -0
- package/internal/client/polyfills/es5-html-element.js +18 -0
- package/internal/client/polyfills/index.js +35 -0
- package/internal/client/polyfills/promise.js +9 -0
- package/internal/client/polyfills/system.js +6 -0
- package/internal/client/shadow-css.rindo-client.mjs +386 -0
- package/internal/images.d.ts +5 -0
- package/internal/index.d.ts +18 -0
- package/internal/index.js +1 -0
- package/internal/package.json +6 -0
- package/mock-doc/index.js +2 -0
- package/mock-doc/package.json +10 -0
- package/package.json +186 -0
- package/readme.md +174 -0
- package/runtime/package.json +5 -0
- package/screenshot/compare/assets/favicon.ico +0 -0
- package/screenshot/compare/assets/logo.png +0 -0
- package/screenshot/compare/build/app.css +1 -0
- package/screenshot/compare/build/app.esm.js +1 -0
- package/screenshot/compare/build/app.js +818 -0
- package/screenshot/compare/build/p-020f8d73.js +1 -0
- package/screenshot/compare/build/p-09qdknbg.system.entry.js +1 -0
- package/screenshot/compare/build/p-0a13mpsc.system.entry.js +1 -0
- package/screenshot/compare/build/p-113f7459.js +1 -0
- package/screenshot/compare/build/p-168ec2c4.system.js +1 -0
- package/screenshot/compare/build/p-2ab1fdf1.system.js +1 -0
- package/screenshot/compare/build/p-2pxcsgrj.entry.js +1 -0
- package/screenshot/compare/build/p-42fb7034.system.js +1 -0
- package/screenshot/compare/build/p-54d9d7c2.system.js +1 -0
- package/screenshot/compare/build/p-67c1f911.js +1 -0
- package/screenshot/compare/build/p-68613371.system.js +1 -0
- package/screenshot/compare/build/p-7dvsjpu0.entry.js +1 -0
- package/screenshot/compare/build/p-aa67fb06.js +1 -0
- package/screenshot/compare/build/p-aeb3cec1.system.js +1 -0
- package/screenshot/compare/build/p-b6e44a24.js +1 -0
- package/screenshot/compare/build/p-c1c25b8a.js +1 -0
- package/screenshot/compare/build/p-c9bopbjy.system.entry.js +1 -0
- package/screenshot/compare/build/p-c9iqz1pp.system.entry.js +1 -0
- package/screenshot/compare/build/p-dizjz8rg.entry.js +1 -0
- package/screenshot/compare/build/p-dnta0rwp.system.entry.js +1 -0
- package/screenshot/compare/build/p-e9670d22.system.js +1 -0
- package/screenshot/compare/build/p-efb0eac6.js +1 -0
- package/screenshot/compare/build/p-ei9jkpd0.system.entry.js +1 -0
- package/screenshot/compare/build/p-ejpsp3kx.js +1 -0
- package/screenshot/compare/build/p-ejwcppol.entry.js +1 -0
- package/screenshot/compare/build/p-f6612d5d.system.js +1 -0
- package/screenshot/compare/build/p-foiivsfc.css +1 -0
- package/screenshot/compare/build/p-gpjjyogx.entry.js +1 -0
- package/screenshot/compare/build/p-howklem2.system.entry.js +1 -0
- package/screenshot/compare/build/p-knv9wvoc.entry.js +1 -0
- package/screenshot/compare/build/p-nsqsfhhy.entry.js +1 -0
- package/screenshot/compare/build/p-ojt278pp.entry.js +1 -0
- package/screenshot/compare/build/p-oywass99.entry.js +1 -0
- package/screenshot/compare/build/p-q3ujhub6.entry.js +1 -0
- package/screenshot/compare/build/p-qw4xnmxv.entry.js +1 -0
- package/screenshot/compare/build/p-t1wvevhc.system.entry.js +1 -0
- package/screenshot/compare/build/p-tnjarrex.system.entry.js +1 -0
- package/screenshot/compare/build/p-vhfpd6kk.system.entry.js +1 -0
- package/screenshot/compare/build/p-vk6rhemd.system.entry.js +1 -0
- package/screenshot/compare/build/p-w6bnm16k.entry.js +1 -0
- package/screenshot/compare/build/p-xje6d7zl.system.entry.js +1 -0
- package/screenshot/compare/build/p-y5jlrcha.system.entry.js +1 -0
- package/screenshot/compare/build/p-yh170wkt.entry.js +1 -0
- package/screenshot/compare/host.config.json +15 -0
- package/screenshot/compare/index.html +1 -0
- package/screenshot/compare/manifest.json +13 -0
- package/screenshot/connector.js +3 -0
- package/screenshot/index.js +2 -0
- package/screenshot/local-connector.js +3 -0
- package/screenshot/package.json +13 -0
- package/screenshot/pixel-match.js +2660 -0
- package/sys/node/index.js +2 -0
- package/sys/node/package.json +5 -0
- package/testing/index.js +2 -0
- package/testing/jest-environment.js +3 -0
- package/testing/jest-preprocessor.js +3 -0
- package/testing/jest-preset.js +40 -0
- package/testing/jest-runner.js +3 -0
- package/testing/jest-setuptestframework.js +3 -0
- package/testing/jest.preprocessor.js +7 -0
- package/testing/package.json +6 -0
|
@@ -0,0 +1,734 @@
|
|
|
1
|
+
(function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap
|
|
2
|
+
/******/ // The module cache
|
|
3
|
+
/******/ var installedModules = {};
|
|
4
|
+
/******/
|
|
5
|
+
/******/ // The require function
|
|
6
|
+
/******/ function __webpack_require__(moduleId) {
|
|
7
|
+
/******/
|
|
8
|
+
/******/ // Check if module is in cache
|
|
9
|
+
/******/ if(installedModules[moduleId]) {
|
|
10
|
+
/******/ return installedModules[moduleId].exports;
|
|
11
|
+
/******/ }
|
|
12
|
+
/******/ // Create a new module (and put it into the cache)
|
|
13
|
+
/******/ var module = installedModules[moduleId] = {
|
|
14
|
+
/******/ i: moduleId,
|
|
15
|
+
/******/ l: false,
|
|
16
|
+
/******/ exports: {}
|
|
17
|
+
/******/ };
|
|
18
|
+
/******/
|
|
19
|
+
/******/ // Execute the module function
|
|
20
|
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
21
|
+
/******/
|
|
22
|
+
/******/ // Flag the module as loaded
|
|
23
|
+
/******/ module.l = true;
|
|
24
|
+
/******/
|
|
25
|
+
/******/ // Return the exports of the module
|
|
26
|
+
/******/ return module.exports;
|
|
27
|
+
/******/ }
|
|
28
|
+
/******/
|
|
29
|
+
/******/
|
|
30
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
31
|
+
/******/ __webpack_require__.m = modules;
|
|
32
|
+
/******/
|
|
33
|
+
/******/ // expose the module cache
|
|
34
|
+
/******/ __webpack_require__.c = installedModules;
|
|
35
|
+
/******/
|
|
36
|
+
/******/ // define getter function for harmony exports
|
|
37
|
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
38
|
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
39
|
+
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
40
|
+
/******/ }
|
|
41
|
+
/******/ };
|
|
42
|
+
/******/
|
|
43
|
+
/******/ // define __esModule on exports
|
|
44
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
45
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
46
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
47
|
+
/******/ }
|
|
48
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
49
|
+
/******/ };
|
|
50
|
+
/******/
|
|
51
|
+
/******/ // create a fake namespace object
|
|
52
|
+
/******/ // mode & 1: value is a module id, require it
|
|
53
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
|
54
|
+
/******/ // mode & 4: return value when already ns object
|
|
55
|
+
/******/ // mode & 8|1: behave like require
|
|
56
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
|
57
|
+
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
58
|
+
/******/ if(mode & 8) return value;
|
|
59
|
+
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
60
|
+
/******/ var ns = Object.create(null);
|
|
61
|
+
/******/ __webpack_require__.r(ns);
|
|
62
|
+
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
63
|
+
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
64
|
+
/******/ return ns;
|
|
65
|
+
/******/ };
|
|
66
|
+
/******/
|
|
67
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
68
|
+
/******/ __webpack_require__.n = function(module) {
|
|
69
|
+
/******/ var getter = module && module.__esModule ?
|
|
70
|
+
/******/ function getDefault() { return module['default']; } :
|
|
71
|
+
/******/ function getModuleExports() { return module; };
|
|
72
|
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
73
|
+
/******/ return getter;
|
|
74
|
+
/******/ };
|
|
75
|
+
/******/
|
|
76
|
+
/******/ // Object.prototype.hasOwnProperty.call
|
|
77
|
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
78
|
+
/******/
|
|
79
|
+
/******/ // __webpack_public_path__
|
|
80
|
+
/******/ __webpack_require__.p = "";
|
|
81
|
+
/******/
|
|
82
|
+
/******/
|
|
83
|
+
/******/ // Load entry module and return exports
|
|
84
|
+
/******/ return __webpack_require__(__webpack_require__.s = 9);
|
|
85
|
+
/******/ })
|
|
86
|
+
/************************************************************************/
|
|
87
|
+
/******/ ([
|
|
88
|
+
/* 0 */
|
|
89
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
90
|
+
|
|
91
|
+
var osHomeDir = __webpack_require__(11)();
|
|
92
|
+
var path = __webpack_require__(3);
|
|
93
|
+
|
|
94
|
+
module.exports = {
|
|
95
|
+
number: function(value, fallback) {
|
|
96
|
+
return isNaN(value) ? fallback : value;
|
|
97
|
+
},
|
|
98
|
+
quote: function(value, escapeQuotes) {
|
|
99
|
+
value = String(value)
|
|
100
|
+
.replace(/\\/g, '\\\\')
|
|
101
|
+
.replace(/"/g, '\"');
|
|
102
|
+
|
|
103
|
+
return escapeQuotes ?
|
|
104
|
+
'\\"' + value + '\\"' :
|
|
105
|
+
'"' + value + '"';
|
|
106
|
+
},
|
|
107
|
+
extractFilename: function(filename) {
|
|
108
|
+
var parts = filename.match(/^(.+?)((?::\d+){0,4})$/);
|
|
109
|
+
var segment = parts[2].split(':').slice(1);
|
|
110
|
+
|
|
111
|
+
return {
|
|
112
|
+
filename: parts[1],
|
|
113
|
+
line: parseInt(segment[0] || 0, 10),
|
|
114
|
+
column: parseInt(segment[1] || 0, 10)
|
|
115
|
+
};
|
|
116
|
+
},
|
|
117
|
+
fail: function(msg) {
|
|
118
|
+
console.error(String(msg).trimRight());
|
|
119
|
+
process.exit(2);
|
|
120
|
+
},
|
|
121
|
+
atHomeDir: function(filename) {
|
|
122
|
+
return path.join(osHomeDir, filename);
|
|
123
|
+
},
|
|
124
|
+
any: function(promises, err) {
|
|
125
|
+
return new Promise(function(resolve, reject) {
|
|
126
|
+
Promise.all(promises.map(function(item) {
|
|
127
|
+
if (item && typeof item.then == 'function') {
|
|
128
|
+
return item.then(
|
|
129
|
+
resolve, // any success resolves the main promise immediately
|
|
130
|
+
function() { /* ignore any reject */ }
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
return item;
|
|
135
|
+
})).then(function(results) {
|
|
136
|
+
reject(err);
|
|
137
|
+
}, reject);
|
|
138
|
+
});
|
|
139
|
+
},
|
|
140
|
+
append: function(str, appendix) {
|
|
141
|
+
return String(str).replace(/\s*$/, (str ? ' ' : '') + appendix);
|
|
142
|
+
},
|
|
143
|
+
assign: function(dest, src) {
|
|
144
|
+
for (var key in src) {
|
|
145
|
+
if (Object.prototype.hasOwnProperty.call(src, key)) {
|
|
146
|
+
dest[key] = src[key];
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
return dest;
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
/***/ }),
|
|
156
|
+
/* 1 */
|
|
157
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
158
|
+
|
|
159
|
+
var exec = __webpack_require__(6).exec;
|
|
160
|
+
var number = __webpack_require__(0).number;
|
|
161
|
+
var quote = __webpack_require__(0).quote;
|
|
162
|
+
var extractFilename = __webpack_require__(0).extractFilename;
|
|
163
|
+
var append = __webpack_require__(0).append;
|
|
164
|
+
|
|
165
|
+
function makeArguments(filename, settings) {
|
|
166
|
+
var info = extractFilename(filename);
|
|
167
|
+
var pattern = settings.pattern || '';
|
|
168
|
+
var values = {
|
|
169
|
+
projectPath: process.env.PROJECT_PATH || process.PWD || process.cwd(),
|
|
170
|
+
line: info.line + number(settings.line, 1),
|
|
171
|
+
column: info.column + number(settings.column, 1)
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
if (!/\{filename\}/.test(pattern)) {
|
|
175
|
+
pattern = append(pattern, '{filename}:{line}:{column}');
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
return pattern
|
|
179
|
+
.replace(
|
|
180
|
+
new RegExp('\\{(' + Object.keys(values).join('|') + ')\\}', 'g'),
|
|
181
|
+
function(m, name) {
|
|
182
|
+
return values[name];
|
|
183
|
+
}
|
|
184
|
+
)
|
|
185
|
+
// replace `{filename}` and adjoined right string for quoted filename,
|
|
186
|
+
// since filename can have spaces
|
|
187
|
+
//
|
|
188
|
+
// {filename} --line 1 --column 2
|
|
189
|
+
// => "filename" --line 1 --column 2
|
|
190
|
+
//
|
|
191
|
+
// {filename}:1:2
|
|
192
|
+
// => "filename:1:2"
|
|
193
|
+
//
|
|
194
|
+
.replace(/\{filename\}(\S*)/, function(m, rest) {
|
|
195
|
+
return quote(info.filename + rest, settings.escapeQuotes);
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
function open(cmd, filename, settings) {
|
|
200
|
+
return new Promise(function(resolve, reject) {
|
|
201
|
+
var args;
|
|
202
|
+
|
|
203
|
+
settings = settings || {};
|
|
204
|
+
args = makeArguments(filename, settings);
|
|
205
|
+
cmd = settings.patternOnly ? args : append(quote(cmd), args);
|
|
206
|
+
|
|
207
|
+
exec(cmd, function(err) {
|
|
208
|
+
if (err) {
|
|
209
|
+
reject(err);
|
|
210
|
+
} else {
|
|
211
|
+
resolve();
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
module.exports = open;
|
|
218
|
+
module.exports.factory = function(cmd, settings) {
|
|
219
|
+
return function openInEditor(filename) {
|
|
220
|
+
return open(cmd, filename, settings);
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
module.exports.detectAndOpenFactory = function(detect, settings) {
|
|
225
|
+
return function openInEditor(filename) {
|
|
226
|
+
return detect().then(function(cmd) {
|
|
227
|
+
open(cmd, filename, settings);
|
|
228
|
+
});
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
/***/ }),
|
|
234
|
+
/* 2 */
|
|
235
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
236
|
+
|
|
237
|
+
var check = __webpack_require__(14);
|
|
238
|
+
var any = __webpack_require__(0).any;
|
|
239
|
+
|
|
240
|
+
function detect(name, commands, args, locations) {
|
|
241
|
+
function run(task) {
|
|
242
|
+
return this(task, name, args);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
locations = locations[process.platform] || [];
|
|
246
|
+
|
|
247
|
+
return any(
|
|
248
|
+
[].concat(
|
|
249
|
+
commands.map(run, check.command),
|
|
250
|
+
locations.map(run, check.path)
|
|
251
|
+
),
|
|
252
|
+
'Not detected'
|
|
253
|
+
);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
module.exports = detect;
|
|
257
|
+
module.exports.lazy = function(name, commands, args, locations) {
|
|
258
|
+
var memo;
|
|
259
|
+
|
|
260
|
+
return function() {
|
|
261
|
+
if (!memo) {
|
|
262
|
+
memo = detect(name, commands, args, locations);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
return memo;
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
module.exports.platformSupport = function(platforms, editor, resolveValue) {
|
|
269
|
+
return function() {
|
|
270
|
+
// we use only system parts so we haven't to check anything except os
|
|
271
|
+
if (platforms.indexOf(process.platform) !== -1) {
|
|
272
|
+
return Promise.resolve(resolveValue);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
return Promise.reject('"Open in ' + editor + '" does not implemented for your platform (' + process.platform + ')');
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
/***/ }),
|
|
281
|
+
/* 3 */
|
|
282
|
+
/***/ (function(module, exports) {
|
|
283
|
+
|
|
284
|
+
module.exports = require("path");
|
|
285
|
+
|
|
286
|
+
/***/ }),
|
|
287
|
+
/* 4 */
|
|
288
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
289
|
+
|
|
290
|
+
var fs = __webpack_require__(7);
|
|
291
|
+
var path = __webpack_require__(3);
|
|
292
|
+
var lazyDetect = __webpack_require__(2).lazy;
|
|
293
|
+
|
|
294
|
+
var settings = {
|
|
295
|
+
pattern: '{projectPath} --line {line} {filename}'
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
var winDirs = (function() {
|
|
299
|
+
var jetbrainsFolder = 'c:/Program Files (x86)/JetBrains/';
|
|
300
|
+
|
|
301
|
+
if (!fs.existsSync(jetbrainsFolder)) {
|
|
302
|
+
return [];
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
return fs.readdirSync(jetbrainsFolder)
|
|
306
|
+
.map(function(name) {
|
|
307
|
+
return path.join(jetbrainsFolder, name);
|
|
308
|
+
})
|
|
309
|
+
.filter(function(path) {
|
|
310
|
+
return fs.statSync(path).isDirectory();
|
|
311
|
+
});
|
|
312
|
+
})();
|
|
313
|
+
|
|
314
|
+
module.exports = function(config) {
|
|
315
|
+
var detect = lazyDetect(config.name, [], '', {
|
|
316
|
+
darwin: [
|
|
317
|
+
'/Applications/' + config.appFolder + '.app/Contents/MacOS/' + config.executable
|
|
318
|
+
],
|
|
319
|
+
win32: winDirs.map(function(dir) {
|
|
320
|
+
return dir + '/bin/' + config.executable + '.exe';
|
|
321
|
+
})
|
|
322
|
+
});
|
|
323
|
+
var open = __webpack_require__(1).detectAndOpenFactory(detect, settings);
|
|
324
|
+
|
|
325
|
+
return {
|
|
326
|
+
settings: settings,
|
|
327
|
+
detect: detect,
|
|
328
|
+
open: open
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
/***/ }),
|
|
334
|
+
/* 5 */
|
|
335
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
336
|
+
|
|
337
|
+
module.exports = {
|
|
338
|
+
atom: __webpack_require__(13),
|
|
339
|
+
code: __webpack_require__(15),
|
|
340
|
+
sublime: __webpack_require__(16),
|
|
341
|
+
webstorm: __webpack_require__(17),
|
|
342
|
+
phpstorm: __webpack_require__(18),
|
|
343
|
+
idea14ce: __webpack_require__(19),
|
|
344
|
+
vim: __webpack_require__(20),
|
|
345
|
+
visualstudio: __webpack_require__(21),
|
|
346
|
+
emacs: __webpack_require__(22)
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
/***/ }),
|
|
351
|
+
/* 6 */
|
|
352
|
+
/***/ (function(module, exports) {
|
|
353
|
+
|
|
354
|
+
module.exports = require("child_process");
|
|
355
|
+
|
|
356
|
+
/***/ }),
|
|
357
|
+
/* 7 */
|
|
358
|
+
/***/ (function(module, exports) {
|
|
359
|
+
|
|
360
|
+
module.exports = require("fs");
|
|
361
|
+
|
|
362
|
+
/***/ }),
|
|
363
|
+
/* 8 */
|
|
364
|
+
/***/ (function(module, exports) {
|
|
365
|
+
|
|
366
|
+
var osascript = function(script) {
|
|
367
|
+
return 'osascript -e \'' + script + '\'';
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
var terminal = function(cmd) {
|
|
371
|
+
return 'tell application "Terminal" to do script "' + cmd + '"';
|
|
372
|
+
};
|
|
373
|
+
|
|
374
|
+
var runInTerminal = function(cmd) {
|
|
375
|
+
return osascript(terminal('cd {projectPath}; ' + cmd));
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
module.exports = runInTerminal;
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
/***/ }),
|
|
382
|
+
/* 9 */
|
|
383
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
exports.openInEditor = __webpack_require__(10);
|
|
387
|
+
|
|
388
|
+
exports.editors = __webpack_require__(5);
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
/***/ }),
|
|
392
|
+
/* 10 */
|
|
393
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
394
|
+
|
|
395
|
+
var extractFilename = __webpack_require__(0).extractFilename;
|
|
396
|
+
var number = __webpack_require__(0).number;
|
|
397
|
+
var assign = __webpack_require__(0).assign;
|
|
398
|
+
var editors = __webpack_require__(5);
|
|
399
|
+
var openFactory = __webpack_require__(1).factory;
|
|
400
|
+
|
|
401
|
+
module.exports = {
|
|
402
|
+
configure: function(options, cb) {
|
|
403
|
+
options = options || {};
|
|
404
|
+
cb = cb || function() {};
|
|
405
|
+
|
|
406
|
+
var sourceLineOffset = number(options.line, 1);
|
|
407
|
+
var sourceColumnOffset = number(options.column, 1);
|
|
408
|
+
var editor = options.editor;
|
|
409
|
+
var cmd = options.cmd;
|
|
410
|
+
var open;
|
|
411
|
+
|
|
412
|
+
if (!cmd && !editor) {
|
|
413
|
+
if (editors.hasOwnProperty(process.env.OPEN_FILE)) {
|
|
414
|
+
editor = process.env.OPEN_FILE;
|
|
415
|
+
} else {
|
|
416
|
+
cmd = process.env.OPEN_FILE ||
|
|
417
|
+
process.env.VISUAL ||
|
|
418
|
+
process.env.EDITOR;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
// if editor option is set then fail on wrong value
|
|
423
|
+
if (editor && !editors.hasOwnProperty(editor)) {
|
|
424
|
+
cb('Wrong value for `editor` option: ' + editor);
|
|
425
|
+
return;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
if (cmd) {
|
|
429
|
+
var settings = {};
|
|
430
|
+
|
|
431
|
+
// use editor settings as base
|
|
432
|
+
if (editors.hasOwnProperty(editor)) {
|
|
433
|
+
assign(settings, editors[editor].settings);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
open = openFactory(cmd, assign(settings, options));
|
|
437
|
+
} else {
|
|
438
|
+
if (!editor) {
|
|
439
|
+
cb('Editor is not specified');
|
|
440
|
+
return;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
open = editors[editor].open;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
return {
|
|
447
|
+
open: function(filename) {
|
|
448
|
+
if (!filename) {
|
|
449
|
+
return Promise.reject('File is not specified');
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
var info = extractFilename(filename);
|
|
453
|
+
|
|
454
|
+
return open([
|
|
455
|
+
info.filename,
|
|
456
|
+
Math.max(info.line - sourceLineOffset, 0),
|
|
457
|
+
Math.max(info.column - sourceColumnOffset, 0)
|
|
458
|
+
].join(':'));
|
|
459
|
+
}
|
|
460
|
+
};
|
|
461
|
+
}
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
/***/ }),
|
|
466
|
+
/* 11 */
|
|
467
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
468
|
+
|
|
469
|
+
"use strict";
|
|
470
|
+
|
|
471
|
+
var os = __webpack_require__(12);
|
|
472
|
+
|
|
473
|
+
function homedir() {
|
|
474
|
+
var env = process.env;
|
|
475
|
+
var home = env.HOME;
|
|
476
|
+
var user = env.LOGNAME || env.USER || env.LNAME || env.USERNAME;
|
|
477
|
+
|
|
478
|
+
if (process.platform === 'win32') {
|
|
479
|
+
return env.USERPROFILE || env.HOMEDRIVE + env.HOMEPATH || home || null;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
if (process.platform === 'darwin') {
|
|
483
|
+
return home || (user ? '/Users/' + user : null);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
if (process.platform === 'linux') {
|
|
487
|
+
return home || (process.getuid() === 0 ? '/root' : (user ? '/home/' + user : null));
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
return home || null;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
module.exports = typeof os.homedir === 'function' ? os.homedir : homedir;
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
/***/ }),
|
|
497
|
+
/* 12 */
|
|
498
|
+
/***/ (function(module, exports) {
|
|
499
|
+
|
|
500
|
+
module.exports = require("os");
|
|
501
|
+
|
|
502
|
+
/***/ }),
|
|
503
|
+
/* 13 */
|
|
504
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
505
|
+
|
|
506
|
+
var atHomeDir = __webpack_require__(0).atHomeDir;
|
|
507
|
+
|
|
508
|
+
var settings = {
|
|
509
|
+
pattern: '{filename}:{line}:{column}'
|
|
510
|
+
};
|
|
511
|
+
|
|
512
|
+
var detect = __webpack_require__(2).lazy('Atom Editor', ['atom'], '-h', {
|
|
513
|
+
darwin: [
|
|
514
|
+
'/Applications/Atom.app/Contents/Resources/app/atom.sh'
|
|
515
|
+
],
|
|
516
|
+
win32: [
|
|
517
|
+
atHomeDir('AppData/Local/atom/bin/atom.cmd')
|
|
518
|
+
]
|
|
519
|
+
});
|
|
520
|
+
|
|
521
|
+
var open = __webpack_require__(1).detectAndOpenFactory(detect, settings);
|
|
522
|
+
|
|
523
|
+
module.exports = {
|
|
524
|
+
settings: settings,
|
|
525
|
+
detect: detect,
|
|
526
|
+
open: open
|
|
527
|
+
};
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
/***/ }),
|
|
531
|
+
/* 14 */
|
|
532
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
533
|
+
|
|
534
|
+
var exec = __webpack_require__(6).exec;
|
|
535
|
+
var fs = __webpack_require__(7);
|
|
536
|
+
var quote = __webpack_require__(0).quote;
|
|
537
|
+
|
|
538
|
+
function checkCommand(cmd, name, args) {
|
|
539
|
+
if (!args) {
|
|
540
|
+
return Promise.reject('No args to check command: ' + cmd);
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
return new Promise(function(resolve, reject) {
|
|
544
|
+
exec(cmd + ' ' + args, function(err, output) {
|
|
545
|
+
if (err || output.indexOf(name) !== 0) {
|
|
546
|
+
reject(err);
|
|
547
|
+
} else {
|
|
548
|
+
resolve(cmd);
|
|
549
|
+
}
|
|
550
|
+
});
|
|
551
|
+
});
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
function checkPath(path, name) {
|
|
555
|
+
if (!fs.existsSync(path)) {
|
|
556
|
+
return Promise.reject('Path does not exist: ' + path);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
return Promise.resolve(path);
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
module.exports = {
|
|
563
|
+
command: checkCommand,
|
|
564
|
+
path: checkPath
|
|
565
|
+
};
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
/***/ }),
|
|
569
|
+
/* 15 */
|
|
570
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
571
|
+
|
|
572
|
+
var atHomeDir = __webpack_require__(0).atHomeDir;
|
|
573
|
+
|
|
574
|
+
var settings = {
|
|
575
|
+
pattern: '-r -g {filename}:{line}:{column}'
|
|
576
|
+
};
|
|
577
|
+
|
|
578
|
+
var detect = __webpack_require__(2).lazy('Visual Studio Code', ['code'], '-h', {
|
|
579
|
+
darwin: [
|
|
580
|
+
'/Applications/Visual Studio Code.app/Contents/MacOS/Electron'
|
|
581
|
+
],
|
|
582
|
+
win32: [
|
|
583
|
+
'C:/Program Files/Microsoft VS Code/bin/code.cmd',
|
|
584
|
+
'C:/Program Files (x86)/Microsoft VS Code/bin/code.cmd',
|
|
585
|
+
atHomeDir('AppData/Local/Code/bin/code.cmd')
|
|
586
|
+
]
|
|
587
|
+
});
|
|
588
|
+
|
|
589
|
+
var open = __webpack_require__(1).detectAndOpenFactory(detect, settings);
|
|
590
|
+
|
|
591
|
+
module.exports = {
|
|
592
|
+
settings: settings,
|
|
593
|
+
detect: detect,
|
|
594
|
+
open: open
|
|
595
|
+
};
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
/***/ }),
|
|
599
|
+
/* 16 */
|
|
600
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
601
|
+
|
|
602
|
+
var settings = {
|
|
603
|
+
pattern: '{filename}:{line}:{column}'
|
|
604
|
+
};
|
|
605
|
+
|
|
606
|
+
var detect = __webpack_require__(2).lazy('Sublime Text', ['subl'], '-h', {
|
|
607
|
+
darwin: [
|
|
608
|
+
'/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl'
|
|
609
|
+
],
|
|
610
|
+
win32: [
|
|
611
|
+
'C:/Program Files/Sublime Text/subl.exe',
|
|
612
|
+
'C:/Program Files/Sublime Text 2/subl.exe',
|
|
613
|
+
'C:/Program Files/Sublime Text 3/subl.exe',
|
|
614
|
+
'C:/Program Files (x86)/Sublime Text/subl.exe',
|
|
615
|
+
'C:/Program Files (x86)/Sublime Text 2/subl.exe',
|
|
616
|
+
'C:/Program Files (x86)/Sublime Text 3/subl.exe'
|
|
617
|
+
]
|
|
618
|
+
});
|
|
619
|
+
|
|
620
|
+
var open = __webpack_require__(1).detectAndOpenFactory(detect, settings);
|
|
621
|
+
|
|
622
|
+
module.exports = {
|
|
623
|
+
settings: settings,
|
|
624
|
+
detect: detect,
|
|
625
|
+
open: open
|
|
626
|
+
};
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
/***/ }),
|
|
630
|
+
/* 17 */
|
|
631
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
632
|
+
|
|
633
|
+
var jetbrainsEditor = __webpack_require__(4);
|
|
634
|
+
|
|
635
|
+
module.exports = jetbrainsEditor({
|
|
636
|
+
name: 'WebStorm IDE',
|
|
637
|
+
appFolder: 'WebStorm',
|
|
638
|
+
executable: 'webstorm'
|
|
639
|
+
});
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
/***/ }),
|
|
643
|
+
/* 18 */
|
|
644
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
645
|
+
|
|
646
|
+
var jetbrainsEditor = __webpack_require__(4);
|
|
647
|
+
|
|
648
|
+
module.exports = jetbrainsEditor({
|
|
649
|
+
name: 'PhpStorm IDE',
|
|
650
|
+
appFolder: 'PhpStorm',
|
|
651
|
+
executable: 'phpstorm'
|
|
652
|
+
});
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
/***/ }),
|
|
656
|
+
/* 19 */
|
|
657
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
658
|
+
|
|
659
|
+
var jetbrainsEditor = __webpack_require__(4);
|
|
660
|
+
|
|
661
|
+
module.exports = jetbrainsEditor({
|
|
662
|
+
name: 'IDEA 14 CE',
|
|
663
|
+
appFolder: 'IntelliJ IDEA 14 CE',
|
|
664
|
+
executable: 'idea'
|
|
665
|
+
});
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
/***/ }),
|
|
669
|
+
/* 20 */
|
|
670
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
671
|
+
|
|
672
|
+
var runInTerminal = __webpack_require__(8);
|
|
673
|
+
|
|
674
|
+
var settings = {
|
|
675
|
+
patternOnly: true,
|
|
676
|
+
escapeQuotes: true,
|
|
677
|
+
pattern: runInTerminal('vim {filename} \\"+call cursor({line}, {column})\\"')
|
|
678
|
+
};
|
|
679
|
+
|
|
680
|
+
var detect = __webpack_require__(2).platformSupport(['darwin'], 'vim');
|
|
681
|
+
var open = __webpack_require__(1).detectAndOpenFactory(detect, settings);
|
|
682
|
+
|
|
683
|
+
module.exports = {
|
|
684
|
+
settings: settings,
|
|
685
|
+
detect: detect,
|
|
686
|
+
open: open
|
|
687
|
+
};
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
/***/ }),
|
|
691
|
+
/* 21 */
|
|
692
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
693
|
+
|
|
694
|
+
var path = __webpack_require__(3);
|
|
695
|
+
var helperPath = path.resolve(__dirname, 'visualstudio.vbs');
|
|
696
|
+
|
|
697
|
+
var settings = {
|
|
698
|
+
pattern: '{filename} {line} {column}'
|
|
699
|
+
};
|
|
700
|
+
|
|
701
|
+
var detect = __webpack_require__(2).platformSupport(['win32'], 'Visual Studio', helperPath);
|
|
702
|
+
var open = __webpack_require__(1).detectAndOpenFactory(detect, settings);
|
|
703
|
+
|
|
704
|
+
module.exports = {
|
|
705
|
+
settings: settings,
|
|
706
|
+
detect: detect,
|
|
707
|
+
open: open
|
|
708
|
+
};
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+
/***/ }),
|
|
712
|
+
/* 22 */
|
|
713
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
714
|
+
|
|
715
|
+
var runInTerminal = __webpack_require__(8);
|
|
716
|
+
|
|
717
|
+
var settings = {
|
|
718
|
+
patternOnly: true,
|
|
719
|
+
escapeQuotes: true,
|
|
720
|
+
pattern: runInTerminal('emacs --no-splash \\"+{line}:{column}\\" {filename}')
|
|
721
|
+
};
|
|
722
|
+
|
|
723
|
+
var detect = __webpack_require__(2).platformSupport(['darwin'], 'vim');
|
|
724
|
+
var open = __webpack_require__(1).detectAndOpenFactory(detect, settings);
|
|
725
|
+
|
|
726
|
+
module.exports = {
|
|
727
|
+
settings: settings,
|
|
728
|
+
detect: detect,
|
|
729
|
+
open: open
|
|
730
|
+
};
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
/***/ })
|
|
734
|
+
/******/ ])));
|