3.0.6 • Published 10 months ago

@hv/publish v3.0.6

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
10 months ago

HV Publish

Within bitbucket pipelines:

yarn run build # build your site
npm install -g hv-publish
save2repo
hv-publish

Under the assumption of the build directory being at ./build.

Combination Strategy (hv-publish and save2repo)

hv-publish and save2repo are very often used in conjunction, but the order may vary:

- hv-publish
- save2repo

or

- save2repo
- hv-publish

The first should be the normal case. But whatever the order, we want to get most out of the combination:

hv-publish should

  • publish to Netlify
  • save the website info to dept.dev
  • save the commit info to dept.dev
    • of the source repository
    • and the build repository

save2repo should

  • commit to another bitbucket git repository
    • the commit message should include the dept.dev index + commit messages

To make sure this works for both order cases, let's take these steps:

hv-publish, then save2repo

  • hv-publish
    • publish to Netlify
    • save to dept.dev --> .hv-publish.json
  • save2repo
    • save to repo, use info of .hv-publish.json --> .save2repo.json
    • patch dept.dev

save2repo, then hv-publish

  • save2repo
    • save to repo, use only commit messages --> .save2repo.json
  • hv-publish
    • publish to Netlify
    • save to dept.dev, use info of .save2repo.json
    • update commit message with info of hv-publish

Combined

  • hv-publish

    • publish to Netlify
    • if .save2repo.json
      • save to dept.dev with all info
      • update commit message with info from dept.dev
    • else
      • save to dept.dev without build_repo info
      • save result to .hv-publish.json
  • save2repo

    • if .hv-publish.json
      • commit to repo with info from .hv-publish.json
      • patch dept.dev with commit info
    • else
      • commit to repo without dept.dev info (no index)
      • save commit info to .save2repo.json
3.0.0-beta.1

10 months ago

3.0.0-alpha.7

10 months ago

3.0.0-alpha.6

10 months ago

3.0.0-beta.3

10 months ago

3.0.0-alpha.9

10 months ago

3.0.0-beta.2

10 months ago

3.0.0-alpha.8

10 months ago

3.0.0-beta.5

10 months ago

3.0.0-beta.4

10 months ago

3.0.0-alpha.13

10 months ago

3.0.0-alpha.1

11 months ago

3.0.0-alpha.3

11 months ago

3.0.0-alpha.2

11 months ago

2.0.12

1 year ago

3.0.0-alpha.5

11 months ago

3.0.0-alpha.4

11 months ago

3.0.0-alpha.10

10 months ago

3.0.0-alpha.12

10 months ago

3.0.0-alpha.11

10 months ago

3.0.4

10 months ago

3.0.3

10 months ago

3.0.2

10 months ago

3.0.1

10 months ago

3.0.6

10 months ago

3.0.5

10 months ago

3.0.0

10 months ago

2.0.11

2 years ago

2.0.10

4 years ago

2.0.9

4 years ago

2.0.7

5 years ago

2.0.5

5 years ago

2.0.6

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago