Move to Teal 🚀 #1

Closed
opened 2022-08-09 11:59:47 +02:00 by Aire-One · 0 comments
Owner

To move this project to the Teal language, we need to provide the appropriate Teal type definitions for Lua libraries used as dependencies:

We also need to add a new Woodpecker Pipeline to build the project:

  • Update the lint pipeline
  • Woodpecker build pipeline
  • Find a way to produce artifacts and save them somehow, somewhere 🤷‍♂️ → Moved to #9

To convert all the Lua files from the src directory to Teal files, we can run this command from the project root directory:

find src/ -depth -name "*.lua" -exec sh -c 'f="{}"; mv -- "$f" "${f%.lua}.tl"' \;

(Moving sources files to Teal is the last operation to do, since the sources are still evolving with other PRs)

To move this project to the Teal language, we need to provide the appropriate Teal type definitions for Lua libraries used as dependencies: - [X] lualogging (PR: https://github.com/teal-language/teal-types/pull/38) - [X] inspect (Supported by [teal-types](https://github.com/Aire-One/teal-types/blob/master/types/inspect/inspect.d.tl)) - [X] ansicolors (PR: https://github.com/teal-language/teal-types/pull/37) - ~~[ ] lua-curl (homepage: https://github.com/Lua-cURL/Lua-cURLv3)~~ → See #5 and #7 - [x] LuaSocket (Supported by [teal-types](https://github.com/teal-language/teal-types/tree/master/types/luasocket)) - ~~[ ] htmlparser (homepage: https://msva.github.io/lua-htmlparser/)~~ → See #2 and #8 - [X] web_sanitize (homepage: https://github.com/leafo/web_sanitize) → minimal type definition in this PR - [X] penlight (Supported by [teal-types](https://github.com/Aire-One/teal-types/tree/master/types/penlight)) We also need to add a new Woodpecker Pipeline to build the project: - [x] Update the `lint` pipeline - [x] Woodpecker `build` pipeline - ~~[ ] Find a way to produce artifacts and save them somehow, somewhere 🤷‍♂️~~ → Moved to #9 To convert all the Lua files from the `src` directory to Teal files, we can run this command from the project root directory: ```sh find src/ -depth -name "*.lua" -exec sh -c 'f="{}"; mv -- "$f" "${f%.lua}.tl"' \; ``` (Moving sources files to Teal is the last operation to do, since the sources are still evolving with other PRs)
Aire-One changed title from Move to Teal to Move to Teal 🚀 2022-08-09 12:02:36 +02:00
Aire-One added reference feat/#1 2022-08-15 16:25:34 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Aire-One/awesomewm.d.tl#1
No description provided.