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

Swift Playground Support #92

Closed
wants to merge 32 commits into from
Closed

Conversation

miguelangel-dev
Copy link
Member

@miguelangel-dev miguelangel-dev commented Aug 30, 2019

Description

As a user, I would like to have Playgrounds with support for third party libraries in my iPad. I would like using nef generate a Playground with the whole dependencies compatible with my iPad.

How is it implemented?

The project has been splitted in UI, Component and Test

UI inside the iPad folder you can find the command line script, in the end, it only gets the values from the command line and sends to Component (nef-ipad framework)

Component in framework NefiPad you can find the whole logic for build a Swift Playground with the whole dependencies.

  • Playground file makes the structure for building and resolves the dependencies using swift-package-manager.
  • PlaygroundBook builds the Swift Playground using the repositories.
  • Module is the model where describe how to build a repository compatible with Swift Playground.

Tests you can find the firsts unit tests for Components framework

Helpers - nef commands in Swift Playground

We have added some commands to help development in iPad. Between them, you can find:

  • PlaygroundColor: some predefined colours (nef, bow, ...)
  • PlaygroundLog: the whole necessary for logging in LiveView

How can I use it?

we can build a Swift Playground with third-party libraries using the next command:
iPad --package <package path> --to <output path> --name <playground name>

nef-ipad

Miguel Ángel Díaz and others added 29 commits August 14, 2019 14:28
@miguelangel-dev miguelangel-dev changed the base branch from master to develop September 25, 2019 11:12
@miguelangel-dev miguelangel-dev deleted the playground_ipad_support branch November 27, 2019 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant