Skip to content

Commit

Permalink
Merge pull request #403 from newfold-labs/update/runtime-to-npmjs
Browse files Browse the repository at this point in the history
Update/runtime to npmjs
  • Loading branch information
circlecube authored Jan 15, 2025
2 parents 3c4faf9 + 4f90137 commit 48cbc44
Show file tree
Hide file tree
Showing 8 changed files with 7,904 additions and 18,723 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/brand-plugin-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ jobs:
module-repo: ${{ github.repository }}
module-branch: ${{ needs.setup.outputs.branch }}
plugin-repo: 'bluehost/bluehost-wordpress-plugin'
plugin-branch: 'update/runtime-npmjs'
sync-npm-package: true
sync-npm-package-name: 'newfold/wp-module-ecommerce'
secrets: inherit

hostgator:
Expand All @@ -44,6 +46,7 @@ jobs:
module-branch: ${{ needs.setup.outputs.branch }}
plugin-repo: 'newfold-labs/wp-plugin-hostgator'
sync-npm-package: true
sync-npm-package-name: 'newfold/wp-module-ecommerce'
secrets: inherit

crazydomains:
Expand All @@ -55,4 +58,5 @@ jobs:
module-branch: ${{ needs.setup.outputs.branch }}
plugin-repo: 'newfold-labs/wp-plugin-crazy-domains'
sync-npm-package: true
sync-npm-package-name: 'newfold/wp-module-ecommerce'
secrets: inherit
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,9 @@ Next-generation WordPress eCommerce Experience for WordPress sites at Newfold Di
composer require newfold-labs/wp-module-ecommerce
```

### 3. Setup GitHub registry
### 3. Install the `@newfold/wp-module-ecommerce` npm package.

Follow instructions at [GH Packages Setup](https://gist.github.com/aulisius/1a6e4961f17039d82275a6941331b021).

### 4. Install the `@newfold/wp-module-ecommerce` npm package.
Previously, this module's package was hosted at github and these instructions were required [GH Packages Setup](https://gist.github.com/aulisius/1a6e4961f17039d82275a6941331b021). Now the package is hosted at npmjs and this referenced setup is no longer relevant. Find the npmjs package at https://www.npmjs.com/package/@newfold/wp-module-ecommerce and install just as any other public package. Note the `newfold` org namespace for npmjs and the `newfold-labs` org namespace for github and satis.

```bash
npm install @newfold/wp-module-ecommerce
Expand Down
2 changes: 1 addition & 1 deletion build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-api-fetch', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '95beac9748ed6ebd5f44');
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-api-fetch', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => 'cb158ecf75343afb99af');
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type BrandSettings = {
};
};

declare module "@newfold-labs/wp-module-runtime" {
declare module "@newfold/wp-module-runtime" {
export interface DefaultSdk {
ecommerce: {
brand_settings: BrandSettings;
Expand Down
Loading

0 comments on commit 48cbc44

Please sign in to comment.