GithubHelp home page GithubHelp logo

doc22940 / scpl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pfgithub/scpl

1.0 1.0 0.0 8.26 MB

text language for writing ios shortcuts faster

Home Page: https://scpl.dev

License: MIT License

JavaScript 4.14% TypeScript 95.86%

scpl's Introduction

Project logo

ScPL

Build Status codecov discord


ScPL is a programming language for writing iOS Shortcuts in text.

About

ScPL is a programming language that generates Shortcuts , allowing you to write long complex shortcuts in text instead of dragging and dropping blocks. ScPL lets you work with large shortcuts easily by letting you copy and paste actions, view long shortcuts without scrolling, and type actions instead of dragging them in.

Getting Started

Get Started using ScPL to write shortcuts on the getting started page.

Usage (in other Javascript projects)

npm install --save scpl or yarn add scpl

const {parse, inverse} = require("scpl");
 
const {shortcutjson, shortcutplist} = parse("text 'hello scpl'", {make: ["shortcutjson", "shortcutplist"]});
// shortcutjson is a json object containing the shortcut file.
// shortcutplist is a buffer containing the shortcut file bplist.
 
const inverted = inverse(shortcutplist);
// text "hello scpl"

Contributing

Prerequisites

ScPL uses yarn for package management. Install Yarn

Installing

git clone https://github.com/pfgithub/scpl.git
cd scpl
yarn install

The ScPL repository does not have any tools for converting ScPL code to .shortcut files. That can be found in the scpl-editor or the scpl-cli projects.

Running tests

yarn test

ScPL tests using Jest and automatically generates coverage reports. You can use the coverage report lcov file in coverage/lcov.info to set your editor to show test coverage.

Before making a pull request

yarn prepublishOnly

prepublishOnly will automatically format your code using prettier and make sure tests pass.

Acknowledgements

  • xAlien95 for finding the actions plist file within the shortcuts ipa and manually making lists of all the variable types and aggrandizements.
  • Shortcuts JS for the complete shortcut glyph and color list.

scpl's People

Contributors

pfgithub avatar

Stargazers

Acampbell avatar

Watchers

 avatar

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.