From cb74356aca4301dcacc35e09ff3ed099cd538e0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aslak=20Helles=C3=B8y?= Date: Fri, 7 Jan 2022 10:05:39 +0000 Subject: [PATCH] Move javascript/* to root --- .eslintrc.json | 57 +++++++++++ javascript/.gitignore => .gitignore | 8 -- javascript/.mocharc.json => .mocharc.json | 1 - .prettierrc.json | 6 ++ .rsync | 1 - {javascript/.storybook => .storybook}/main.js | 0 .../.storybook => .storybook}/preview.js | 0 javascript/.subrepo => .subrepo | 0 javascript/LICENSE => LICENSE | 0 Makefile | 21 ++++- javascript/README.md => README.md | 0 ...css-modules-hook.js => css-modules-hook.js | 0 default.mk | 89 ------------------ javascript/.github/ISSUE_TEMPLATE.md | 5 - javascript/.github/PULL_REQUEST_TEMPLATE.md | 5 - javascript/.rsync | 3 - javascript/Makefile | 23 ----- javascript/default.mk | 87 ----------------- javascript/tsconfig.build.json | 15 --- javascript/tsconfig.json | 6 -- package.cjs.json | 1 + javascript/package.json => package.json | 3 +- .../examples-tables.png | Bin .../src => src}/CucumberQueryContext.ts | 0 .../src => src}/EnvelopesQueryContext.ts | 0 .../src => src}/GherkinQueryContext.ts | 0 {javascript/src => src}/SearchQueryContext.ts | 0 {javascript/src => src}/UriContext.ts | 0 {javascript/src => src}/ciCommitLink.ts | 0 .../components/CucumberReact.module.scss | 0 .../src => src}/components/CucumberReact.tsx | 0 .../components/app/CICommitLink.tsx | 0 .../components/app/EnvelopesWrapper.tsx | 0 .../app/ExecutionSummary.module.scss | 0 .../components/app/ExecutionSummary.tsx | 0 .../app/FilteredResults.module.scss | 0 .../components/app/FilteredResults.tsx | 0 .../app/GherkinDocumentList.module.scss | 0 .../components/app/GherkinDocumentList.tsx | 0 .../src => src}/components/app/HighLight.tsx | 0 .../components/app/NoMatchResult.module.scss | 0 .../components/app/NoMatchResult.tsx | 0 .../src => src}/components/app/OSIcon.tsx | 0 .../components/app/QueriesWrapper.tsx | 0 .../components/app/RuntimeIcon.tsx | 0 .../components/app/SearchBar.module.scss | 0 .../src => src}/components/app/SearchBar.tsx | 0 .../components/app/SearchWrapper.tsx | 0 .../app/StatusesSummary.module.scss | 0 .../components/app/StatusesSummary.tsx | 0 .../components/app/icons/CucumberLogo.tsx | 0 .../src => src}/components/app/icons/Jvm.tsx | 0 .../components/app/icons/Linux.tsx | 0 .../components/app/icons/MacOS.tsx | 0 .../components/app/icons/NodeJs.tsx | 0 .../src => src}/components/app/icons/Ruby.tsx | 0 .../components/app/icons/Windows.tsx | 0 .../src => src}/components/app/index.ts | 0 .../components/app/rehypePlugins.ts | 0 .../src => src}/components/app/statuses.ts | 0 .../components/customise/customRendering.tsx | 0 .../src => src}/components/customise/index.ts | 0 .../components/customise/theming.ts | 0 .../components/gherkin/Anchor.module.scss | 0 .../src => src}/components/gherkin/Anchor.tsx | 0 .../components/gherkin/Attachment.module.scss | 0 .../components/gherkin/Attachment.tsx | 0 .../components/gherkin/Background.module.scss | 0 .../components/gherkin/Background.tsx | 0 .../components/gherkin/Children.module.scss | 0 .../components/gherkin/Children.tsx | 0 .../components/gherkin/DataTable.module.scss | 0 .../components/gherkin/DataTable.tsx | 0 .../gherkin/Description.module.scss | 0 .../components/gherkin/Description.tsx | 0 .../components/gherkin/DocString.module.scss | 0 .../components/gherkin/DocString.tsx | 0 .../gherkin/ErrorMessage.module.scss | 0 .../components/gherkin/ErrorMessage.tsx | 0 .../components/gherkin/Examples.tsx | 0 .../components/gherkin/ExamplesTable.tsx | 0 .../components/gherkin/Feature.tsx | 0 .../components/gherkin/GherkinDocument.tsx | 0 .../components/gherkin/GherkinStep.tsx | 0 .../components/gherkin/HookList.tsx | 0 .../components/gherkin/HookStep.tsx | 0 .../components/gherkin/Keyword.module.scss | 0 .../components/gherkin/Keyword.tsx | 0 .../components/gherkin/MDG.module.scss | 0 .../src => src}/components/gherkin/MDG.tsx | 0 .../components/gherkin/Parameter.module.scss | 0 .../components/gherkin/Parameter.tsx | 0 .../src => src}/components/gherkin/Rule.tsx | 0 .../components/gherkin/Scenario.module.scss | 0 .../components/gherkin/Scenario.tsx | 0 .../components/gherkin/StatusIcon.module.scss | 0 .../components/gherkin/StatusIcon.tsx | 0 .../components/gherkin/StepItem.module.scss | 0 .../components/gherkin/StepItem.tsx | 0 .../components/gherkin/StepList.tsx | 0 .../components/gherkin/Tags.module.scss | 0 .../src => src}/components/gherkin/Tags.tsx | 0 .../components/gherkin/Title.module.scss | 0 .../src => src}/components/gherkin/Title.tsx | 0 .../src => src}/components/gherkin/index.ts | 0 .../components/gherkin/isNumber.ts | 0 .../components/gherkin/statusName.ts | 0 {javascript/src => src}/components/index.ts | 0 .../src => src}/countScenariosByStatuses.ts | 0 {javascript/src => src}/custom.d.ts | 0 .../src => src}/filter/filterByStatus.ts | 0 {javascript/src => src}/hooks/index.ts | 0 {javascript/src => src}/hooks/useQueries.ts | 0 {javascript/src => src}/hooks/useSearch.ts | 0 {javascript/src => src}/index.ts | 0 {javascript/src => src}/isTagExpression.ts | 0 .../src => src}/search/FeatureSearch.ts | 0 {javascript/src => src}/search/RuleSearch.ts | 0 .../src => src}/search/ScenarioSearch.ts | 0 {javascript/src => src}/search/Search.ts | 0 {javascript/src => src}/search/StepSearch.ts | 0 {javascript/src => src}/search/TagSearch.ts | 0 {javascript/src => src}/search/TextSearch.ts | 0 .../src => src}/stories/Classes.stories.tsx | 0 .../stories/Components.stories.tsx | 0 .../stories/ExecutionSummary.stories.tsx | 0 .../stories/FilteredResults.stories.tsx | 0 .../stories/GherkinDocument.stories.tsx | 0 .../src => src}/stories/MDG.stories.tsx | 0 .../stories/StatusesSummary.stories.tsx | 0 .../src => src}/stories/Themes.stories.tsx | 0 .../src => src}/stories/custom-classes.scss | 0 {javascript/src => src}/styles/theming.scss | 0 {javascript/src => src}/toRepositoryId.ts | 0 .../test => test}/CucumberQueryStream.ts | 0 {javascript/test => test}/HighlightTest.tsx | 0 {javascript/test => test}/MarkdownTest.tsx | 0 .../test => test}/SearchQueryContextTest.ts | 0 {javascript/test => test}/acceptanceTests.tsx | 0 {javascript/test => test}/ciCommitLinkTest.ts | 0 .../components/app/ExecutionSummaryTest.tsx | 0 .../components/app/FilteredResultsTest.tsx | 0 .../components/app/SearchBarTest.tsx | 0 .../components/app/SearchWrapperTest.tsx | 0 .../components/app/StatusesSummaryTest.tsx | 0 .../customise/CustomRenderingTest.tsx | 0 .../components/gherkin/AttachmentTest.tsx | 0 .../components/gherkin/DescriptionTest.tsx | 0 .../components/gherkin/HookStepTest.tsx | 0 .../components/gherkin/StepTest.tsx | 0 .../components/gherkin/TagsTest.tsx | 0 .../test => test}/components/utils.tsx | 0 .../countScenariosByStatusesTest.ts | 0 .../filter/filterByStatusTest.ts | 0 .../test => test}/isTagExpressionTest.ts | 0 {javascript/test => test}/messageTests.tsx | 0 {javascript/test => test}/messages/README.md | 0 .../test => test}/messages/hooks-jvm.ndjson | 0 .../messages/production/.gitignore | 0 {javascript/test => test}/parseGitUrlTest.ts | 0 {javascript/test => test}/runFeature.ts | 0 .../test => test}/search/FeatureSearchTest.ts | 0 .../test => test}/search/RuleSearchTest.ts | 0 .../search/ScenarioSearchTest.ts | 0 .../test => test}/search/SearchTest.ts | 0 .../test => test}/search/StepSearchTest.ts | 0 .../test => test}/search/TagSearchTest.ts | 0 .../test => test}/search/TextSearchTest.ts | 0 {javascript/test => test}/search/utils.ts | 0 tsconfig.build-cjs.json | 8 ++ tsconfig.build-esm.json | 11 +++ tsconfig.build.json | 15 +++ tsconfig.json | 25 +++++ 173 files changed, 145 insertions(+), 245 deletions(-) create mode 100644 .eslintrc.json rename javascript/.gitignore => .gitignore (63%) rename javascript/.mocharc.json => .mocharc.json (87%) create mode 100644 .prettierrc.json delete mode 100644 .rsync rename {javascript/.storybook => .storybook}/main.js (100%) rename {javascript/.storybook => .storybook}/preview.js (100%) rename javascript/.subrepo => .subrepo (100%) rename javascript/LICENSE => LICENSE (100%) rename javascript/README.md => README.md (100%) rename javascript/css-modules-hook.js => css-modules-hook.js (100%) delete mode 100644 default.mk delete mode 100644 javascript/.github/ISSUE_TEMPLATE.md delete mode 100644 javascript/.github/PULL_REQUEST_TEMPLATE.md delete mode 100644 javascript/.rsync delete mode 100644 javascript/Makefile delete mode 100644 javascript/default.mk delete mode 100644 javascript/tsconfig.build.json delete mode 100644 javascript/tsconfig.json create mode 100644 package.cjs.json rename javascript/package.json => package.json (95%) rename {javascript/screenshots => screenshots}/examples-tables.png (100%) rename {javascript/src => src}/CucumberQueryContext.ts (100%) rename {javascript/src => src}/EnvelopesQueryContext.ts (100%) rename {javascript/src => src}/GherkinQueryContext.ts (100%) rename {javascript/src => src}/SearchQueryContext.ts (100%) rename {javascript/src => src}/UriContext.ts (100%) rename {javascript/src => src}/ciCommitLink.ts (100%) rename {javascript/src => src}/components/CucumberReact.module.scss (100%) rename {javascript/src => src}/components/CucumberReact.tsx (100%) rename {javascript/src => src}/components/app/CICommitLink.tsx (100%) rename {javascript/src => src}/components/app/EnvelopesWrapper.tsx (100%) rename {javascript/src => src}/components/app/ExecutionSummary.module.scss (100%) rename {javascript/src => src}/components/app/ExecutionSummary.tsx (100%) rename {javascript/src => src}/components/app/FilteredResults.module.scss (100%) rename {javascript/src => src}/components/app/FilteredResults.tsx (100%) rename {javascript/src => src}/components/app/GherkinDocumentList.module.scss (100%) rename {javascript/src => src}/components/app/GherkinDocumentList.tsx (100%) rename {javascript/src => src}/components/app/HighLight.tsx (100%) rename {javascript/src => src}/components/app/NoMatchResult.module.scss (100%) rename {javascript/src => src}/components/app/NoMatchResult.tsx (100%) rename {javascript/src => src}/components/app/OSIcon.tsx (100%) rename {javascript/src => src}/components/app/QueriesWrapper.tsx (100%) rename {javascript/src => src}/components/app/RuntimeIcon.tsx (100%) rename {javascript/src => src}/components/app/SearchBar.module.scss (100%) rename {javascript/src => src}/components/app/SearchBar.tsx (100%) rename {javascript/src => src}/components/app/SearchWrapper.tsx (100%) rename {javascript/src => src}/components/app/StatusesSummary.module.scss (100%) rename {javascript/src => src}/components/app/StatusesSummary.tsx (100%) rename {javascript/src => src}/components/app/icons/CucumberLogo.tsx (100%) rename {javascript/src => src}/components/app/icons/Jvm.tsx (100%) rename {javascript/src => src}/components/app/icons/Linux.tsx (100%) rename {javascript/src => src}/components/app/icons/MacOS.tsx (100%) rename {javascript/src => src}/components/app/icons/NodeJs.tsx (100%) rename {javascript/src => src}/components/app/icons/Ruby.tsx (100%) rename {javascript/src => src}/components/app/icons/Windows.tsx (100%) rename {javascript/src => src}/components/app/index.ts (100%) rename {javascript/src => src}/components/app/rehypePlugins.ts (100%) rename {javascript/src => src}/components/app/statuses.ts (100%) rename {javascript/src => src}/components/customise/customRendering.tsx (100%) rename {javascript/src => src}/components/customise/index.ts (100%) rename {javascript/src => src}/components/customise/theming.ts (100%) rename {javascript/src => src}/components/gherkin/Anchor.module.scss (100%) rename {javascript/src => src}/components/gherkin/Anchor.tsx (100%) rename {javascript/src => src}/components/gherkin/Attachment.module.scss (100%) rename {javascript/src => src}/components/gherkin/Attachment.tsx (100%) rename {javascript/src => src}/components/gherkin/Background.module.scss (100%) rename {javascript/src => src}/components/gherkin/Background.tsx (100%) rename {javascript/src => src}/components/gherkin/Children.module.scss (100%) rename {javascript/src => src}/components/gherkin/Children.tsx (100%) rename {javascript/src => src}/components/gherkin/DataTable.module.scss (100%) rename {javascript/src => src}/components/gherkin/DataTable.tsx (100%) rename {javascript/src => src}/components/gherkin/Description.module.scss (100%) rename {javascript/src => src}/components/gherkin/Description.tsx (100%) rename {javascript/src => src}/components/gherkin/DocString.module.scss (100%) rename {javascript/src => src}/components/gherkin/DocString.tsx (100%) rename {javascript/src => src}/components/gherkin/ErrorMessage.module.scss (100%) rename {javascript/src => src}/components/gherkin/ErrorMessage.tsx (100%) rename {javascript/src => src}/components/gherkin/Examples.tsx (100%) rename {javascript/src => src}/components/gherkin/ExamplesTable.tsx (100%) rename {javascript/src => src}/components/gherkin/Feature.tsx (100%) rename {javascript/src => src}/components/gherkin/GherkinDocument.tsx (100%) rename {javascript/src => src}/components/gherkin/GherkinStep.tsx (100%) rename {javascript/src => src}/components/gherkin/HookList.tsx (100%) rename {javascript/src => src}/components/gherkin/HookStep.tsx (100%) rename {javascript/src => src}/components/gherkin/Keyword.module.scss (100%) rename {javascript/src => src}/components/gherkin/Keyword.tsx (100%) rename {javascript/src => src}/components/gherkin/MDG.module.scss (100%) rename {javascript/src => src}/components/gherkin/MDG.tsx (100%) rename {javascript/src => src}/components/gherkin/Parameter.module.scss (100%) rename {javascript/src => src}/components/gherkin/Parameter.tsx (100%) rename {javascript/src => src}/components/gherkin/Rule.tsx (100%) rename {javascript/src => src}/components/gherkin/Scenario.module.scss (100%) rename {javascript/src => src}/components/gherkin/Scenario.tsx (100%) rename {javascript/src => src}/components/gherkin/StatusIcon.module.scss (100%) rename {javascript/src => src}/components/gherkin/StatusIcon.tsx (100%) rename {javascript/src => src}/components/gherkin/StepItem.module.scss (100%) rename {javascript/src => src}/components/gherkin/StepItem.tsx (100%) rename {javascript/src => src}/components/gherkin/StepList.tsx (100%) rename {javascript/src => src}/components/gherkin/Tags.module.scss (100%) rename {javascript/src => src}/components/gherkin/Tags.tsx (100%) rename {javascript/src => src}/components/gherkin/Title.module.scss (100%) rename {javascript/src => src}/components/gherkin/Title.tsx (100%) rename {javascript/src => src}/components/gherkin/index.ts (100%) rename {javascript/src => src}/components/gherkin/isNumber.ts (100%) rename {javascript/src => src}/components/gherkin/statusName.ts (100%) rename {javascript/src => src}/components/index.ts (100%) rename {javascript/src => src}/countScenariosByStatuses.ts (100%) rename {javascript/src => src}/custom.d.ts (100%) rename {javascript/src => src}/filter/filterByStatus.ts (100%) rename {javascript/src => src}/hooks/index.ts (100%) rename {javascript/src => src}/hooks/useQueries.ts (100%) rename {javascript/src => src}/hooks/useSearch.ts (100%) rename {javascript/src => src}/index.ts (100%) rename {javascript/src => src}/isTagExpression.ts (100%) rename {javascript/src => src}/search/FeatureSearch.ts (100%) rename {javascript/src => src}/search/RuleSearch.ts (100%) rename {javascript/src => src}/search/ScenarioSearch.ts (100%) rename {javascript/src => src}/search/Search.ts (100%) rename {javascript/src => src}/search/StepSearch.ts (100%) rename {javascript/src => src}/search/TagSearch.ts (100%) rename {javascript/src => src}/search/TextSearch.ts (100%) rename {javascript/src => src}/stories/Classes.stories.tsx (100%) rename {javascript/src => src}/stories/Components.stories.tsx (100%) rename {javascript/src => src}/stories/ExecutionSummary.stories.tsx (100%) rename {javascript/src => src}/stories/FilteredResults.stories.tsx (100%) rename {javascript/src => src}/stories/GherkinDocument.stories.tsx (100%) rename {javascript/src => src}/stories/MDG.stories.tsx (100%) rename {javascript/src => src}/stories/StatusesSummary.stories.tsx (100%) rename {javascript/src => src}/stories/Themes.stories.tsx (100%) rename {javascript/src => src}/stories/custom-classes.scss (100%) rename {javascript/src => src}/styles/theming.scss (100%) rename {javascript/src => src}/toRepositoryId.ts (100%) rename {javascript/test => test}/CucumberQueryStream.ts (100%) rename {javascript/test => test}/HighlightTest.tsx (100%) rename {javascript/test => test}/MarkdownTest.tsx (100%) rename {javascript/test => test}/SearchQueryContextTest.ts (100%) rename {javascript/test => test}/acceptanceTests.tsx (100%) rename {javascript/test => test}/ciCommitLinkTest.ts (100%) rename {javascript/test => test}/components/app/ExecutionSummaryTest.tsx (100%) rename {javascript/test => test}/components/app/FilteredResultsTest.tsx (100%) rename {javascript/test => test}/components/app/SearchBarTest.tsx (100%) rename {javascript/test => test}/components/app/SearchWrapperTest.tsx (100%) rename {javascript/test => test}/components/app/StatusesSummaryTest.tsx (100%) rename {javascript/test => test}/components/customise/CustomRenderingTest.tsx (100%) rename {javascript/test => test}/components/gherkin/AttachmentTest.tsx (100%) rename {javascript/test => test}/components/gherkin/DescriptionTest.tsx (100%) rename {javascript/test => test}/components/gherkin/HookStepTest.tsx (100%) rename {javascript/test => test}/components/gherkin/StepTest.tsx (100%) rename {javascript/test => test}/components/gherkin/TagsTest.tsx (100%) rename {javascript/test => test}/components/utils.tsx (100%) rename {javascript/test => test}/countScenariosByStatusesTest.ts (100%) rename {javascript/test => test}/filter/filterByStatusTest.ts (100%) rename {javascript/test => test}/isTagExpressionTest.ts (100%) rename {javascript/test => test}/messageTests.tsx (100%) rename {javascript/test => test}/messages/README.md (100%) rename {javascript/test => test}/messages/hooks-jvm.ndjson (100%) rename {javascript/test => test}/messages/production/.gitignore (100%) rename {javascript/test => test}/parseGitUrlTest.ts (100%) rename {javascript/test => test}/runFeature.ts (100%) rename {javascript/test => test}/search/FeatureSearchTest.ts (100%) rename {javascript/test => test}/search/RuleSearchTest.ts (100%) rename {javascript/test => test}/search/ScenarioSearchTest.ts (100%) rename {javascript/test => test}/search/SearchTest.ts (100%) rename {javascript/test => test}/search/StepSearchTest.ts (100%) rename {javascript/test => test}/search/TagSearchTest.ts (100%) rename {javascript/test => test}/search/TextSearchTest.ts (100%) rename {javascript/test => test}/search/utils.ts (100%) create mode 100644 tsconfig.build-cjs.json create mode 100644 tsconfig.build-esm.json create mode 100644 tsconfig.build.json create mode 100644 tsconfig.json diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 00000000..8cb9adb7 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,57 @@ +{ + "env": { + "browser": true, + "node": true + }, + "parser": "@typescript-eslint/parser", + "parserOptions": { + "project": "tsconfig.json", + "sourceType": "module" + }, + "plugins": [ + "react", + "import", + "simple-import-sort", + "node", + "@typescript-eslint" + ], + "extends": [ + "eslint:recommended", + "plugin:react/recommended", + "plugin:react-hooks/recommended", + "plugin:import/typescript", + "plugin:@typescript-eslint/eslint-recommended", + "plugin:@typescript-eslint/recommended", + "plugin:prettier/recommended" + ], + "rules": { + "import/no-cycle": "error", + "node/no-extraneous-import": "error", + "@typescript-eslint/ban-ts-ignore": "off", + "@typescript-eslint/ban-ts-comment": "off", + "@typescript-eslint/explicit-module-boundary-types": "off", + "@typescript-eslint/explicit-function-return-type": "off", + "@typescript-eslint/no-use-before-define": "off", + "@typescript-eslint/interface-name-prefix": "off", + "@typescript-eslint/member-delimiter-style": "off", + "@typescript-eslint/no-explicit-any": "error", + "@typescript-eslint/no-non-null-assertion": "error", + "simple-import-sort/imports": "error", + "simple-import-sort/exports": "error", + "react/prop-types": "off" + }, + "overrides": [ + { + "files": ["test/**"], + "rules": { + "@typescript-eslint/no-non-null-assertion": "off" + } + } + ], + "settings": { + "react": { + "pragma": "React", + "version": "detect" + } + } +} diff --git a/javascript/.gitignore b/.gitignore similarity index 63% rename from javascript/.gitignore rename to .gitignore index 385b67bb..786eeb22 100644 --- a/javascript/.gitignore +++ b/.gitignore @@ -1,19 +1,11 @@ dist/ .idea/ -.nyc_output/ -coverage/ node_modules/ yarn.lock package-lock.json *.log -.deps -.tested* -.linted -.built* -.compared .codegen acceptance/ storybook-static -*-go *.iml .vscode-test diff --git a/javascript/.mocharc.json b/.mocharc.json similarity index 87% rename from javascript/.mocharc.json rename to .mocharc.json index c43bb652..78c82fde 100644 --- a/javascript/.mocharc.json +++ b/.mocharc.json @@ -1,6 +1,5 @@ { "require": [ - "tsconfig-paths/register", "ts-node/register", "source-map-support/register", "./css-modules-hook.js", diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 00000000..0e9e3a77 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,6 @@ +{ + "trailingComma": "es5", + "semi": false, + "singleQuote": true, + "printWidth": 100 +} diff --git a/.rsync b/.rsync deleted file mode 100644 index ea5a5de2..00000000 --- a/.rsync +++ /dev/null @@ -1 +0,0 @@ -../.templates/default.mk default.mk diff --git a/javascript/.storybook/main.js b/.storybook/main.js similarity index 100% rename from javascript/.storybook/main.js rename to .storybook/main.js diff --git a/javascript/.storybook/preview.js b/.storybook/preview.js similarity index 100% rename from javascript/.storybook/preview.js rename to .storybook/preview.js diff --git a/javascript/.subrepo b/.subrepo similarity index 100% rename from javascript/.subrepo rename to .subrepo diff --git a/javascript/LICENSE b/LICENSE similarity index 100% rename from javascript/LICENSE rename to LICENSE diff --git a/Makefile b/Makefile index 4092172f..e4e0f6a0 100644 --- a/Makefile +++ b/Makefile @@ -1 +1,20 @@ -include default.mk \ No newline at end of file +FEATURE_FILES = $(sort $(wildcard node_modules/@cucumber/compatibility-kit/javascript/features/**/*.ndjson)) +TS_MESSAGE_FILES = $(patsubst node_modules/@cucumber/compatibility-kit/javascript/features/%.ndjson,acceptance/%.ts,$(FEATURE_FILES)) + +default: .codegen .tested + +.codegen: $(TS_MESSAGE_FILES) + +# Convert an .ndjson file to a .ts file with Envelope objects that can be imported +acceptance/%.ts: node_modules/@cucumber/compatibility-kit/javascript/features/%.ndjson Makefile + mkdir -p $(@D) + echo "// Generated file. Do not edit." > $@ + echo "export default [" >> $@ + cat $< | sed "s/$$/,/" >> $@ + echo "]" >> $@ + +.tested: .tested-storybook + +.tested-storybook: + npm run build-storybook + touch $@ diff --git a/javascript/README.md b/README.md similarity index 100% rename from javascript/README.md rename to README.md diff --git a/javascript/css-modules-hook.js b/css-modules-hook.js similarity index 100% rename from javascript/css-modules-hook.js rename to css-modules-hook.js diff --git a/default.mk b/default.mk deleted file mode 100644 index a0d8dd28..00000000 --- a/default.mk +++ /dev/null @@ -1,89 +0,0 @@ -# Please update /.templates/default.mk and sync: -# -# source scripts/functions.sh && rsync_files -# -SHELL := /usr/bin/env bash -ALPINE = $(shell which apk 2> /dev/null) -LIBNAME = $(shell basename $$(pwd)) -LANGUAGES ?= $(wildcard */) - -# https://stackoverflow.com/questions/2483182/recursive-wildcards-in-gnu-make -rwildcard=$(foreach d,$(wildcard $(1:=/*)),$(call rwildcard,$d,$2) $(filter $(subst *,%,$2),$d)) - -default: $(patsubst %,default-%,$(LANGUAGES)) -.PHONY: default - -default-%: % - if [[ -d $< ]]; then cd $< && make default; fi -.PHONY: default-% - -# Need to declare these phonies to avoid errors for packages without a particular language -.PHONY: c dotnet go java javascript objective-c perl python ruby - -update-dependencies: $(patsubst %,update-dependencies-%,$(LANGUAGES)) -.PHONY: update-dependencies - -update-dependencies-%: % - if [[ -d $< ]]; then cd $< && make update-dependencies; fi -.PHONY: update-dependencies-% - -update-changelog: -ifdef NEW_VERSION - cat CHANGELOG.md | ../scripts/update_changelog.sh $(NEW_VERSION) > CHANGELOG.md.tmp - mv CHANGELOG.md.tmp CHANGELOG.md -else - @echo -e "\033[0;31mNEW_VERSION is not defined. Can't update version :-(\033[0m" - exit 1 -endif -.PHONY: update-changelog - -pre-release: update-changelog $(patsubst %,pre-release-%,$(LANGUAGES)) -.PHONY: pre-release - -pre-release-%: % - if [[ -d $< ]]; then cd $< && make pre-release; fi -.PHONY: pre-release-% - -release: publish -.PHONY: release - -publish: create-and-push-release-tag $(patsubst %,publish-%,$(LANGUAGES)) -.PHONY: publish - -publish-%: % - if [[ -d $< ]]; then cd $< && make publish; fi -.PHONY: publish-% - -create-and-push-release-tag: - [ -f '/home/cukebot/configure' ] && /home/cukebot/configure - git commit --gpg-sign --all --message "Release $(LIBNAME) v$(NEW_VERSION)" - git tag --sign "$(LIBNAME)/v$(NEW_VERSION)" -m "Release $(LIBNAME) v$(NEW_VERSION)" - git push --tags -.PHONY: create-and-push-release-tag - -post-release: $(patsubst %,post-release-%,$(LANGUAGES)) -.PHONY: post-release - -post-release: commit-and-push-post-release - -post-release-%: % - if [[ -d $< ]]; then cd $< && make post-release; fi -.PHONY: post-release-% - -commit-and-push-post-release: -ifdef NEW_VERSION - git push --tags - git commit --gpg-sign --all --message "Post release $(LIBNAME) v$(NEW_VERSION)" 2> /dev/null || true - git push -else - @echo -e "\033[0;31mNEW_VERSION is not defined.\033[0m" - exit 1 -endif -.PHONY: commit-and-push-post-release - -clean: $(patsubst %,clean-%,$(LANGUAGES)) -.PHONY: clean - -clean-%: % - if [[ -d $< ]]; then cd $< && make clean; fi -.PHONY: clean-% diff --git a/javascript/.github/ISSUE_TEMPLATE.md b/javascript/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index fac96198..00000000 --- a/javascript/.github/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,5 +0,0 @@ -PLEASE DO NOT CREATE ISSUES IN THIS REPO. -THIS REPO IS A READ-ONLY MIRROR. - -Create your issue in the Cucumber monorepo instead: -https://github.com/cucumber/cucumber/issues diff --git a/javascript/.github/PULL_REQUEST_TEMPLATE.md b/javascript/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2c0c878d..00000000 --- a/javascript/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,5 +0,0 @@ -PLEASE DO NOT CREATE PULL REAUESTS IN THIS REPO. -THIS REPO IS A READ-ONLY MIRROR. - -Create your pull request in the Cucumber monorepo instead: -https://github.com/cucumber/cucumber/pulls diff --git a/javascript/.rsync b/javascript/.rsync deleted file mode 100644 index 826c6454..00000000 --- a/javascript/.rsync +++ /dev/null @@ -1,3 +0,0 @@ -../../LICENSE LICENSE -../../.templates/github/ .github/ -../../.templates/javascript/ . --exclude .mocharc.json --exclude tsconfig.json diff --git a/javascript/Makefile b/javascript/Makefile deleted file mode 100644 index 0f60b456..00000000 --- a/javascript/Makefile +++ /dev/null @@ -1,23 +0,0 @@ -include default.mk - -FEATURE_FILES = $(sort $(wildcard ../../compatibility-kit/javascript/features/**/*.ndjson)) -TS_MESSAGE_FILES = $(patsubst ../../compatibility-kit/javascript/features/%.ndjson,acceptance/%.ts,$(FEATURE_FILES)) - -.codegen: $(TS_MESSAGE_FILES) - -# Convert an .ndjson file to a .ts file with Envelope objects that can be imported -acceptance/%.ts: ../../compatibility-kit/javascript/features/%.ndjson Makefile - mkdir -p $(@D) - echo "// Generated file. Do not edit." > $@ - echo "export default [" >> $@ - cat $< | sed "s/$$/,/" >> $@ - echo "]" >> $@ - -.tested: .tested-storybook - -.tested-storybook: $(TYPESCRIPT_SOURCE_FILES) - npm run build-storybook - touch $@ - -clean: - rm -f $(GHERKIN_DOCUMENT_NDJSON_FILES) diff --git a/javascript/default.mk b/javascript/default.mk deleted file mode 100644 index b04d59c4..00000000 --- a/javascript/default.mk +++ /dev/null @@ -1,87 +0,0 @@ -SHELL := /usr/bin/env bash -# https://stackoverflow.com/questions/2483182/recursive-wildcards-in-gnu-make -rwildcard=$(foreach d,$(wildcard $(1:=/*)),$(call rwildcard,$d,$2) $(filter $(subst *,%,$2),$d)) -TYPESCRIPT_SOURCE_FILES = $(sort $(call rwildcard,src test,*.ts *.tsx)) -PRIVATE = $(shell node -e "console.log(require('./package.json').private)") -IS_TESTDATA = $(findstring -testdata,${CURDIR}) -NPM_MODULE = $(shell cat package.json | jq .name --raw-output) - -default: .tested -.PHONY: default - -../../node_modules ../../package-lock.json: package.json - cd ../.. && npm install - -.codegen: - touch $@ - -.tested: .tested-npm .built - -.built: $(TYPESCRIPT_SOURCE_FILES) ../../node_modules ../../package-lock.json .codegen - pushd ../.. && \ - npm run build && \ - popd && \ - touch $@ - -.tested-npm: $(TYPESCRIPT_SOURCE_FILES) ../../node_modules ../../package-lock.json .codegen - npm run test - touch $@ - -pre-release: clean update-version update-dependencies default -.PHONY: pre-release - -update-dependencies: ../../node_modules ../../package-lock.json - ../../node_modules/.bin/npm-check-updates --upgrade --reject hast-util-sanitize,@types/node,react-markdown,rehype-raw,rehype-sanitize,remark-gfm -.PHONY: update-dependencies - -update-version: -ifeq ($(IS_TESTDATA),-testdata) - # no-op -else -ifdef NEW_VERSION - npm --no-git-tag-version --allow-same-version version "$(NEW_VERSION)" - # Update all npm packages that depend on us - pushd ../.. && \ - ./scripts/npm-each update_npm_dependency_if_exists package.json "$(NPM_MODULE)" "$(NEW_VERSION)" -else - @echo -e "\033[0;31mNEW_VERSION is not defined. Can't update version :-(\033[0m" - exit 1 -endif -endif -.PHONY: update-version - -publish: .codegen -ifeq ($(IS_TESTDATA),-testdata) - # no-op -else -ifneq (true,$(PRIVATE)) - npm publish --access public -else - @echo "Not publishing private npm module" -endif -endif -.PHONY: publish - -post-release: -.PHONY: post-release - -clean: clean-javascript -.PHONY: clean - -clean-javascript: - rm -rf .deps .codegen .tested* coverage dist acceptance -.PHONY: clean-javascript - -clobber: clean - rm -rf node_modules ../../node_modules -.PHONY: clobber - -### COMMON stuff for all platforms - -BERP_VERSION = 1.3.0 -BERP_GRAMMAR = gherkin.berp - -define berp-generate-parser = --! dotnet tool list --tool-path /usr/bin | grep "berp\s*$(BERP_VERSION)" && dotnet tool update Berp --version $(BERP_VERSION) --tool-path /usr/bin -berp -g $(BERP_GRAMMAR) -t $< -o $@ --noBOM -endef diff --git a/javascript/tsconfig.build.json b/javascript/tsconfig.build.json deleted file mode 100644 index 8d5ea2ee..00000000 --- a/javascript/tsconfig.build.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "extends": "../../tsconfig.build.json", - "compilerOptions": { - "rootDir": ".", - "outDir": "dist" - }, - "include": [ - "src", - "test", - "acceptance" - ], - "exclude": [ - "src/stories" - ] -} diff --git a/javascript/tsconfig.json b/javascript/tsconfig.json deleted file mode 100644 index bfce954f..00000000 --- a/javascript/tsconfig.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "ts-node": { - "files": true - } -} diff --git a/package.cjs.json b/package.cjs.json new file mode 100644 index 00000000..b731bd61 --- /dev/null +++ b/package.cjs.json @@ -0,0 +1 @@ +{"type": "commonjs"} diff --git a/javascript/package.json b/package.json similarity index 95% rename from javascript/package.json rename to package.json index 790e5a9d..84d6dbaa 100644 --- a/javascript/package.json +++ b/package.json @@ -11,7 +11,7 @@ "author": "Aslak Hellesøy", "license": "MIT", "scripts": { - "prepare": "make .codegen && cpy '**/*.scss' '../dist/src' --cwd='src' --parents", + "prepare": "cpy '**/*.scss' '../dist/src' --cwd='src' --parents", "test": "mocha", "storybook": "start-storybook -p 6006", "build-storybook": "build-storybook" @@ -44,6 +44,7 @@ }, "devDependencies": { "@babel/core": "7.16.7", + "@cucumber/compatibility-kit": "^9.1.2", "@cucumber/fake-cucumber": "^15.0.0", "@cucumber/gherkin": "^22.0.0", "@cucumber/gherkin-streams": "^4.0.0", diff --git a/javascript/screenshots/examples-tables.png b/screenshots/examples-tables.png similarity index 100% rename from javascript/screenshots/examples-tables.png rename to screenshots/examples-tables.png diff --git a/javascript/src/CucumberQueryContext.ts b/src/CucumberQueryContext.ts similarity index 100% rename from javascript/src/CucumberQueryContext.ts rename to src/CucumberQueryContext.ts diff --git a/javascript/src/EnvelopesQueryContext.ts b/src/EnvelopesQueryContext.ts similarity index 100% rename from javascript/src/EnvelopesQueryContext.ts rename to src/EnvelopesQueryContext.ts diff --git a/javascript/src/GherkinQueryContext.ts b/src/GherkinQueryContext.ts similarity index 100% rename from javascript/src/GherkinQueryContext.ts rename to src/GherkinQueryContext.ts diff --git a/javascript/src/SearchQueryContext.ts b/src/SearchQueryContext.ts similarity index 100% rename from javascript/src/SearchQueryContext.ts rename to src/SearchQueryContext.ts diff --git a/javascript/src/UriContext.ts b/src/UriContext.ts similarity index 100% rename from javascript/src/UriContext.ts rename to src/UriContext.ts diff --git a/javascript/src/ciCommitLink.ts b/src/ciCommitLink.ts similarity index 100% rename from javascript/src/ciCommitLink.ts rename to src/ciCommitLink.ts diff --git a/javascript/src/components/CucumberReact.module.scss b/src/components/CucumberReact.module.scss similarity index 100% rename from javascript/src/components/CucumberReact.module.scss rename to src/components/CucumberReact.module.scss diff --git a/javascript/src/components/CucumberReact.tsx b/src/components/CucumberReact.tsx similarity index 100% rename from javascript/src/components/CucumberReact.tsx rename to src/components/CucumberReact.tsx diff --git a/javascript/src/components/app/CICommitLink.tsx b/src/components/app/CICommitLink.tsx similarity index 100% rename from javascript/src/components/app/CICommitLink.tsx rename to src/components/app/CICommitLink.tsx diff --git a/javascript/src/components/app/EnvelopesWrapper.tsx b/src/components/app/EnvelopesWrapper.tsx similarity index 100% rename from javascript/src/components/app/EnvelopesWrapper.tsx rename to src/components/app/EnvelopesWrapper.tsx diff --git a/javascript/src/components/app/ExecutionSummary.module.scss b/src/components/app/ExecutionSummary.module.scss similarity index 100% rename from javascript/src/components/app/ExecutionSummary.module.scss rename to src/components/app/ExecutionSummary.module.scss diff --git a/javascript/src/components/app/ExecutionSummary.tsx b/src/components/app/ExecutionSummary.tsx similarity index 100% rename from javascript/src/components/app/ExecutionSummary.tsx rename to src/components/app/ExecutionSummary.tsx diff --git a/javascript/src/components/app/FilteredResults.module.scss b/src/components/app/FilteredResults.module.scss similarity index 100% rename from javascript/src/components/app/FilteredResults.module.scss rename to src/components/app/FilteredResults.module.scss diff --git a/javascript/src/components/app/FilteredResults.tsx b/src/components/app/FilteredResults.tsx similarity index 100% rename from javascript/src/components/app/FilteredResults.tsx rename to src/components/app/FilteredResults.tsx diff --git a/javascript/src/components/app/GherkinDocumentList.module.scss b/src/components/app/GherkinDocumentList.module.scss similarity index 100% rename from javascript/src/components/app/GherkinDocumentList.module.scss rename to src/components/app/GherkinDocumentList.module.scss diff --git a/javascript/src/components/app/GherkinDocumentList.tsx b/src/components/app/GherkinDocumentList.tsx similarity index 100% rename from javascript/src/components/app/GherkinDocumentList.tsx rename to src/components/app/GherkinDocumentList.tsx diff --git a/javascript/src/components/app/HighLight.tsx b/src/components/app/HighLight.tsx similarity index 100% rename from javascript/src/components/app/HighLight.tsx rename to src/components/app/HighLight.tsx diff --git a/javascript/src/components/app/NoMatchResult.module.scss b/src/components/app/NoMatchResult.module.scss similarity index 100% rename from javascript/src/components/app/NoMatchResult.module.scss rename to src/components/app/NoMatchResult.module.scss diff --git a/javascript/src/components/app/NoMatchResult.tsx b/src/components/app/NoMatchResult.tsx similarity index 100% rename from javascript/src/components/app/NoMatchResult.tsx rename to src/components/app/NoMatchResult.tsx diff --git a/javascript/src/components/app/OSIcon.tsx b/src/components/app/OSIcon.tsx similarity index 100% rename from javascript/src/components/app/OSIcon.tsx rename to src/components/app/OSIcon.tsx diff --git a/javascript/src/components/app/QueriesWrapper.tsx b/src/components/app/QueriesWrapper.tsx similarity index 100% rename from javascript/src/components/app/QueriesWrapper.tsx rename to src/components/app/QueriesWrapper.tsx diff --git a/javascript/src/components/app/RuntimeIcon.tsx b/src/components/app/RuntimeIcon.tsx similarity index 100% rename from javascript/src/components/app/RuntimeIcon.tsx rename to src/components/app/RuntimeIcon.tsx diff --git a/javascript/src/components/app/SearchBar.module.scss b/src/components/app/SearchBar.module.scss similarity index 100% rename from javascript/src/components/app/SearchBar.module.scss rename to src/components/app/SearchBar.module.scss diff --git a/javascript/src/components/app/SearchBar.tsx b/src/components/app/SearchBar.tsx similarity index 100% rename from javascript/src/components/app/SearchBar.tsx rename to src/components/app/SearchBar.tsx diff --git a/javascript/src/components/app/SearchWrapper.tsx b/src/components/app/SearchWrapper.tsx similarity index 100% rename from javascript/src/components/app/SearchWrapper.tsx rename to src/components/app/SearchWrapper.tsx diff --git a/javascript/src/components/app/StatusesSummary.module.scss b/src/components/app/StatusesSummary.module.scss similarity index 100% rename from javascript/src/components/app/StatusesSummary.module.scss rename to src/components/app/StatusesSummary.module.scss diff --git a/javascript/src/components/app/StatusesSummary.tsx b/src/components/app/StatusesSummary.tsx similarity index 100% rename from javascript/src/components/app/StatusesSummary.tsx rename to src/components/app/StatusesSummary.tsx diff --git a/javascript/src/components/app/icons/CucumberLogo.tsx b/src/components/app/icons/CucumberLogo.tsx similarity index 100% rename from javascript/src/components/app/icons/CucumberLogo.tsx rename to src/components/app/icons/CucumberLogo.tsx diff --git a/javascript/src/components/app/icons/Jvm.tsx b/src/components/app/icons/Jvm.tsx similarity index 100% rename from javascript/src/components/app/icons/Jvm.tsx rename to src/components/app/icons/Jvm.tsx diff --git a/javascript/src/components/app/icons/Linux.tsx b/src/components/app/icons/Linux.tsx similarity index 100% rename from javascript/src/components/app/icons/Linux.tsx rename to src/components/app/icons/Linux.tsx diff --git a/javascript/src/components/app/icons/MacOS.tsx b/src/components/app/icons/MacOS.tsx similarity index 100% rename from javascript/src/components/app/icons/MacOS.tsx rename to src/components/app/icons/MacOS.tsx diff --git a/javascript/src/components/app/icons/NodeJs.tsx b/src/components/app/icons/NodeJs.tsx similarity index 100% rename from javascript/src/components/app/icons/NodeJs.tsx rename to src/components/app/icons/NodeJs.tsx diff --git a/javascript/src/components/app/icons/Ruby.tsx b/src/components/app/icons/Ruby.tsx similarity index 100% rename from javascript/src/components/app/icons/Ruby.tsx rename to src/components/app/icons/Ruby.tsx diff --git a/javascript/src/components/app/icons/Windows.tsx b/src/components/app/icons/Windows.tsx similarity index 100% rename from javascript/src/components/app/icons/Windows.tsx rename to src/components/app/icons/Windows.tsx diff --git a/javascript/src/components/app/index.ts b/src/components/app/index.ts similarity index 100% rename from javascript/src/components/app/index.ts rename to src/components/app/index.ts diff --git a/javascript/src/components/app/rehypePlugins.ts b/src/components/app/rehypePlugins.ts similarity index 100% rename from javascript/src/components/app/rehypePlugins.ts rename to src/components/app/rehypePlugins.ts diff --git a/javascript/src/components/app/statuses.ts b/src/components/app/statuses.ts similarity index 100% rename from javascript/src/components/app/statuses.ts rename to src/components/app/statuses.ts diff --git a/javascript/src/components/customise/customRendering.tsx b/src/components/customise/customRendering.tsx similarity index 100% rename from javascript/src/components/customise/customRendering.tsx rename to src/components/customise/customRendering.tsx diff --git a/javascript/src/components/customise/index.ts b/src/components/customise/index.ts similarity index 100% rename from javascript/src/components/customise/index.ts rename to src/components/customise/index.ts diff --git a/javascript/src/components/customise/theming.ts b/src/components/customise/theming.ts similarity index 100% rename from javascript/src/components/customise/theming.ts rename to src/components/customise/theming.ts diff --git a/javascript/src/components/gherkin/Anchor.module.scss b/src/components/gherkin/Anchor.module.scss similarity index 100% rename from javascript/src/components/gherkin/Anchor.module.scss rename to src/components/gherkin/Anchor.module.scss diff --git a/javascript/src/components/gherkin/Anchor.tsx b/src/components/gherkin/Anchor.tsx similarity index 100% rename from javascript/src/components/gherkin/Anchor.tsx rename to src/components/gherkin/Anchor.tsx diff --git a/javascript/src/components/gherkin/Attachment.module.scss b/src/components/gherkin/Attachment.module.scss similarity index 100% rename from javascript/src/components/gherkin/Attachment.module.scss rename to src/components/gherkin/Attachment.module.scss diff --git a/javascript/src/components/gherkin/Attachment.tsx b/src/components/gherkin/Attachment.tsx similarity index 100% rename from javascript/src/components/gherkin/Attachment.tsx rename to src/components/gherkin/Attachment.tsx diff --git a/javascript/src/components/gherkin/Background.module.scss b/src/components/gherkin/Background.module.scss similarity index 100% rename from javascript/src/components/gherkin/Background.module.scss rename to src/components/gherkin/Background.module.scss diff --git a/javascript/src/components/gherkin/Background.tsx b/src/components/gherkin/Background.tsx similarity index 100% rename from javascript/src/components/gherkin/Background.tsx rename to src/components/gherkin/Background.tsx diff --git a/javascript/src/components/gherkin/Children.module.scss b/src/components/gherkin/Children.module.scss similarity index 100% rename from javascript/src/components/gherkin/Children.module.scss rename to src/components/gherkin/Children.module.scss diff --git a/javascript/src/components/gherkin/Children.tsx b/src/components/gherkin/Children.tsx similarity index 100% rename from javascript/src/components/gherkin/Children.tsx rename to src/components/gherkin/Children.tsx diff --git a/javascript/src/components/gherkin/DataTable.module.scss b/src/components/gherkin/DataTable.module.scss similarity index 100% rename from javascript/src/components/gherkin/DataTable.module.scss rename to src/components/gherkin/DataTable.module.scss diff --git a/javascript/src/components/gherkin/DataTable.tsx b/src/components/gherkin/DataTable.tsx similarity index 100% rename from javascript/src/components/gherkin/DataTable.tsx rename to src/components/gherkin/DataTable.tsx diff --git a/javascript/src/components/gherkin/Description.module.scss b/src/components/gherkin/Description.module.scss similarity index 100% rename from javascript/src/components/gherkin/Description.module.scss rename to src/components/gherkin/Description.module.scss diff --git a/javascript/src/components/gherkin/Description.tsx b/src/components/gherkin/Description.tsx similarity index 100% rename from javascript/src/components/gherkin/Description.tsx rename to src/components/gherkin/Description.tsx diff --git a/javascript/src/components/gherkin/DocString.module.scss b/src/components/gherkin/DocString.module.scss similarity index 100% rename from javascript/src/components/gherkin/DocString.module.scss rename to src/components/gherkin/DocString.module.scss diff --git a/javascript/src/components/gherkin/DocString.tsx b/src/components/gherkin/DocString.tsx similarity index 100% rename from javascript/src/components/gherkin/DocString.tsx rename to src/components/gherkin/DocString.tsx diff --git a/javascript/src/components/gherkin/ErrorMessage.module.scss b/src/components/gherkin/ErrorMessage.module.scss similarity index 100% rename from javascript/src/components/gherkin/ErrorMessage.module.scss rename to src/components/gherkin/ErrorMessage.module.scss diff --git a/javascript/src/components/gherkin/ErrorMessage.tsx b/src/components/gherkin/ErrorMessage.tsx similarity index 100% rename from javascript/src/components/gherkin/ErrorMessage.tsx rename to src/components/gherkin/ErrorMessage.tsx diff --git a/javascript/src/components/gherkin/Examples.tsx b/src/components/gherkin/Examples.tsx similarity index 100% rename from javascript/src/components/gherkin/Examples.tsx rename to src/components/gherkin/Examples.tsx diff --git a/javascript/src/components/gherkin/ExamplesTable.tsx b/src/components/gherkin/ExamplesTable.tsx similarity index 100% rename from javascript/src/components/gherkin/ExamplesTable.tsx rename to src/components/gherkin/ExamplesTable.tsx diff --git a/javascript/src/components/gherkin/Feature.tsx b/src/components/gherkin/Feature.tsx similarity index 100% rename from javascript/src/components/gherkin/Feature.tsx rename to src/components/gherkin/Feature.tsx diff --git a/javascript/src/components/gherkin/GherkinDocument.tsx b/src/components/gherkin/GherkinDocument.tsx similarity index 100% rename from javascript/src/components/gherkin/GherkinDocument.tsx rename to src/components/gherkin/GherkinDocument.tsx diff --git a/javascript/src/components/gherkin/GherkinStep.tsx b/src/components/gherkin/GherkinStep.tsx similarity index 100% rename from javascript/src/components/gherkin/GherkinStep.tsx rename to src/components/gherkin/GherkinStep.tsx diff --git a/javascript/src/components/gherkin/HookList.tsx b/src/components/gherkin/HookList.tsx similarity index 100% rename from javascript/src/components/gherkin/HookList.tsx rename to src/components/gherkin/HookList.tsx diff --git a/javascript/src/components/gherkin/HookStep.tsx b/src/components/gherkin/HookStep.tsx similarity index 100% rename from javascript/src/components/gherkin/HookStep.tsx rename to src/components/gherkin/HookStep.tsx diff --git a/javascript/src/components/gherkin/Keyword.module.scss b/src/components/gherkin/Keyword.module.scss similarity index 100% rename from javascript/src/components/gherkin/Keyword.module.scss rename to src/components/gherkin/Keyword.module.scss diff --git a/javascript/src/components/gherkin/Keyword.tsx b/src/components/gherkin/Keyword.tsx similarity index 100% rename from javascript/src/components/gherkin/Keyword.tsx rename to src/components/gherkin/Keyword.tsx diff --git a/javascript/src/components/gherkin/MDG.module.scss b/src/components/gherkin/MDG.module.scss similarity index 100% rename from javascript/src/components/gherkin/MDG.module.scss rename to src/components/gherkin/MDG.module.scss diff --git a/javascript/src/components/gherkin/MDG.tsx b/src/components/gherkin/MDG.tsx similarity index 100% rename from javascript/src/components/gherkin/MDG.tsx rename to src/components/gherkin/MDG.tsx diff --git a/javascript/src/components/gherkin/Parameter.module.scss b/src/components/gherkin/Parameter.module.scss similarity index 100% rename from javascript/src/components/gherkin/Parameter.module.scss rename to src/components/gherkin/Parameter.module.scss diff --git a/javascript/src/components/gherkin/Parameter.tsx b/src/components/gherkin/Parameter.tsx similarity index 100% rename from javascript/src/components/gherkin/Parameter.tsx rename to src/components/gherkin/Parameter.tsx diff --git a/javascript/src/components/gherkin/Rule.tsx b/src/components/gherkin/Rule.tsx similarity index 100% rename from javascript/src/components/gherkin/Rule.tsx rename to src/components/gherkin/Rule.tsx diff --git a/javascript/src/components/gherkin/Scenario.module.scss b/src/components/gherkin/Scenario.module.scss similarity index 100% rename from javascript/src/components/gherkin/Scenario.module.scss rename to src/components/gherkin/Scenario.module.scss diff --git a/javascript/src/components/gherkin/Scenario.tsx b/src/components/gherkin/Scenario.tsx similarity index 100% rename from javascript/src/components/gherkin/Scenario.tsx rename to src/components/gherkin/Scenario.tsx diff --git a/javascript/src/components/gherkin/StatusIcon.module.scss b/src/components/gherkin/StatusIcon.module.scss similarity index 100% rename from javascript/src/components/gherkin/StatusIcon.module.scss rename to src/components/gherkin/StatusIcon.module.scss diff --git a/javascript/src/components/gherkin/StatusIcon.tsx b/src/components/gherkin/StatusIcon.tsx similarity index 100% rename from javascript/src/components/gherkin/StatusIcon.tsx rename to src/components/gherkin/StatusIcon.tsx diff --git a/javascript/src/components/gherkin/StepItem.module.scss b/src/components/gherkin/StepItem.module.scss similarity index 100% rename from javascript/src/components/gherkin/StepItem.module.scss rename to src/components/gherkin/StepItem.module.scss diff --git a/javascript/src/components/gherkin/StepItem.tsx b/src/components/gherkin/StepItem.tsx similarity index 100% rename from javascript/src/components/gherkin/StepItem.tsx rename to src/components/gherkin/StepItem.tsx diff --git a/javascript/src/components/gherkin/StepList.tsx b/src/components/gherkin/StepList.tsx similarity index 100% rename from javascript/src/components/gherkin/StepList.tsx rename to src/components/gherkin/StepList.tsx diff --git a/javascript/src/components/gherkin/Tags.module.scss b/src/components/gherkin/Tags.module.scss similarity index 100% rename from javascript/src/components/gherkin/Tags.module.scss rename to src/components/gherkin/Tags.module.scss diff --git a/javascript/src/components/gherkin/Tags.tsx b/src/components/gherkin/Tags.tsx similarity index 100% rename from javascript/src/components/gherkin/Tags.tsx rename to src/components/gherkin/Tags.tsx diff --git a/javascript/src/components/gherkin/Title.module.scss b/src/components/gherkin/Title.module.scss similarity index 100% rename from javascript/src/components/gherkin/Title.module.scss rename to src/components/gherkin/Title.module.scss diff --git a/javascript/src/components/gherkin/Title.tsx b/src/components/gherkin/Title.tsx similarity index 100% rename from javascript/src/components/gherkin/Title.tsx rename to src/components/gherkin/Title.tsx diff --git a/javascript/src/components/gherkin/index.ts b/src/components/gherkin/index.ts similarity index 100% rename from javascript/src/components/gherkin/index.ts rename to src/components/gherkin/index.ts diff --git a/javascript/src/components/gherkin/isNumber.ts b/src/components/gherkin/isNumber.ts similarity index 100% rename from javascript/src/components/gherkin/isNumber.ts rename to src/components/gherkin/isNumber.ts diff --git a/javascript/src/components/gherkin/statusName.ts b/src/components/gherkin/statusName.ts similarity index 100% rename from javascript/src/components/gherkin/statusName.ts rename to src/components/gherkin/statusName.ts diff --git a/javascript/src/components/index.ts b/src/components/index.ts similarity index 100% rename from javascript/src/components/index.ts rename to src/components/index.ts diff --git a/javascript/src/countScenariosByStatuses.ts b/src/countScenariosByStatuses.ts similarity index 100% rename from javascript/src/countScenariosByStatuses.ts rename to src/countScenariosByStatuses.ts diff --git a/javascript/src/custom.d.ts b/src/custom.d.ts similarity index 100% rename from javascript/src/custom.d.ts rename to src/custom.d.ts diff --git a/javascript/src/filter/filterByStatus.ts b/src/filter/filterByStatus.ts similarity index 100% rename from javascript/src/filter/filterByStatus.ts rename to src/filter/filterByStatus.ts diff --git a/javascript/src/hooks/index.ts b/src/hooks/index.ts similarity index 100% rename from javascript/src/hooks/index.ts rename to src/hooks/index.ts diff --git a/javascript/src/hooks/useQueries.ts b/src/hooks/useQueries.ts similarity index 100% rename from javascript/src/hooks/useQueries.ts rename to src/hooks/useQueries.ts diff --git a/javascript/src/hooks/useSearch.ts b/src/hooks/useSearch.ts similarity index 100% rename from javascript/src/hooks/useSearch.ts rename to src/hooks/useSearch.ts diff --git a/javascript/src/index.ts b/src/index.ts similarity index 100% rename from javascript/src/index.ts rename to src/index.ts diff --git a/javascript/src/isTagExpression.ts b/src/isTagExpression.ts similarity index 100% rename from javascript/src/isTagExpression.ts rename to src/isTagExpression.ts diff --git a/javascript/src/search/FeatureSearch.ts b/src/search/FeatureSearch.ts similarity index 100% rename from javascript/src/search/FeatureSearch.ts rename to src/search/FeatureSearch.ts diff --git a/javascript/src/search/RuleSearch.ts b/src/search/RuleSearch.ts similarity index 100% rename from javascript/src/search/RuleSearch.ts rename to src/search/RuleSearch.ts diff --git a/javascript/src/search/ScenarioSearch.ts b/src/search/ScenarioSearch.ts similarity index 100% rename from javascript/src/search/ScenarioSearch.ts rename to src/search/ScenarioSearch.ts diff --git a/javascript/src/search/Search.ts b/src/search/Search.ts similarity index 100% rename from javascript/src/search/Search.ts rename to src/search/Search.ts diff --git a/javascript/src/search/StepSearch.ts b/src/search/StepSearch.ts similarity index 100% rename from javascript/src/search/StepSearch.ts rename to src/search/StepSearch.ts diff --git a/javascript/src/search/TagSearch.ts b/src/search/TagSearch.ts similarity index 100% rename from javascript/src/search/TagSearch.ts rename to src/search/TagSearch.ts diff --git a/javascript/src/search/TextSearch.ts b/src/search/TextSearch.ts similarity index 100% rename from javascript/src/search/TextSearch.ts rename to src/search/TextSearch.ts diff --git a/javascript/src/stories/Classes.stories.tsx b/src/stories/Classes.stories.tsx similarity index 100% rename from javascript/src/stories/Classes.stories.tsx rename to src/stories/Classes.stories.tsx diff --git a/javascript/src/stories/Components.stories.tsx b/src/stories/Components.stories.tsx similarity index 100% rename from javascript/src/stories/Components.stories.tsx rename to src/stories/Components.stories.tsx diff --git a/javascript/src/stories/ExecutionSummary.stories.tsx b/src/stories/ExecutionSummary.stories.tsx similarity index 100% rename from javascript/src/stories/ExecutionSummary.stories.tsx rename to src/stories/ExecutionSummary.stories.tsx diff --git a/javascript/src/stories/FilteredResults.stories.tsx b/src/stories/FilteredResults.stories.tsx similarity index 100% rename from javascript/src/stories/FilteredResults.stories.tsx rename to src/stories/FilteredResults.stories.tsx diff --git a/javascript/src/stories/GherkinDocument.stories.tsx b/src/stories/GherkinDocument.stories.tsx similarity index 100% rename from javascript/src/stories/GherkinDocument.stories.tsx rename to src/stories/GherkinDocument.stories.tsx diff --git a/javascript/src/stories/MDG.stories.tsx b/src/stories/MDG.stories.tsx similarity index 100% rename from javascript/src/stories/MDG.stories.tsx rename to src/stories/MDG.stories.tsx diff --git a/javascript/src/stories/StatusesSummary.stories.tsx b/src/stories/StatusesSummary.stories.tsx similarity index 100% rename from javascript/src/stories/StatusesSummary.stories.tsx rename to src/stories/StatusesSummary.stories.tsx diff --git a/javascript/src/stories/Themes.stories.tsx b/src/stories/Themes.stories.tsx similarity index 100% rename from javascript/src/stories/Themes.stories.tsx rename to src/stories/Themes.stories.tsx diff --git a/javascript/src/stories/custom-classes.scss b/src/stories/custom-classes.scss similarity index 100% rename from javascript/src/stories/custom-classes.scss rename to src/stories/custom-classes.scss diff --git a/javascript/src/styles/theming.scss b/src/styles/theming.scss similarity index 100% rename from javascript/src/styles/theming.scss rename to src/styles/theming.scss diff --git a/javascript/src/toRepositoryId.ts b/src/toRepositoryId.ts similarity index 100% rename from javascript/src/toRepositoryId.ts rename to src/toRepositoryId.ts diff --git a/javascript/test/CucumberQueryStream.ts b/test/CucumberQueryStream.ts similarity index 100% rename from javascript/test/CucumberQueryStream.ts rename to test/CucumberQueryStream.ts diff --git a/javascript/test/HighlightTest.tsx b/test/HighlightTest.tsx similarity index 100% rename from javascript/test/HighlightTest.tsx rename to test/HighlightTest.tsx diff --git a/javascript/test/MarkdownTest.tsx b/test/MarkdownTest.tsx similarity index 100% rename from javascript/test/MarkdownTest.tsx rename to test/MarkdownTest.tsx diff --git a/javascript/test/SearchQueryContextTest.ts b/test/SearchQueryContextTest.ts similarity index 100% rename from javascript/test/SearchQueryContextTest.ts rename to test/SearchQueryContextTest.ts diff --git a/javascript/test/acceptanceTests.tsx b/test/acceptanceTests.tsx similarity index 100% rename from javascript/test/acceptanceTests.tsx rename to test/acceptanceTests.tsx diff --git a/javascript/test/ciCommitLinkTest.ts b/test/ciCommitLinkTest.ts similarity index 100% rename from javascript/test/ciCommitLinkTest.ts rename to test/ciCommitLinkTest.ts diff --git a/javascript/test/components/app/ExecutionSummaryTest.tsx b/test/components/app/ExecutionSummaryTest.tsx similarity index 100% rename from javascript/test/components/app/ExecutionSummaryTest.tsx rename to test/components/app/ExecutionSummaryTest.tsx diff --git a/javascript/test/components/app/FilteredResultsTest.tsx b/test/components/app/FilteredResultsTest.tsx similarity index 100% rename from javascript/test/components/app/FilteredResultsTest.tsx rename to test/components/app/FilteredResultsTest.tsx diff --git a/javascript/test/components/app/SearchBarTest.tsx b/test/components/app/SearchBarTest.tsx similarity index 100% rename from javascript/test/components/app/SearchBarTest.tsx rename to test/components/app/SearchBarTest.tsx diff --git a/javascript/test/components/app/SearchWrapperTest.tsx b/test/components/app/SearchWrapperTest.tsx similarity index 100% rename from javascript/test/components/app/SearchWrapperTest.tsx rename to test/components/app/SearchWrapperTest.tsx diff --git a/javascript/test/components/app/StatusesSummaryTest.tsx b/test/components/app/StatusesSummaryTest.tsx similarity index 100% rename from javascript/test/components/app/StatusesSummaryTest.tsx rename to test/components/app/StatusesSummaryTest.tsx diff --git a/javascript/test/components/customise/CustomRenderingTest.tsx b/test/components/customise/CustomRenderingTest.tsx similarity index 100% rename from javascript/test/components/customise/CustomRenderingTest.tsx rename to test/components/customise/CustomRenderingTest.tsx diff --git a/javascript/test/components/gherkin/AttachmentTest.tsx b/test/components/gherkin/AttachmentTest.tsx similarity index 100% rename from javascript/test/components/gherkin/AttachmentTest.tsx rename to test/components/gherkin/AttachmentTest.tsx diff --git a/javascript/test/components/gherkin/DescriptionTest.tsx b/test/components/gherkin/DescriptionTest.tsx similarity index 100% rename from javascript/test/components/gherkin/DescriptionTest.tsx rename to test/components/gherkin/DescriptionTest.tsx diff --git a/javascript/test/components/gherkin/HookStepTest.tsx b/test/components/gherkin/HookStepTest.tsx similarity index 100% rename from javascript/test/components/gherkin/HookStepTest.tsx rename to test/components/gherkin/HookStepTest.tsx diff --git a/javascript/test/components/gherkin/StepTest.tsx b/test/components/gherkin/StepTest.tsx similarity index 100% rename from javascript/test/components/gherkin/StepTest.tsx rename to test/components/gherkin/StepTest.tsx diff --git a/javascript/test/components/gherkin/TagsTest.tsx b/test/components/gherkin/TagsTest.tsx similarity index 100% rename from javascript/test/components/gherkin/TagsTest.tsx rename to test/components/gherkin/TagsTest.tsx diff --git a/javascript/test/components/utils.tsx b/test/components/utils.tsx similarity index 100% rename from javascript/test/components/utils.tsx rename to test/components/utils.tsx diff --git a/javascript/test/countScenariosByStatusesTest.ts b/test/countScenariosByStatusesTest.ts similarity index 100% rename from javascript/test/countScenariosByStatusesTest.ts rename to test/countScenariosByStatusesTest.ts diff --git a/javascript/test/filter/filterByStatusTest.ts b/test/filter/filterByStatusTest.ts similarity index 100% rename from javascript/test/filter/filterByStatusTest.ts rename to test/filter/filterByStatusTest.ts diff --git a/javascript/test/isTagExpressionTest.ts b/test/isTagExpressionTest.ts similarity index 100% rename from javascript/test/isTagExpressionTest.ts rename to test/isTagExpressionTest.ts diff --git a/javascript/test/messageTests.tsx b/test/messageTests.tsx similarity index 100% rename from javascript/test/messageTests.tsx rename to test/messageTests.tsx diff --git a/javascript/test/messages/README.md b/test/messages/README.md similarity index 100% rename from javascript/test/messages/README.md rename to test/messages/README.md diff --git a/javascript/test/messages/hooks-jvm.ndjson b/test/messages/hooks-jvm.ndjson similarity index 100% rename from javascript/test/messages/hooks-jvm.ndjson rename to test/messages/hooks-jvm.ndjson diff --git a/javascript/test/messages/production/.gitignore b/test/messages/production/.gitignore similarity index 100% rename from javascript/test/messages/production/.gitignore rename to test/messages/production/.gitignore diff --git a/javascript/test/parseGitUrlTest.ts b/test/parseGitUrlTest.ts similarity index 100% rename from javascript/test/parseGitUrlTest.ts rename to test/parseGitUrlTest.ts diff --git a/javascript/test/runFeature.ts b/test/runFeature.ts similarity index 100% rename from javascript/test/runFeature.ts rename to test/runFeature.ts diff --git a/javascript/test/search/FeatureSearchTest.ts b/test/search/FeatureSearchTest.ts similarity index 100% rename from javascript/test/search/FeatureSearchTest.ts rename to test/search/FeatureSearchTest.ts diff --git a/javascript/test/search/RuleSearchTest.ts b/test/search/RuleSearchTest.ts similarity index 100% rename from javascript/test/search/RuleSearchTest.ts rename to test/search/RuleSearchTest.ts diff --git a/javascript/test/search/ScenarioSearchTest.ts b/test/search/ScenarioSearchTest.ts similarity index 100% rename from javascript/test/search/ScenarioSearchTest.ts rename to test/search/ScenarioSearchTest.ts diff --git a/javascript/test/search/SearchTest.ts b/test/search/SearchTest.ts similarity index 100% rename from javascript/test/search/SearchTest.ts rename to test/search/SearchTest.ts diff --git a/javascript/test/search/StepSearchTest.ts b/test/search/StepSearchTest.ts similarity index 100% rename from javascript/test/search/StepSearchTest.ts rename to test/search/StepSearchTest.ts diff --git a/javascript/test/search/TagSearchTest.ts b/test/search/TagSearchTest.ts similarity index 100% rename from javascript/test/search/TagSearchTest.ts rename to test/search/TagSearchTest.ts diff --git a/javascript/test/search/TextSearchTest.ts b/test/search/TextSearchTest.ts similarity index 100% rename from javascript/test/search/TextSearchTest.ts rename to test/search/TextSearchTest.ts diff --git a/javascript/test/search/utils.ts b/test/search/utils.ts similarity index 100% rename from javascript/test/search/utils.ts rename to test/search/utils.ts diff --git a/tsconfig.build-cjs.json b/tsconfig.build-cjs.json new file mode 100644 index 00000000..da76f4bb --- /dev/null +++ b/tsconfig.build-cjs.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.build.json", + "compilerOptions": { + "outDir": "dist/cjs", + "target": "ES5", + "module": "CommonJS", + }, +} diff --git a/tsconfig.build-esm.json b/tsconfig.build-esm.json new file mode 100644 index 00000000..735b5257 --- /dev/null +++ b/tsconfig.build-esm.json @@ -0,0 +1,11 @@ +{ + "extends": "./tsconfig.build.json", + "compilerOptions": { + "lib": [ + "ES2019" + ], + "target": "ES6", + "module": "ES6", + "outDir": "dist/esm" + }, +} diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 00000000..dbb64be6 --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1,15 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "sourceMap": true, + "rootDir": ".", + "noEmit": false + }, + "include": [ + "src", + "test" + ], +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 00000000..d7096852 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "baseUrl": ".", + "declaration": true, + "sourceMap": true, + "allowJs": false, + "resolveJsonModule": true, + "esModuleInterop": true, + "noImplicitAny": true, + "downlevelIteration": true, + "skipLibCheck": true, + "strictNullChecks": true, + "experimentalDecorators": true, + "module": "ESNext", + "lib": [ + "ES6", + "dom" + ], + "target": "ES6", + "moduleResolution": "node", + "allowSyntheticDefaultImports": true, + "noEmit": true, + "jsx": "react" + } +}