GithubHelp home page GithubHelp logo

blanklob / helium Goto Github PK

View Code? Open in Web Editor NEW
125.0 9.0 19.0 1.26 MB

Helium is a modern Shopify development workflow ⚙️, with Online Store 2.0 features. Built with performance ⚡️ and best practices in mind..

License: MIT License

JavaScript 0.83% Liquid 49.82% SCSS 49.35%
shopify boilerplate workflow starter template theme-development

helium's Introduction

Helium

A Shopify theme environment from scratch ⚙️, with Online Store 2.0 features. Built with performance ⚡️ and best practices in mind, has sensible defaults for structured data, open graphs. Hot Module Reloading on SASS/ES6 file changes for rapid development and many other features...

This was made as a follow-up to the Shopify Unite 2021 event revealing the new theme online store 2.0 that has supports for JSON templates and section everywhere concept and few other features.

Quick starter

Make sure you have the following minimum versions:

  • Shopify CLI >= 2.4.0
  • Node >= 14.0.0

ℹ️ You'll need to authenticate to your development Shopify store before runing the development server.

shopify login --store your-store.myshopify.com

Get started by cloning the repository.

shopify theme init -u https://github.com/blanklob/helium.git

Pro tip: click the Use this template button above to start from a fresh repositry.

Then lunch the development server on localhost:9292 using NPM/Yarn.

The command will also run Helium's watch mode on files.

npm run serve

Happy coding 🐧

Contributing

Everyone is welcome to make Shopify theme development better! Please read the Contributing guide before creating issues or submitting pull requests.

License

MIT License Copyright (c) 2022 Blanklob. See LICENSE for further details.

helium's People

Contributors

bgcbrianclark avatar blanklob avatar dependabot[bot] avatar haroldao avatar pinguluk avatar salexzee avatar shopify[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

helium's Issues

Use Webpack CopyPlugin with the Flat Directory Structure

Hi,

How can I use the Webpack CopyPlugin with flat directory structure (I mean without any directory)?

Currently if I add image folder into shared directory like this:
image

...Workflow is copying all items into assets folder with directory structure:
image

But I think all files in the asset folder must be flat structure in the Shopify to use them in templates.

Create new themes through CLI commands

Is your feature request related to a problem? Please describe.
When running yarn deploy I only have the option of deploying to an existing theme or my remote theme.

Describe the solution you'd like
It would be great if running yarn deploy gave me the option to create a new theme before deploying my code. So if I were to select the option "Create New Theme" it would automatically run yarn zip and then upload the zip file.

Describe alternatives you've considered
Instead of mixing it with yarn deploy maybe the above could be done with a new command like yarn create or something similar.

Additional context
Add any other context or screenshots about the feature request here.

Vendor scripts

Is there a reason why this line is commented? I have found that you cannot include any external package without this line. Is there a better way to achieve this?

Some Image Formats Are Not Showing on the Browser

Describe the bug
When I create <img> tag to show images within the .liquid files as like <img src="{{ 'filename.ext' | asset_url }}" /> the browser shows the SVG, JPEG and WEBP but not PNG or JPG. Also, I can see the "successfully" message on the terminal without any error.

To Reproduce
Steps to reproduce the behavior:

  1. Initiated a new project with the Workflow like this: shopify theme init -u https://github.com/younessidbakkasse/workflow, installed the Node modules with yarn install and started project with yarn start.
  2. Dropped the image files on the publicfolder and wrote <img> tags in the header.liquid to show images on the browser as like this
  3. All images shown on the browser but PNG and JPG files (screenshot).

Expected behavior
See all images without any issue.

Desktop (please complete the following information):

  • OS: macOS 11.6
  • Browser Chrome 94 / Safari 15.0
  • Workflow Version: 1.2.0

manifest.json Error

I've created a project with Workflow from zero but its showing error like: ERROR update src/public/manifest.json: 404
Image 2021-10-14 at 9 53 18 AM

Actually, the manifest.json file is located on the correct folder as you can see on the screenshot above.

It's not big deal as I see but I just want to inform you about this error message.

Pushing a theme overwrites settings and section data

When running yarn start or yarn deploy, any dynamic section data or theme settings that have been added since the last start / deploy are erased. I'm imaging this has something to do with this similar issue and might be able to be resolved with adding an --ignore option for the json templates like described here. Any ideas on how to implement a fix to stop the overwriting of data when starting / deploying?

Npm & yarn error

I'm getting an error on both npm and yarn when running "yarn start" and or "npm start"

npm ERR! missing script: start

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/shawn/.npm/_logs/2021-10-03T07_55_25_191Z-debug.log

yarn run error Command "start" not found. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I followed the installation guide but I'm not sure why this giving an error. Any ideas? Am I missing something?

Thanks

Error when runing the development server

Describe the bug
When I start the theme npm run serve it gives me the following error:

Error: Error: spawn shopify ENOENT

This is the full output:

[email protected] serve C:\laragon\www\shopify\vanrycke
helium serve
Info: Helium is Serving files
Warning: Helium is waiting for theme upload to finish
Info: Helium is watching over your changes
Error: Error: spawn shopify ENOENT
Warning: Helium command finished

Environement
Windows 10
Node 14.16.1
npm 6.14.12

To Reproduce
run npm run serve
See error

Expected behavior
The shop should be served on the 9292 port

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.