New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@inkofpixel/shopify-builder

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inkofpixel/shopify-builder

An opinionated builder for Shopify.

latest
npmnpm
Version
0.0.16
Version published
Maintainers
2
Created
Source

Shopify Builder

An opinionated builder for Shopify.

This is currenty in alpha and not ready for production use. API will likely change

How to use

To use this tools you must have a predefined project structure. (Pay attention to the src folder)

+-- assets
+-- config
+-- layout
+-- locales
+-- snippets
+-- src
+-- templates

It's a standard shopify project structure with a src folder. The structure of the src folder must be

+-- src
|   +-- lib
|   +-- scripts
|   |   +-- packages
|   |   |   +-- [package-name]
|   |   |   | 	index.(js|ts)
|   +-- sections

Where scripts contains JS scripts (like React) and sections contains liquid.

yarn add @inkofpixel/shopify-builder -D

Add this to the scripts of your package.json

"dev": "shopify-builder watch",
"watch-scripts": "shopify-builder watch scripts",
"watch-sections": "shopify-builder watch sections",
"build-scripts": "shopify-builder build scripts",
"build-sections": "shopify-builder build sections"

add

 *.iop.*

to .gitignore

add to theme

<script src="{{ '[package-name].iop.js' | asset_url }}" ></script>
<script src="{{ 'runtime.iop.js' | asset_url }}" ></script>
<script src="{{ 'vendor.iop.js' | asset_url }}" ></script>

FAQs

Package last updated on 19 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts