Skip to content

Commit e9af045

Browse files
Bump onix codegen (#47)
* fmt markdowns * enable to bump go.mod * deploy products detail automatically * make WORKSPACE (#3) * make WORKSPACE * add new content * attempt to append omitempty * use bazel to build go binary * attempt to track BUILD.bazel of generated package * Bump actions/setup-node from v1 to v2.1.2 (#1) Bumps [actions/setup-node](https://github.com/actions/setup-node) from v1 to v2.1.2. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](actions/setup-node@v1...c6fd00c) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Make cli pretty (#4) * add structured data * introduce cli paresr * bump deps * bump md * prepare to enable handling other contents * add progress bar for dl and deploy * add msg * fetch all contents of products * bump mod * enable to fetch pages (#5) * enable to fetch pages * deploy only main branch * handle both pages and products * support to download blog * extract article resource * split out cmd * messing up some vars * make syncdata buildable again * split out fiiles (#6) * split out fiiles * extract deploy procedure of products * make request parallel again * add setup task * make pages deployable * make blogs deployable * bump contents * Make gqlgenc bazel ready (#7) * bump contents * make gqlgenc running within bazel * move syncdata related packages * adjust import path * pass gql file to sandbox of bazel * append description of book (#8) * append description of book * bump contents * define struct for ONIX for books 2.1 (#10) * define struct for ONIX for books 2.1 * ignore onix file * enable to inject input file * introduce test * add test action * enable to pass input file * expand definitions * Enable to use gqlgenc from both content-kit and onix-kit (#11) * unify api version * move gqlgenc binary * enable to generate client for multiple packages * add query for retrieving ISBN * add blog scaffold * fetch products * make secrets for content-kit injectable by cli option (#12) * make secrets for content-kit injectable by cli option * use app key * rm comments * rename syncdata to content * bump blog * adjust mod name * enable to go get as cli * Adjust html markdown converter (#13) * trim newline of EOF * apply triming * switch markdown builder * bump markdown * Write blog (#14) * no need to put handle * prepare posts * add first version * get in touch (#15) * get in touch * attempt to bump * attempt to release * setup env * bump content * bump makefile * fix race condition of deploying blogs * bump article * bump version * enable to use config (#16) * enable to use config * use commonized option * bump version * bump contents (#17) * bump contents * Add rough uploading script * bump content * test should be passed * add contents * bump contents * bump contents * bump content * add contents * add translation * add contents * Fix invalid tags unmarshaling (#18) * add translation * show vendor * show tags * fix invalid unmarshaling * Fix incosistant diff (#19) * add test which to convert nested list * HTML minifying might be make converter deterministic * Those diffs are may reasonable * use table driven test * extract converting method * attempt to avoid using - * bump version * bump docs * pass dir by args * import next contents * add blog * Bump actions/setup-node from v2.1.2 to v2.1.3 (#20) Bumps [actions/setup-node](https://github.com/actions/setup-node) from v2.1.2 to v2.1.3. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](actions/setup-node@v2.1.2...27082ce) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Add published date (#21) * tmp * bump theme * fetch metafield * find ID of metafield * use en handle * show published day * adjust layout of blogs * bump contents * handle case where a product not actually exist * bump version * bump contents * Bump actions/setup-node from v2.1.3 to v2.1.4 (#22) Bumps [actions/setup-node](https://github.com/actions/setup-node) from v2.1.3 to v2.1.4. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](actions/setup-node@v2.1.3...c46424e) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * bump content * attempt to use commonized actions * extract checkout actions * bump content * drop actions * Logrocket (#23) * introduce logrocket * clean webpack removes also usefull files * apply script * how number of pages * translate description via DeepL when import * bump BUILD * Use cache (#24) * bump contents * intro cache * write * bump writing style * add todos * use remote cache * bump contents up * adjust theme * bump contents * add contents * show isbn and delivery estimation * bump content * add contents * bump contents * bump contents * Refactoring onix (#25) * split out * rm useless comments * extract to functions * extract create * structual subtyping has needed * fallback when long description does not exist * bump contents * bump contents * bump contents * bump contents * Bump ts-loader from 8.0.12 to 8.0.13 (#29) Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 8.0.12 to 8.0.13. - [Release notes](https://github.com/TypeStrong/ts-loader/releases) - [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md) - [Commits](TypeStrong/ts-loader@v8.0.12...v8.0.13) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump webpack from 5.11.0 to 5.11.1 (#27) Bumps [webpack](https://github.com/webpack/webpack) from 5.11.0 to 5.11.1. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](webpack/webpack@v5.11.0...v5.11.1) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump terser-webpack-plugin from 5.0.3 to 5.1.1 (#32) Bumps [terser-webpack-plugin](https://github.com/webpack-contrib/terser-webpack-plugin) from 5.0.3 to 5.1.1. - [Release notes](https://github.com/webpack-contrib/terser-webpack-plugin/releases) - [Changelog](https://github.com/webpack-contrib/terser-webpack-plugin/blob/master/CHANGELOG.md) - [Commits](webpack-contrib/terser-webpack-plugin@v5.0.3...v5.1.1) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump ts-loader from 8.0.13 to 8.0.14 (#30) Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 8.0.13 to 8.0.14. - [Release notes](https://github.com/TypeStrong/ts-loader/releases) - [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md) - [Commits](TypeStrong/ts-loader@v8.0.13...v8.0.14) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump webpack from 5.11.1 to 5.12.3 (#31) Bumps [webpack](https://github.com/webpack/webpack) from 5.11.1 to 5.12.3. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](webpack/webpack@v5.11.1...v5.12.3) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump webpack-cli from 4.2.0 to 4.3.1 (#28) Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 4.2.0 to 4.3.1. - [Release notes](https://github.com/webpack/webpack-cli/releases) - [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md) - [Commits](https://github.com/webpack/webpack-cli/compare/[email protected]@4.3.1) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump webpack from 5.12.3 to 5.13.0 (#33) Bumps [webpack](https://github.com/webpack/webpack) from 5.12.3 to 5.13.0. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](webpack/webpack@v5.12.3...v5.13.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Shinichi Kogai <[email protected]> * Bump webpack from 5.13.0 to 5.14.0 (#34) Bumps [webpack](https://github.com/webpack/webpack) from 5.13.0 to 5.14.0. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](webpack/webpack@v5.13.0...v5.14.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Use generated package of onix (#35) * use theme downloader * introduce dryrun option * introduce dryrun mode * take snapshot of update 20201208, 20201217, 20201220 * fix invalid nest * take snapshot of create 20201208, 20201217, 20201220 * do not use fixtures as snapshots * attempt to replace onix-message parser * may worth to bump deps * make buildable again * fix some type contradiction * deref string * make bit safe * bump snapshots * bump mod * download them to specific dir * use new dir Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent ea9d0ba commit e9af045

File tree

8 files changed

+10
-8
lines changed

8 files changed

+10
-8
lines changed

.github/workflows/download_theme.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Theme-kit
1616
run: curl -s https://shopify.github.io/themekit/scripts/install.py | sudo python
1717
- name: Download liquid
18-
run: theme download
18+
run: theme --dir theme download
1919
env:
2020
THEME_APP_SECRET: ${{ secrets.THEME_APP_SECRET }}
2121
THEME_ID: ${{ secrets.THEME_ID }}

WORKSPACE

+2-2
Original file line numberDiff line numberDiff line change
@@ -1465,8 +1465,8 @@ go_repository(
14651465
go_repository(
14661466
name = "com_github_kogai_onix_codegen",
14671467
importpath = "github.com/kogai/onix-codegen",
1468-
sum = "h1:GgbXJYRfb65u8DHwKjq8c0uJQe2uYkHFjydese+2XOY=",
1469-
version = "v0.0.0-20210115161516-0134b80e0f71",
1468+
sum = "h1:rGitXq8sIBQc5CcqHwUdBXN1nBMhUZX1xa8uTswt5Jo=",
1469+
version = "v0.0.0-20210120165507-1661b6cc3d1d",
14701470
)
14711471

14721472
go_rules_dependencies()

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require (
1212
github.com/bold-commerce/go-shopify v2.3.0+incompatible
1313
github.com/gomarkdown/markdown v0.0.0-20201113031856-722100d81a8e
1414
github.com/google/go-querystring v1.0.0 // indirect
15-
github.com/kogai/onix-codegen v0.0.0-20210115161516-0134b80e0f71
15+
github.com/kogai/onix-codegen v0.0.0-20210120165507-1661b6cc3d1d
1616
github.com/shopspring/decimal v1.2.0 // indirect
1717
github.com/spf13/cobra v1.1.1
1818
github.com/tdewolff/minify/v2 v2.9.10

go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ github.com/kogai/onix-codegen v0.0.0-20210115150916-b4661a1eb629 h1:BQJKUZi76Jyb
151151
github.com/kogai/onix-codegen v0.0.0-20210115150916-b4661a1eb629/go.mod h1:O6sFzL6G9/WlHKtUaORq8Z/DQuATGdo5GCo+QcQSye4=
152152
github.com/kogai/onix-codegen v0.0.0-20210115161516-0134b80e0f71 h1:GgbXJYRfb65u8DHwKjq8c0uJQe2uYkHFjydese+2XOY=
153153
github.com/kogai/onix-codegen v0.0.0-20210115161516-0134b80e0f71/go.mod h1:O6sFzL6G9/WlHKtUaORq8Z/DQuATGdo5GCo+QcQSye4=
154+
github.com/kogai/onix-codegen v0.0.0-20210120165507-1661b6cc3d1d h1:rGitXq8sIBQc5CcqHwUdBXN1nBMhUZX1xa8uTswt5Jo=
155+
github.com/kogai/onix-codegen v0.0.0-20210120165507-1661b6cc3d1d/go.mod h1:O6sFzL6G9/WlHKtUaORq8Z/DQuATGdo5GCo+QcQSye4=
154156
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
155157
github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
156158
github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=

onix/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ go_library(
1414
deps = [
1515
"//gqlgenc/client:go_default_library",
1616
"@com_github_bold_commerce_go_shopify//:go_default_library",
17-
"@com_github_kogai_onix_codegen//go:go",
17+
"@com_github_kogai_onix_codegen//generated/go/v2:go",
1818
],
1919
)

onix/message.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"strconv"
77

8-
codegen "github.com/kogai/onix-codegen/go"
8+
codegen "github.com/kogai/onix-codegen/generated/go/v2"
99
)
1010

1111
// Productidentifiers is not documented yet.

onix/onix.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"strconv"
1313

1414
"github.com/kogai/k9bookshelf/gqlgenc/client"
15-
codegen "github.com/kogai/onix-codegen/go"
15+
codegen "github.com/kogai/onix-codegen/generated/go/v2"
1616
)
1717

1818
func findMetaFieldIDBy(fetchedProducts *client.ProductISBNs, idx int, key string) *string {

onix/util.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
shopify "github.com/bold-commerce/go-shopify"
1212
"github.com/kogai/k9bookshelf/gqlgenc/client"
13-
codegen "github.com/kogai/onix-codegen/go"
13+
codegen "github.com/kogai/onix-codegen/generated/go/v2"
1414
)
1515

1616
// TODO: Convert implementation to instance method.

0 commit comments

Comments
 (0)