Skip to content

phperl390/function-examples

 
 

Repository files navigation

Function Examples

This is the home of all the public examples of Shopify Functions. It's used by the CLI when running yarn shopify app generate extension. Feel free to look around! Do not edit these files directly.

Local Development

Expand Liquid Templates

If you wish to run the samples directly from this repository, you must first expand any .liquid templates with the following command.

yarn
yarn expand-liquid
# optionally provide the language flavor
yarn expand-liquid vanilla-js
yarn expand-liquid typescript

Run Tests

# JavaScript
yarn test-js
# TypeScript
yarn test-ts
# Rust
cargo test

Lint

# currently only applies to Rust
cargo fmt
cargo clippy -- -D warnings

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 52.2%
  • Rust 21.5%
  • Ruby 11.9%
  • Liquid 10.7%
  • HTML 3.1%
  • Dockerfile 0.3%
  • Other 0.3%
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy