Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tell me your version #41

Open
m1kc opened this issue Oct 15, 2015 · 1 comment
Open

tell me your version #41

m1kc opened this issue Oct 15, 2015 · 1 comment
Labels
Milestone

Comments

@m1kc
Copy link
Member

m1kc commented Oct 15, 2015

Если удалось прочитать /BUILD_VERSION:
  -> My build version is set to be {1.1}.
Если удалось прочитать /.git/HEAD:
  Если там SHA - взять.
  Если там ссылка на другой файл - прочитать его (например, "ref: refs/heads/master").
  Если там нет - взять из .git/packed-refs
  -> My head commit is {4673fa7}.
Если ничего не удалось:
  -> Sorry, I don't know.
@m1kc m1kc modified the milestone: 1.2 Oct 30, 2015
@m1kc m1kc added the feature label Oct 30, 2015
@m1kc m1kc removed this from the 1.2 milestone Oct 30, 2015
@m1kc
Copy link
Member Author

m1kc commented Feb 16, 2016

А ещё можно просто читать package.json. Для продакшена этого хватит.

@m1kc m1kc added this to the 1.2.2 milestone Feb 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant