Giter Club home page Giter Club logo

sdk's Introduction

Spryker SDK

Build Status codecov Latest Stable Version Minimum PHP Version PHPStan

The Spryker SDK aims to provide a single entry point to accelerate your productivity working with Spryker. No matter if you want to validate existing code, implement new features with Spryker or go live with your project, the Spryker SDK provides you the tools to fulfill your mission faster and cut out the boring parts of the development, so you can focus developing exciting features for your business case.

Installation

Installation into the current dir:

PATH_TO_SDK=$(pwd) \
&& curl -fL github.com/spryker-sdk/sdk/releases/latest/download/installer.sh -O \
&& chmod +x installer.sh \
&& ./installer.sh "${PATH_TO_SDK}" \
&& rm -f installer.sh \
&& if [ -e ~/.zshrc ]; then source ~/.zshrc; else source ~/.bashrc; fi; \
echo "Current SDK version: $(spryker-sdk --version)"

Update

Can be executed from any directory. The path will be taken from the SPRYKER_SDK_PATH env variable

curl -fL github.com/spryker-sdk/sdk/releases/latest/download/installer.sh -O \
&& chmod +x installer.sh \
&& ./installer.sh --self-update \
&& rm -f installer.sh \
&& echo "Current SDK version: $(spryker-sdk --version)"

Getting started

To get an overview on the available capabilities of the Spryker SDK please run spryker-sdk list

Any task can be executed by running spryker-sdk <task-id> from project root folder. Using bin/consolespryker-sdk <task-id> -h will give a description on what options can be passed into the task.

Extending the SDK capabilities

Pleaser refer to the extension documentation for further information on how to extend the SDK. Extensions to the SDK should follow the SDK conventions. For maintaining an extension of the SDK please refer to the lifecycle management.

PhpStorm Command Line Tools

Please refer to the phpstorm integration documentation for further information on how to integrate the SDK to PhpStorm.

Running the SDK as a developer

Running the SDK in a development or debug mode is documented at development documentation

sdk's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sdk's Issues

Please fix src/

See https://release.spryker.com/package-integration/view/spryker-sdk/sdk/60894544b1f325fcde3f51db03571b26829c82e9

should be in ROOT/resources/ as per rules

Array
(
    [Infrastructure/Resources/config/doctrine] => Array
        (
            [0] => Placeholder.orm.yml
            [1] => Setting.orm.yml
            [2] => Task.orm.yml
            [3] => WorkflowTransition.orm.yml
            [4] => File.orm.yml
            [5] => RemovedEvent.orm.yml
            [6] => Lifecycle.orm.yml
            [7] => Command.orm.yml
            [8] => Converter.orm.yml
            [9] => Workflow.orm.yml
        )

    [Infrastructure/Resources/config] => Array
        (
            [0] => services.yaml
        )

    [Extension/Resources/config] => Array
        (
            [0] => services.yaml
        )

    [Extension/Task] => Array
        (
            [0] => RunInstallTask.yaml
            [1] => RectorProcessTask.yaml
            [2] => CodesnifferFixerTask.yaml
            [3] => ScssLinterFixerTask.yaml
            [4] => PhpMdTask.yaml
            [5] => DeprecationsCheckTask.yaml
            [6] => AcpAppTranslationValidateTask.yaml
            [7] => AcpAppManifestValidateTask.yaml
            [8] => AcpAppValidateTask.yaml
            [9] => CodeceptTestingTask.yaml
            [10] => CodesnifferTaskSet.yaml
            [11] => PrettierSnifferFixTask.yaml
            [12] => AcpAppConfigValidateTask.yaml
            [13] => AcpAppAsyncApiCodeGenerateTask.yaml
            [14] => AcpAppConfigCreateTask.yaml
            [15] => AcpAppAsyncApiValidateTask.yaml
            [16] => AcpAppAsyncApiCreateTask.yaml
            [17] => PhpBenchTask.yaml
            [18] => AcpAppAsyncApiCreateTaskSet.yaml
            [19] => AcpAppOpenApiValidateTask.yaml
            [20] => AcpAppTranslationCreateTask.yaml
            [21] => AcpAppAsyncApiAddMessageSchemaTask.yaml
            [22] => PrettierSnifferTask.yaml
            [23] => PhpStanTask.yaml
            [24] => FrontendSnifferTask.yaml
            [25] => SprykAddModuleTask.yaml
            [26] => SecurityCheckTask.yaml
            [27] => CodesnifferTask.yaml
            [28] => SnifferTaskSet.yaml
            [29] => AcpAppOpenApiCreateTask.yaml
            [30] => ESLintTask.yaml
            [31] => AcpAppManifestCreateTask.yaml
            [32] => ScssLinterTask.yaml
            [33] => AppValidationTaskSet.yaml
            [34] => AcpAppOpenApiCodeGenerateTask.yaml
        )

    [Extension/Setting] => Array
        (
            [0] => settings.yaml
        )

    [Presentation/Console/Resources/config] => Array
        (
            [0] => services.yaml
        )

    [Core/Application/Resources/config] => Array
        (
            [0] => services.yaml
        )

)

naming

php bin/spryker-sdk run {task} --tags=sniff,architecture ... - runs task and run other with tags

this doesnt make sense, sniff itself has no meaning

it means probably: style,architecture

Installation recipe for 0.6.5 broken

After running the installer as described in the Readme file the spryker-sdk can not be used since the following error happened.

PATH_TO_SDK=$(pwd) \
&& curl -fL github.com/spryker-sdk/sdk/releases/latest/download/installer.sh -O \
&& chmod +x installer.sh \
&& ./installer.sh "${PATH_TO_SDK}" \
&& rm -f installer.sh \
&& if [ -e ~/.zshrc ]; then source ~/.zshrc; else source ~/.bashrc; fi; \
echo "Current SDK version: $(spryker-sdk --version)"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:10 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:10 --:--:--     0
100  8105  100  8105    0     0    746      0  0:00:10  0:00:10 --:--:-- 40934

Spryker SDK Installer

SDK installation
SDK destination path: /Users/antoniomansillaarroyo/workspace/sc-b2b-mp-demo
stat /Users/antoniomansillaarroyo/workspace/sc-b2b-mp-demo/docker-compose.dev.yml: no such file or directory
stat /Users/antoniomansillaarroyo/workspace/sc-b2b-mp-demo/docker-compose.dev.yml: no such file or directory
Created alias in ~/.zshrc
Current SDK version: 0.6.5

This is the second time that after just installing the SDK you are not able to run any single command.

I suggest in this case not only fixing the issue but also adding a GitHub installation testing workflow to avoid this happening again in the future.

SDK gets stuck right after asking for repo info

I am trying to set up (and test) the sdk.

I have followed this documentation and steps:

I can use the sdk commands, but when trying to run spryker-sdk sdk:workflow:run (previously I executed the spryker-sdk sdk:init:project --workflow=app ) it is getting stuck right after asking for the git repository.

The output I see on the logs is:
{"message":"Unable` to read the file /project/composer.json: file_get_contents(/project/composer.json): Failed to open stream: No such file or directory","context":{},"level":400,"level_name":"ERROR","channel":"error_logger","datetime":"2022-11-14T15:13:37.967969+00:00","extra":{}} {"message":"The command \"'git' 'remote' 'get-url' '--push' 'origin'\" failed.\n\nExit Code: 128(Invalid exit argument)\n\nWorking directory: /project\n\nOutput:\n================\n\n\nError Output:\n================\nfatal: not a git repository (or any parent up to mount point /)\nStopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\n","context":{},"level":400,"level_name":"ERROR","channel":"error_logger","datetime":"2022-11-14T15:13:38.065658+00:00","extra":{}}

composer.json file does exist, and I see no issues on permissions (can this be a race condition issue?).
When I try to run git remote get-url --push origin I get the correct ouptut (appTest.git), so I am not sure why the sdk is showing this error.

When trying to rerun the command, this is the error output on the terminal.

Screenshot 2022-11-15 at 12 28 27

Can someone point me in the right direction?

namespace

this is the only repo that doesnt follow our rules regarding the namespace

I recommend renaming
a ) repo to https://github.com/spryker-sdk/sdk
b) use the corresponding psr4 namespace for it to fit to it and tooling: SprykerSdk/Sdk

"autoload": {
    "psr-4": {
        "SprykerSdk\\Sdk\\": "src/"
    }
}

A module with such a name will never exist, so using this namespace is fine.

Extension is not following PSR standards

https://github.com/spryker-sdk/sdk/blob/master/composer.json#L95

There are several violations here that need to get fixed:
https://github.com/spryker-sdk/sdk/tree/master/extension/Hello

Then proper PSR would be

"Hello\\": "extension/Hello/src/"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.