diff --git a/Makefile b/Makefile index bf954be0..de9a8482 100644 --- a/Makefile +++ b/Makefile @@ -60,7 +60,7 @@ ifeq ($(CORE_PHONY),1) endif deps: git_hooks deps_core deps_packages -build: build_core build_integration build_packages +build: build_core build_core_js build_packages test: test_core test_packages clean: clean_core clean_integration @@ -126,16 +126,16 @@ clean_core: ################# ## INTEGRATION ## ################# -build_integration: ${MAP_STD} ${PROFILE_VALIDATOR} +build_core_js: ${MAP_STD} ${PROFILE_VALIDATOR} ${MAP_STD}: - cd integration && yarn install && yarn workspace @superfaceai/map-std build + cd core_js && yarn install && yarn workspace @superfaceai/map-std build ${PROFILE_VALIDATOR}: - cd integration && yarn install && yarn workspace @superfaceai/profile-validator build + cd core_js && yarn install && yarn workspace @superfaceai/profile-validator build test_integration: - cd integration && \ + cd core_js && \ yarn workspace @superfaceai/map-std test && \ yarn workspace @superfaceai/profile-validator test diff --git a/integration/.gitignore b/core_js/.gitignore similarity index 100% rename from integration/.gitignore rename to core_js/.gitignore diff --git a/integration/core-ffi/ffi.d.ts b/core_js/core-ffi/ffi.d.ts similarity index 100% rename from integration/core-ffi/ffi.d.ts rename to core_js/core-ffi/ffi.d.ts diff --git a/integration/core-ffi/package.json b/core_js/core-ffi/package.json similarity index 100% rename from integration/core-ffi/package.json rename to core_js/core-ffi/package.json diff --git a/integration/map-std/.gitignore b/core_js/map-std/.gitignore similarity index 100% rename from integration/map-std/.gitignore rename to core_js/map-std/.gitignore diff --git a/integration/map-std/package.json b/core_js/map-std/package.json similarity index 100% rename from integration/map-std/package.json rename to core_js/map-std/package.json diff --git a/integration/map-std/src/internal/bytes.ts b/core_js/map-std/src/internal/bytes.ts similarity index 100% rename from integration/map-std/src/internal/bytes.ts rename to core_js/map-std/src/internal/bytes.ts diff --git a/integration/map-std/src/internal/message.ts b/core_js/map-std/src/internal/message.ts similarity index 100% rename from integration/map-std/src/internal/message.ts rename to core_js/map-std/src/internal/message.ts diff --git a/integration/map-std/src/internal/node_compat.ts b/core_js/map-std/src/internal/node_compat.ts similarity index 100% rename from integration/map-std/src/internal/node_compat.ts rename to core_js/map-std/src/internal/node_compat.ts diff --git a/integration/map-std/src/internal/types.ts b/core_js/map-std/src/internal/types.ts similarity index 100% rename from integration/map-std/src/internal/types.ts rename to core_js/map-std/src/internal/types.ts diff --git a/integration/map-std/src/internal/util.ts b/core_js/map-std/src/internal/util.ts similarity index 100% rename from integration/map-std/src/internal/util.ts rename to core_js/map-std/src/internal/util.ts diff --git a/integration/map-std/src/map_std.ts b/core_js/map-std/src/map_std.ts similarity index 100% rename from integration/map-std/src/map_std.ts rename to core_js/map-std/src/map_std.ts diff --git a/integration/map-std/src/std.ts b/core_js/map-std/src/std.ts similarity index 100% rename from integration/map-std/src/std.ts rename to core_js/map-std/src/std.ts diff --git a/integration/map-std/src/unstable.ts b/core_js/map-std/src/unstable.ts similarity index 100% rename from integration/map-std/src/unstable.ts rename to core_js/map-std/src/unstable.ts diff --git a/integration/map-std/tsconfig.json b/core_js/map-std/tsconfig.json similarity index 100% rename from integration/map-std/tsconfig.json rename to core_js/map-std/tsconfig.json diff --git a/integration/package.json b/core_js/package.json similarity index 75% rename from integration/package.json rename to core_js/package.json index 90f09818..bbed6f96 100644 --- a/integration/package.json +++ b/core_js/package.json @@ -1,5 +1,5 @@ { - "name": "@superfaceai/integration", + "name": "@superfaceai/core-js", "version": "0.1.0", "private": true, "workspaces": [ @@ -7,4 +7,4 @@ "map-std", "profile-validator" ] -} +} \ No newline at end of file diff --git a/integration/profile-validator/.gitignore b/core_js/profile-validator/.gitignore similarity index 100% rename from integration/profile-validator/.gitignore rename to core_js/profile-validator/.gitignore diff --git a/integration/profile-validator/package.json b/core_js/profile-validator/package.json similarity index 100% rename from integration/profile-validator/package.json rename to core_js/profile-validator/package.json diff --git a/integration/profile-validator/src/ast/index.ts b/core_js/profile-validator/src/ast/index.ts similarity index 100% rename from integration/profile-validator/src/ast/index.ts rename to core_js/profile-validator/src/ast/index.ts diff --git a/integration/profile-validator/src/ast/profile-ast.ts b/core_js/profile-validator/src/ast/profile-ast.ts similarity index 100% rename from integration/profile-validator/src/ast/profile-ast.ts rename to core_js/profile-validator/src/ast/profile-ast.ts diff --git a/integration/profile-validator/src/ast/source.ts b/core_js/profile-validator/src/ast/source.ts similarity index 100% rename from integration/profile-validator/src/ast/source.ts rename to core_js/profile-validator/src/ast/source.ts diff --git a/integration/profile-validator/src/ast/split.ts b/core_js/profile-validator/src/ast/split.ts similarity index 100% rename from integration/profile-validator/src/ast/split.ts rename to core_js/profile-validator/src/ast/split.ts diff --git a/integration/profile-validator/src/ast/utils.ts b/core_js/profile-validator/src/ast/utils.ts similarity index 100% rename from integration/profile-validator/src/ast/utils.ts rename to core_js/profile-validator/src/ast/utils.ts diff --git a/integration/profile-validator/src/parser/common/document/index.ts b/core_js/profile-validator/src/parser/common/document/index.ts similarity index 100% rename from integration/profile-validator/src/parser/common/document/index.ts rename to core_js/profile-validator/src/parser/common/document/index.ts diff --git a/integration/profile-validator/src/parser/common/document/interfaces.ts b/core_js/profile-validator/src/parser/common/document/interfaces.ts similarity index 100% rename from integration/profile-validator/src/parser/common/document/interfaces.ts rename to core_js/profile-validator/src/parser/common/document/interfaces.ts diff --git a/integration/profile-validator/src/parser/common/document/map.ts b/core_js/profile-validator/src/parser/common/document/map.ts similarity index 100% rename from integration/profile-validator/src/parser/common/document/map.ts rename to core_js/profile-validator/src/parser/common/document/map.ts diff --git a/integration/profile-validator/src/parser/common/document/parser.ts b/core_js/profile-validator/src/parser/common/document/parser.ts similarity index 100% rename from integration/profile-validator/src/parser/common/document/parser.ts rename to core_js/profile-validator/src/parser/common/document/parser.ts diff --git a/integration/profile-validator/src/parser/common/document/profile.ts b/core_js/profile-validator/src/parser/common/document/profile.ts similarity index 100% rename from integration/profile-validator/src/parser/common/document/profile.ts rename to core_js/profile-validator/src/parser/common/document/profile.ts diff --git a/integration/profile-validator/src/parser/common/document/version.ts b/core_js/profile-validator/src/parser/common/document/version.ts similarity index 100% rename from integration/profile-validator/src/parser/common/document/version.ts rename to core_js/profile-validator/src/parser/common/document/version.ts diff --git a/integration/profile-validator/src/parser/common/index.ts b/core_js/profile-validator/src/parser/common/index.ts similarity index 100% rename from integration/profile-validator/src/parser/common/index.ts rename to core_js/profile-validator/src/parser/common/index.ts diff --git a/integration/profile-validator/src/parser/common/source/index.ts b/core_js/profile-validator/src/parser/common/source/index.ts similarity index 100% rename from integration/profile-validator/src/parser/common/source/index.ts rename to core_js/profile-validator/src/parser/common/source/index.ts diff --git a/integration/profile-validator/src/parser/common/source/source.ts b/core_js/profile-validator/src/parser/common/source/source.ts similarity index 100% rename from integration/profile-validator/src/parser/common/source/source.ts rename to core_js/profile-validator/src/parser/common/source/source.ts diff --git a/integration/profile-validator/src/parser/common/source/util.ts b/core_js/profile-validator/src/parser/common/source/util.ts similarity index 100% rename from integration/profile-validator/src/parser/common/source/util.ts rename to core_js/profile-validator/src/parser/common/source/util.ts diff --git a/integration/profile-validator/src/parser/error.ts b/core_js/profile-validator/src/parser/error.ts similarity index 100% rename from integration/profile-validator/src/parser/error.ts rename to core_js/profile-validator/src/parser/error.ts diff --git a/integration/profile-validator/src/parser/index.ts b/core_js/profile-validator/src/parser/index.ts similarity index 100% rename from integration/profile-validator/src/parser/index.ts rename to core_js/profile-validator/src/parser/index.ts diff --git a/integration/profile-validator/src/parser/lexer/context.ts b/core_js/profile-validator/src/parser/lexer/context.ts similarity index 100% rename from integration/profile-validator/src/parser/lexer/context.ts rename to core_js/profile-validator/src/parser/lexer/context.ts diff --git a/integration/profile-validator/src/parser/lexer/index.ts b/core_js/profile-validator/src/parser/lexer/index.ts similarity index 100% rename from integration/profile-validator/src/parser/lexer/index.ts rename to core_js/profile-validator/src/parser/lexer/index.ts diff --git a/integration/profile-validator/src/parser/lexer/lexer.ts b/core_js/profile-validator/src/parser/lexer/lexer.ts similarity index 100% rename from integration/profile-validator/src/parser/lexer/lexer.ts rename to core_js/profile-validator/src/parser/lexer/lexer.ts diff --git a/integration/profile-validator/src/parser/lexer/sublexer/default/glue.ts b/core_js/profile-validator/src/parser/lexer/sublexer/default/glue.ts similarity index 100% rename from integration/profile-validator/src/parser/lexer/sublexer/default/glue.ts rename to core_js/profile-validator/src/parser/lexer/sublexer/default/glue.ts diff --git a/integration/profile-validator/src/parser/lexer/sublexer/default/index.ts b/core_js/profile-validator/src/parser/lexer/sublexer/default/index.ts similarity index 100% rename from integration/profile-validator/src/parser/lexer/sublexer/default/index.ts rename to core_js/profile-validator/src/parser/lexer/sublexer/default/index.ts diff --git a/integration/profile-validator/src/parser/lexer/sublexer/default/number.ts b/core_js/profile-validator/src/parser/lexer/sublexer/default/number.ts similarity index 100% rename from integration/profile-validator/src/parser/lexer/sublexer/default/number.ts rename to core_js/profile-validator/src/parser/lexer/sublexer/default/number.ts diff --git a/integration/profile-validator/src/parser/lexer/sublexer/default/rules.ts b/core_js/profile-validator/src/parser/lexer/sublexer/default/rules.ts similarity index 100% rename from integration/profile-validator/src/parser/lexer/sublexer/default/rules.ts rename to core_js/profile-validator/src/parser/lexer/sublexer/default/rules.ts diff --git a/integration/profile-validator/src/parser/lexer/sublexer/default/string.ts b/core_js/profile-validator/src/parser/lexer/sublexer/default/string.ts similarity index 100% rename from integration/profile-validator/src/parser/lexer/sublexer/default/string.ts rename to core_js/profile-validator/src/parser/lexer/sublexer/default/string.ts diff --git a/integration/profile-validator/src/parser/lexer/sublexer/result.ts b/core_js/profile-validator/src/parser/lexer/sublexer/result.ts similarity index 100% rename from integration/profile-validator/src/parser/lexer/sublexer/result.ts rename to core_js/profile-validator/src/parser/lexer/sublexer/result.ts diff --git a/integration/profile-validator/src/parser/lexer/token.ts b/core_js/profile-validator/src/parser/lexer/token.ts similarity index 100% rename from integration/profile-validator/src/parser/lexer/token.ts rename to core_js/profile-validator/src/parser/lexer/token.ts diff --git a/integration/profile-validator/src/parser/metadata.ts b/core_js/profile-validator/src/parser/metadata.ts similarity index 100% rename from integration/profile-validator/src/parser/metadata.ts rename to core_js/profile-validator/src/parser/metadata.ts diff --git a/integration/profile-validator/src/parser/syntax/features.ts b/core_js/profile-validator/src/parser/syntax/features.ts similarity index 100% rename from integration/profile-validator/src/parser/syntax/features.ts rename to core_js/profile-validator/src/parser/syntax/features.ts diff --git a/integration/profile-validator/src/parser/syntax/index.ts b/core_js/profile-validator/src/parser/syntax/index.ts similarity index 100% rename from integration/profile-validator/src/parser/syntax/index.ts rename to core_js/profile-validator/src/parser/syntax/index.ts diff --git a/integration/profile-validator/src/parser/syntax/parser.ts b/core_js/profile-validator/src/parser/syntax/parser.ts similarity index 100% rename from integration/profile-validator/src/parser/syntax/parser.ts rename to core_js/profile-validator/src/parser/syntax/parser.ts diff --git a/integration/profile-validator/src/parser/syntax/rule.ts b/core_js/profile-validator/src/parser/syntax/rule.ts similarity index 100% rename from integration/profile-validator/src/parser/syntax/rule.ts rename to core_js/profile-validator/src/parser/syntax/rule.ts diff --git a/integration/profile-validator/src/parser/syntax/rules/common.ts b/core_js/profile-validator/src/parser/syntax/rules/common.ts similarity index 100% rename from integration/profile-validator/src/parser/syntax/rules/common.ts rename to core_js/profile-validator/src/parser/syntax/rules/common.ts diff --git a/integration/profile-validator/src/parser/syntax/rules/profile/index.ts b/core_js/profile-validator/src/parser/syntax/rules/profile/index.ts similarity index 100% rename from integration/profile-validator/src/parser/syntax/rules/profile/index.ts rename to core_js/profile-validator/src/parser/syntax/rules/profile/index.ts diff --git a/integration/profile-validator/src/parser/syntax/rules/profile/literal.ts b/core_js/profile-validator/src/parser/syntax/rules/profile/literal.ts similarity index 100% rename from integration/profile-validator/src/parser/syntax/rules/profile/literal.ts rename to core_js/profile-validator/src/parser/syntax/rules/profile/literal.ts diff --git a/integration/profile-validator/src/parser/syntax/rules/profile/profile.ts b/core_js/profile-validator/src/parser/syntax/rules/profile/profile.ts similarity index 100% rename from integration/profile-validator/src/parser/syntax/rules/profile/profile.ts rename to core_js/profile-validator/src/parser/syntax/rules/profile/profile.ts diff --git a/integration/profile-validator/src/parser/syntax/util.ts b/core_js/profile-validator/src/parser/syntax/util.ts similarity index 100% rename from integration/profile-validator/src/parser/syntax/util.ts rename to core_js/profile-validator/src/parser/syntax/util.ts diff --git a/integration/profile-validator/src/profile_validator.ts b/core_js/profile-validator/src/profile_validator.ts similarity index 100% rename from integration/profile-validator/src/profile_validator.ts rename to core_js/profile-validator/src/profile_validator.ts diff --git a/integration/profile-validator/src/validator/index.ts b/core_js/profile-validator/src/validator/index.ts similarity index 100% rename from integration/profile-validator/src/validator/index.ts rename to core_js/profile-validator/src/validator/index.ts diff --git a/integration/profile-validator/src/validator/interfaces/binary.ts b/core_js/profile-validator/src/validator/interfaces/binary.ts similarity index 100% rename from integration/profile-validator/src/validator/interfaces/binary.ts rename to core_js/profile-validator/src/validator/interfaces/binary.ts diff --git a/integration/profile-validator/src/validator/interfaces/index.ts b/core_js/profile-validator/src/validator/interfaces/index.ts similarity index 100% rename from integration/profile-validator/src/validator/interfaces/index.ts rename to core_js/profile-validator/src/validator/interfaces/index.ts diff --git a/integration/profile-validator/src/validator/interfaces/profile-parameter-validator.errors.ts b/core_js/profile-validator/src/validator/interfaces/profile-parameter-validator.errors.ts similarity index 100% rename from integration/profile-validator/src/validator/interfaces/profile-parameter-validator.errors.ts rename to core_js/profile-validator/src/validator/interfaces/profile-parameter-validator.errors.ts diff --git a/integration/profile-validator/src/validator/lib/error.ts b/core_js/profile-validator/src/validator/lib/error.ts similarity index 100% rename from integration/profile-validator/src/validator/lib/error.ts rename to core_js/profile-validator/src/validator/lib/error.ts diff --git a/integration/profile-validator/src/validator/lib/index.ts b/core_js/profile-validator/src/validator/lib/index.ts similarity index 100% rename from integration/profile-validator/src/validator/lib/index.ts rename to core_js/profile-validator/src/validator/lib/index.ts diff --git a/integration/profile-validator/src/validator/lib/result.ts b/core_js/profile-validator/src/validator/lib/result.ts similarity index 100% rename from integration/profile-validator/src/validator/lib/result.ts rename to core_js/profile-validator/src/validator/lib/result.ts diff --git a/integration/profile-validator/src/validator/lib/variables.ts b/core_js/profile-validator/src/validator/lib/variables.ts similarity index 100% rename from integration/profile-validator/src/validator/lib/variables.ts rename to core_js/profile-validator/src/validator/lib/variables.ts diff --git a/integration/profile-validator/src/validator/profile/interfaces.ts b/core_js/profile-validator/src/validator/profile/interfaces.ts similarity index 100% rename from integration/profile-validator/src/validator/profile/interfaces.ts rename to core_js/profile-validator/src/validator/profile/interfaces.ts diff --git a/integration/profile-validator/src/validator/profile/profile-parameter-validator.errors.ts b/core_js/profile-validator/src/validator/profile/profile-parameter-validator.errors.ts similarity index 100% rename from integration/profile-validator/src/validator/profile/profile-parameter-validator.errors.ts rename to core_js/profile-validator/src/validator/profile/profile-parameter-validator.errors.ts diff --git a/integration/profile-validator/src/validator/profile/profile-parameter-validator.ts b/core_js/profile-validator/src/validator/profile/profile-parameter-validator.ts similarity index 100% rename from integration/profile-validator/src/validator/profile/profile-parameter-validator.ts rename to core_js/profile-validator/src/validator/profile/profile-parameter-validator.ts diff --git a/integration/profile-validator/tsconfig.json b/core_js/profile-validator/tsconfig.json similarity index 100% rename from integration/profile-validator/tsconfig.json rename to core_js/profile-validator/tsconfig.json diff --git a/integration/yarn.lock b/core_js/yarn.lock similarity index 100% rename from integration/yarn.lock rename to core_js/yarn.lock