Coder Social home page Coder Social logo

robotlegsjs / robotlegsjs-macrobot Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 1.0 2.22 MB

TypeScript port of Robotlegs Utilities Macrobot

Home Page: https://www.npmjs.com/package/@robotlegsjs/macrobot

License: MIT License

JavaScript 3.53% TypeScript 96.47%
commands robotlegsjs

robotlegsjs-macrobot's Introduction

Archived

This repository is archived. Development migrated to https://github.com/RobotlegsJS/RobotlegsJS-Framework/blob/master/packages/core.

RobotlegsJS

GitHub license Gitter chat npm version styled with prettier

RobotlegsJS is a architecture-based IoC framework for JavaScript/TypeScript. This version is a direct port from the ActionScript 3.0 codebase. See the motivation behind it.

Right now, this framework has extensions for pixi.js v5, easeljs, openfl, phaser-ce v2 and phaser v3.

Features

  • Dependency injection (through InversifyJS)

  • Command management

  • View management

Extensions

Installation

You can get the latest release and the type definitions using NPM:

npm install @robotlegsjs/core reflect-metadata --save

Or using Yarn:

yarn add @robotlegsjs/core reflect-metadata

⚠️ Important! RobotlegsJS requires TypeScript >= 2.0 and the experimentalDecorators, emitDecoratorMetadata, types and lib compilation options in your tsconfig.json file.

{
    "compilerOptions": {
        "target": "es5",
        "lib": ["es6", "dom"],
        "types": ["reflect-metadata"],
        "module": "commonjs",
        "moduleResolution": "node",
        "experimentalDecorators": true,
        "emitDecoratorMetadata": true
    }
}

RobotlegsJS requires a modern JavaScript engine with support for:

If your environment doesn't support one of these you will need to import a shim or polyfill.

⚠️ The reflect-metadata polyfill should be imported only once in your entire application because the Reflect object is mean to be a global singleton. More details about this can be found here.

Motivation

There are many frameworks and patterns out there that helps you to write DOM-based applications. There is no scalable solution yet to architecture a canvas-based application though.

Robotlegs has proven itself of being a mature solution from the ActionScript community for interactive experiences.

RobotlegsJS for enterprise

Available as part of the Tidelift Subscription

The maintainers of @robotlegsjs/core and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.

License

MIT

robotlegsjs-macrobot's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

saqsun

robotlegsjs-macrobot's Issues

An in-range update of webpack is breaking the build 🚨

The devDependency webpack was updated from 4.20.1 to 4.20.2.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

webpack is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v4.20.2

Bugfixes

  • keep comments in export default in concatenated modules
Commits

The new version differs by 8 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of @robotlegsjs/signalcommandmap is breaking the build 🚨

The devDependency @robotlegsjs/signalcommandmap was updated from 1.0.0 to 1.0.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@robotlegsjs/signalcommandmap is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for 1.0.1

Changed

  • Update @robotlegsjs/signals to version 1.0.1 (see #87).

  • Update @robotlegsjs/core to version 1.0.1 (see #87).

  • Improve prettier rules and autoformat script (see #86).

  • Enable "editor.formatOnSave" rule for VS Code (see #86).

  • Update dev dependencies to latest version.

Commits

The new version differs by 12 commits.

  • e221787 update package to version 1.0.1
  • bb9cefa Merge pull request #87 from RobotlegsJS/robotlegsjs-1.0.1
  • 6b34158 update changelog
  • b2b6088 chore(package): update dependencies to latest version
  • 669602c chore: update @robotlegsjs/core and @robotlegsjs/signals to version 1.0.1
  • d66f085 Merge pull request #86 from RobotlegsJS/upgrade-dependencies
  • 727346c update changelog
  • 84fc858 chore: enable format on save rule
  • a402e3c chore: improve autoformat script
  • e434cb6 chore: update prettier settings
  • 494d117 chore: update editorconfig settings
  • 019c6d7 chore(package): update dependencies to latest version

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

To be able to inject payloads in nested macro commands

Expected Behavior

Should be able to inject payloads in nested macros.

Current Behavior

Payloads are only injected in one level of depth.

Possible Solution

Implement support of nested macros with payload injections.

Steps to Reproduce (for bugs)

  1. Create macro command. (Macro1)
  2. Create another macro command. (Macro2)
  3. Create a command. (Command1)
  4. Add Macro2 as a subcommand of Macro1.
  5. Add Command1 as a subcommand of Macro2.
  6. Map Macro1 to a signal with any payload
  7. Try to inject payload in Command1.

Context

Would be nice to be able to inject payloads in nested macros.

Your Environment

  • Version used: 0.2.1

Constructor call to prepare() prevents injection in concrete macroes.

Expected Behavior

When extending SequenceMacro to create own initialization behaviour, I want to use injection mechanism to create payloads and guards for the commands inside macro.

Current Behavior

prepare() method is called from the AbstractMacro constructor, which prevents injection to the super class.

Possible Solution

prepare() method should be called after all constructors have been called.

Steps to Reproduce (for bugs)

@inject(AppEvent) private _appEvent: AppEvent;

public prepare(): void {
	this.atomic = false;
	const payload = new SubCommandPayload(this._appEvent.payload, GameConfig);
	this.add(InitializeSpineSymbolCacheCommand)
		.withPayloads(payload)
		.withGuards(this._appEvent.payload.slotSymbolConfig !== undefined);
	this.registerCompleteCallback(() => this._eventDispatcher.dispatchEvent(new AppEvent(AppEvent.GAME_CONNECTED, this._appEvent.payload)));
}

Context

Not being able to inject event that has started the macro through mapping, creates the need for additional code, which would allow me to access data from the said event.

Async Commands don't work properly

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Set up basic AsyncCommand ( Dealy Command)
  2. Add is to Sequence Macro Command
  3. Make Sequence Macro Command execute signal triggering
  4. See an error on console

Desktop (please complete the following information):

  • OS: macOS Mojave v. 10.14.3
  • Browser: Chrome
  • Version 72.0.3626.119

Here is the example code you can run:


@injectable()
export class DelayCommand extends AsyncCommand {
    public execute(): void {
        setTimeout(this.onTimeout.bind(this), 500);
    }

    protected onTimeout(): void {
        this.dispatchComplete(true);
    }
}


@injectable()
export class MyMacro extends SequenceMacro {
    public prepare():void {
        this.add(DelayCommand)
    }

    protected onComplete(success): void {
        console.log("All commands have been executed!");
    }
}

An in-range update of @robotlegsjs/core is breaking the build 🚨

The dependency @robotlegsjs/core was updated from 1.0.0 to 1.0.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@robotlegsjs/core is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for 1.0.1

Changed

  • Improve prettier rules and autoformat script (see #109).

  • Enable "editor.formatOnSave" rule for VS Code (see #109).

  • Update dev dependencies to latest version.

Commits

The new version differs by 11 commits.

  • 26a86de update package to version 1.0.1
  • dc87026 Merge pull request #110 from RobotlegsJS/upgrade-dependencies
  • f0046c8 chore(package): update dependencies to latest version
  • 7c8b100 Merge pull request #109 from RobotlegsJS/upgrade-dependencies
  • 94520f3 update changelog
  • 24b6547 chore: enable format on save rule
  • 6cf3ef7 chore: improve autoformat script
  • 264699d chore: update prettier settings
  • fd2a699 chore: update editorconfig settings
  • bf4cdb4 fix: solve tslint errors
  • 03f173f chore(package): update dependencies to latest version

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of @robotlegsjs/core is breaking the build 🚨

The dependency @robotlegsjs/core was updated from 1.0.1 to 1.0.2.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@robotlegsjs/core is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for 1.0.2

Changed

  • Fix security vulnerabilities related to outdated dependencies (see #117).

  • Update dev dependencies to latest version.

Commits

The new version differs by 7 commits.

  • af6c431 update package to version 1.0.2
  • 03ca56d Merge pull request #117 from RobotlegsJS/fix-security-vulnerabilities
  • 91bf522 update changelog
  • 9e9be6c format code
  • a355a80 chore(package): update lockfile yarn.lock
  • 9690bb7 chore(package): update dev dependencies to latest version
  • 9ce6b92 disable security checks by publish-please

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because we are using your CI build statuses to figure out when to notify you about breaking changes.

Since we did not receive a CI status on the greenkeeper/initial branch, we assume that you still need to configure it.

If you have already set up a CI for this repository, you might need to check your configuration. Make sure it will run on all new branches. If you don’t want it to run on every branch, you can whitelist branches starting with greenkeeper/.

We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

Once you have installed CI on this repository, you’ll need to re-trigger Greenkeeper’s initial Pull Request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper integration’s white list on Github. You'll find this list on your repo or organiszation’s settings page, under Installed GitHub Apps.

An in-range update of mocha is breaking the build 🚨

The devDependency mocha was updated from 6.0.2 to 6.1.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

mocha is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for v6.1.0

6.1.0 / 2019-04-07

🔒 Security Fixes

  • #3845: Update dependency "js-yaml" to v3.13.0 per npm security advisory (@plroebuck)

🎉 Enhancements

  • #3766: Make reporter constructor support optional options parameter (@plroebuck)
  • #3760: Add support for config files with .jsonc extension (@sstephant)

📠 Deprecations

These are soft-deprecated, and will emit a warning upon use. Support will be removed in (likely) the next major version of Mocha:

🐛 Fixes

  • #3829: Use cwd-relative pathname to load config file (@plroebuck)
  • #3745: Fix async calls of this.skip() in "before each" hooks (@juergba)
  • #3669: Enable --allow-uncaught for uncaught exceptions thrown inside hooks (@givanse)

and some regressions:

📖 Documentation

🔩 Other

  • #3830: Replace dependency "findup-sync" with "find-up" for faster startup (@cspotcode)
  • #3799: Update devDependencies to fix many npm vulnerabilities (@XhmikosR)
Commits

The new version differs by 28 commits.

  • f4fc95a Release v6.1.0
  • bd29dbd update CHANGELOG for v6.1.0 [ci skip]
  • aaf2b72 Use cwd-relative pathname to load config file (#3829)
  • b079d24 upgrade deps as per npm audit fix; closes #3854
  • e87c689 Deprecate this.skip() for "after all" hooks (#3719)
  • 81cfa90 Copy Suite property "root" when cloning; closes #3847 (#3848)
  • 8aa2fc4 Fix issue 3714, hide pound icon showing on hover header on docs page (#3850)
  • 586bf78 Update JS-YAML to address security issue (#3845)
  • d1024a3 Update doc examples "tests.html" (#3811)
  • 1d570e0 Delete "/docs/example/chai.js"
  • ade8b90 runner.js: "self.test" undefined in Browser (#3835)
  • 0098147 Replace findup-sync with find-up for faster startup (#3830)
  • d5ba121 Remove "package" flag from sample config file because it can only be passes as CLI arg (#3793)
  • a3089ad update package-lock
  • 75430ec Upgrade yargs-parser dependency to avoid loading 2 copies of yargs

There are 28 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of bluebird is breaking the build 🚨

The devDependency bluebird was updated from 3.5.5 to 3.6.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

bluebird is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).
  • Tidelift: Dependencies checked (Details).

Release Notes for v3.6.0

Features:

  • Add support for AsyncResource (#1403)

Bugfixes:

Commits

The new version differs by 28 commits.

There are 28 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of ts-node is breaking the build 🚨


☝️ Important announcement: Greenkeeper will be saying goodbye 👋 and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io


The devDependency ts-node was updated from 8.9.1 to 8.10.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

ts-node is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details

Release Notes for Experimental native ESM support

Added

Experimental support for native ECMAScript modules in node >=13 (#1007, #1010)

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of sinon is breaking the build 🚨

The devDependency sinon was updated from 7.3.2 to 7.4.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

sinon is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of webpack is breaking the build 🚨

The devDependency webpack was updated from 4.35.3 to 4.36.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

webpack is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v4.36.0

Features

  • SourceMapDevToolPlugin append option now supports the default placeholders in addition to [url]
  • Arrays in resolve and parser options (Rule and Loader API) support backreferences with "..." when overriding options.
Commits

The new version differs by 42 commits.

  • 95d21bb 4.36.0
  • aa1216c Merge pull request #9422 from webpack/feature/dot-dot-dot-merge
  • b3ec775 improve merging of resolve and parsing options
  • 53a5ae2 Merge pull request #9419 from vankop/remove-valid-jsdoc-rule
  • ab75240 Merge pull request #9413 from webpack/dependabot/npm_and_yarn/ajv-6.10.2
  • 0bdabf4 Merge pull request #9418 from webpack/dependabot/npm_and_yarn/eslint-plugin-jsdoc-15.5.2
  • f207cdc remove valid jsdoc rule in favour of eslint-plugin-jsdoc
  • 31333a6 chore(deps-dev): bump eslint-plugin-jsdoc from 15.3.9 to 15.5.2
  • 036adf0 Merge pull request #9417 from webpack/dependabot/npm_and_yarn/eslint-plugin-jest-22.8.0
  • 37d4480 Merge pull request #9411 from webpack/dependabot/npm_and_yarn/simple-git-1.121.0
  • ce2a183 chore(deps-dev): bump eslint-plugin-jest from 22.7.2 to 22.8.0
  • 0beeb7e Merge pull request #9391 from vankop/create-hash-typescript
  • bf1a24a #9391 resolve super call discussion
  • bd7d95b #9391 resolve discussions, AbstractMethodError
  • 4190638 chore(deps): bump ajv from 6.10.1 to 6.10.2

There are 42 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

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.