Skip to content

Commit

Permalink
Move javascript/* to root
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Jan 7, 2022
1 parent eadbf43 commit cb74356
Show file tree
Hide file tree
Showing 173 changed files with 145 additions and 245 deletions.
57 changes: 57 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
8 changes: 0 additions & 8 deletions javascript/.gitignore → .gitignore
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion javascript/.mocharc.json → .mocharc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"require": [
"tsconfig-paths/register",
"ts-node/register",
"source-map-support/register",
"./css-modules-hook.js",
Expand Down
6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"trailingComma": "es5",
"semi": false,
"singleQuote": true,
"printWidth": 100
}
1 change: 0 additions & 1 deletion .rsync

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
21 changes: 20 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
include default.mk
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 $@
File renamed without changes.
File renamed without changes.
89 changes: 0 additions & 89 deletions default.mk

This file was deleted.

5 changes: 0 additions & 5 deletions javascript/.github/ISSUE_TEMPLATE.md

This file was deleted.

5 changes: 0 additions & 5 deletions javascript/.github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

3 changes: 0 additions & 3 deletions javascript/.rsync

This file was deleted.

23 changes: 0 additions & 23 deletions javascript/Makefile

This file was deleted.

87 changes: 0 additions & 87 deletions javascript/default.mk

This file was deleted.

15 changes: 0 additions & 15 deletions javascript/tsconfig.build.json

This file was deleted.

6 changes: 0 additions & 6 deletions javascript/tsconfig.json

This file was deleted.

1 change: 1 addition & 0 deletions package.cjs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"type": "commonjs"}
3 changes: 2 additions & 1 deletion javascript/package.json → package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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",
Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions tsconfig.build-cjs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.build.json",
"compilerOptions": {
"outDir": "dist/cjs",
"target": "ES5",
"module": "CommonJS",
},
}
11 changes: 11 additions & 0 deletions tsconfig.build-esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "./tsconfig.build.json",
"compilerOptions": {
"lib": [
"ES2019"
],
"target": "ES6",
"module": "ES6",
"outDir": "dist/esm"
},
}
Loading

0 comments on commit cb74356

Please sign in to comment.