Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

guard, action, internal transition, and typescript #30

Draft
wants to merge 27 commits into
base: master
Choose a base branch
from

Conversation

DrSensor
Copy link
Owner

@DrSensor DrSensor commented Jul 16, 2019

  • implement new syntax
    • guard
    • action
    • internal transition
  • generate typescript declaration for xstate
  • compile to webassembly
  • add bundler plugin for transforming scdlang into xstate
    • add webpack-loader
    • add rollup-plugin

@DrSensor DrSensor added the enhancement New feature or request label Jul 16, 2019
@DrSensor DrSensor added this to the v1.0 milestone Jul 16, 2019
@DrSensor DrSensor self-assigned this Jul 16, 2019
* Update libc6 and fix linter warning

* Fix debian version mismatch

* Debug Perf cargo

* Rollback helper script

* Unignore integration tests

* Update hyperfine
@github-actions
Copy link

github-actions bot commented Jul 17, 2019

perf result

* Support guard for transient transition
* Internal transiion shouldn't have next_state

* Remove trailing symbol `|>` when printing action in internal transiion

* Fix core parser tests

* Small tweak on the error messages
consecutive internal transition not appended on the same state declaration
* core Builder now support custom option key

* xstate transpiler also support javascript output

⚠️ only applied on `scrap code` subcommand
* Also support output --as javascript

* Require --name when output --as javascript,typescript

* Convert --name [export] to PascalCase when output --as typescript
* Add project examples/xstate/nodejs as subrepo

* Fix import fail when filename in kebab-case (js)
Because value in event-key can be targetName *or* object of: one_or_all{target, guard, actions}, then it also accept array of object.
This need the transpiler able to convert previous value into list of object when hit non-conflicted guard.
* Add additional specs for semantic_errors/*.md
* Implement warning messages in the core parser

* Print warning messages in both cli subcommand
- core: Add DbC for `Transition` via static_assert
- core: Refactor `TransitionIterator` a bit
- Fix deprecate trait-object without `dyn`
- Skip internal-transition on box/asciiart format
- Add option mode::blackbox::State in scdlang_smcat
@DrSensor DrSensor force-pushed the new/guard-and-action branch 5 times, most recently from d44205a to 61935c3 Compare August 22, 2019 23:02
@DrSensor DrSensor force-pushed the new/guard-and-action branch 2 times, most recently from c32d81d to a0d9f86 Compare August 22, 2019 23:43
Update entrypoint.sh
Fix `Testing` workflow

Add another $PATH in .github/enrtrypoint.sh

Hopefully it will fix gh-action `Smoke tests`

Fix example submodule not fetched
Limit git-submodule only on `Smoke tests`

Fix example submodule not fetched

Fix example submodule not fetched

Fix example submodule not fetched
@DrSensor DrSensor force-pushed the new/guard-and-action branch 3 times, most recently from 1264873 to 9510922 Compare August 24, 2019 10:34
warning duplicated on transition with same event name although it has same current state
* Remove compile-time generator (build.rs)

* Add root level arg for --shell-completion

* Enable colored --help
@DrSensor
Copy link
Owner Author

DrSensor commented Aug 25, 2019

Todo:

* Derive enum of the custom option from strum crate

* Trim-space the error-messages in smcat transpiler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant