Socket
Socket
Sign inDemoInstall

@ribajs/shopify

Package Overview
Dependencies
Maintainers
2
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ribajs/shopify - npm Package Compare versions

Comparing version 2.0.0-alpha.16 to 2.0.0-beta.1

62

package.json
{
"name": "@ribajs/shopify",
"description": "Shopify extension for Riba.js",
"version": "2.0.0-alpha.16",
"version": "2.0.0-beta.1",
"type": "module",

@@ -40,4 +40,4 @@ "engines": {

"lint": "eslint ./src --ext .js,.jsx,.ts,.tsx,.cts,.mts --fix && tsc --noEmit",
"build": "npm run lint && tsc",
"test": "npm run lint && jest --config=jest.config.cjs",
"build": "yarn run lint && tsc",
"test": "yarn run lint && jest --config=jest.config.cjs",
"clean": "rm -rf ./dist ./lib"

@@ -52,3 +52,3 @@ },

"@babel/cli": "^7.19.3",
"@babel/core": "^7.20.2",
"@babel/core": "^7.20.5",
"@babel/plugin-proposal-class-properties": "^7.18.6",

@@ -59,48 +59,44 @@ "@babel/plugin-proposal-object-rest-spread": "^7.20.2",

"@babel/preset-typescript": "^7.18.6",
"@babel/runtime": "^7.20.1",
"@babel/runtime-corejs3": "^7.20.1",
"@ribajs/eslint-config": "^2.0.0-alpha.16",
"@ribajs/npm-package": "^2.0.0-alpha.16",
"@ribajs/tsconfig": "^2.0.0-alpha.16",
"@babel/runtime": "^7.20.6",
"@babel/runtime-corejs3": "^7.20.6",
"@ribajs/eslint-config": "^2.0.0-beta.1",
"@ribajs/npm-package": "^2.0.0-beta.1",
"@ribajs/tsconfig": "^2.0.0-beta.1",
"@tsconfig/node14": "^1.0.3",
"@types/debug": "^4.1.7",
"@types/jest": "^28.1.8",
"@types/lodash": "^4.14.189",
"@types/node": "^18.11.9",
"@types/jest": "^29.2.4",
"@types/lodash": "^4.14.191",
"@types/node": "^18.11.11",
"@types/open": "^6.2.1",
"@types/prettier": "^2.7.1",
"@typescript-eslint/eslint-plugin": "^5.43.0",
"@typescript-eslint/parser": "^5.43.0",
"babel-loader": "^8.3.0",
"@typescript-eslint/eslint-plugin": "^5.45.1",
"@typescript-eslint/parser": "^5.45.1",
"babel-loader": "^9.1.0",
"babel-plugin-array-includes": "^2.0.3",
"core-js": "^3.26.1",
"debug": "^4.3.4",
"eslint": "^8.27.0",
"eslint": "^8.29.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"graceful-fs": "^4.2.10",
"jest": "^28.1.3",
"jest-extended": "^2.0.0",
"prettier": "^2.7.1",
"terser": "^5.15.1",
"ts-jest": "^28.0.8",
"jest": "^29.3.1",
"jest-extended": "^3.2.0",
"prettier": "^2.8.0",
"terser": "^5.16.1",
"ts-jest": "^29.0.3",
"typescript": "4.9.3"
},
"optionalDependencies": {
"@ribajs/shopify-tda": "^2.0.0-alpha.16"
"@ribajs/shopify-tda": "^2.0.0-beta.1"
},
"dependencies": {
"@ribajs/cache": "^2.0.0-alpha.16",
"@ribajs/core": "^2.0.0-alpha.16",
"@ribajs/events": "^2.0.0-alpha.16",
"@ribajs/i18n": "^2.0.0-alpha.16",
"@ribajs/router": "^2.0.0-alpha.16",
"@ribajs/utils": "^2.0.0-alpha.16",
"bitbucket": "^2.9.0",
"form-data": "^4.0.0",
"got": "^11.8.5",
"gulp-print": "^5.0.2",
"@ribajs/cache": "^2.0.0-beta.1",
"@ribajs/core": "^2.0.0-beta.1",
"@ribajs/events": "^2.0.0-beta.1",
"@ribajs/i18n": "^2.0.0-beta.1",
"@ribajs/router": "^2.0.0-beta.1",
"@ribajs/utils": "^2.0.0-beta.1",
"webpack": "^5.75.0",
"webpack-cli": "^4.10.0"
"webpack-cli": "^5.0.1"
}
}

@@ -64,145 +64,2 @@ # Shopify Module

```
## Gulp
Add a gulp file to your theme project like this
```js
/**
* For this reason the slate is depricated this is a own gulpfile like the original gulpfile used in slate but with some customisations
* @see https://github.com/Shopify/slate/blob/0.x/packages/slate-tools/src/gulpfile.js
*/
require('source-map-support').install(); // Used to inspect the code for debugging
const path = require("path");
const gutil = require("gulp-util");
const argv = require("yargs").argv;
const requireDir = require("require-dir");
// Gets the gulp tasks path of @ribajs/shopify
const ribaShopifyTaskDir = path.resolve(
path.dirname(require.resolve("@ribajs/shopify-gulp")),
"tasks"
);
if (argv.environment && argv.environment !== "undefined") {
console.log(`setting tkEnvironments to ${argv.environment}`);
gutil.env.environments = argv.environment;
}
// imports gulp tasks from the @ribajs/shopify's `build-system/dist/tasks` directory
requireDir(ribaShopifyTaskDir, { extensions: [".js", ".cjs"] });
```
### Gulp tasks
#### Generate config.deploy.yml
After you have create a basic `config.deploy.yml` you can run the command below to insert the latest created themes (which are usually the next release themes) in your `config.deploy.yml`.
```bash
gulp generate:config:deploy
```
#### Get a list of the youngest / next release themes
To make it easier to publish the current preview links of the release themes in the chat you can use the following command:
```bash
gulp themes:list:youngest
```
Example output:
```text
...
====== UK ======
Name: release/1.3.17 | New variant switcher
ID: 81177935933
Store: my-store.myshopify.com
Created: Today at 9:10 AM
Updated: Today at 10:03 AM
Edit settings: https://my-store.myshopify.com/admin/themes/81177935933/editor
Edit code: https://my-store.myshopify.com/admin/themes/81177935933
Preview: https://my-store.myshopify.com/?_ab=0&_fd=0&_sc=1&preview_theme_id=81177935933
...
```
### Config files
`config.deploy.yml`:
```yaml
# Rename this file to config.deploy.yml to use it with `npm run deploy`
staging:
password:
theme_id: 80030728250 # release/april-21-2020
store: my-store-staging.myshopify.com
ignore_files:
- config/settings_data.json
- locales/*
de:
password:
theme_id: 79757934703 # release/april-21-2020
store: my-store-de.myshopify.com
ignore_files:
- config/settings_data.json
- locales/*
eu:
password:
theme_id: 81227481159 # release/april-21-2020
store: my-store-au.myshopify.com
ignore_files:
- config/settings_data.json
- locales/*
fr:
password:
theme_id: 79767437399 # release/april-21-2020
store: my-store-fr.myshopify.com
ignore_files:
- config/settings_data.json
- locales/*
uk:
password:
theme_id: 79777366077 # release/april-21-2020
store: my-store-uk.myshopify.com
ignore_files:
- config/settings_data.json
- locales/*
us:
password:
theme_id: 80021160036 # release/april-21-2020
store: my-store-us.myshopify.com
ignore_files:
- config/settings_data.json
- locales/*
```
`release.yml`:
```yaml
bitbucket:
username: # your bitbucket userbame
password: # your bitbucket password
workspace: # ee.g. rfd
repo_slug: # e.g. my-store
```
## Deploy
To deploy this branch to all shops just create a `config.deploy.yml` with an environment for each shop like in the `config-sample.deploy.yml` and run
```bash
gulp deploy
```
You can pass a custom config.yml file name like this:
```bash
gulp deploy:prod -- --config="config.deploy.yml"
gulp watch:dev -- --config="config.staging.yml"
```
## Build @ribajs/shopify

@@ -209,0 +66,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc