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

Automate the version injecting workflow #4

Open
zmrhaljiri opened this issue May 27, 2019 · 0 comments
Open

Automate the version injecting workflow #4

zmrhaljiri opened this issue May 27, 2019 · 0 comments
Labels
feature request New feature or request

Comments

@zmrhaljiri
Copy link
Owner

The WebpackAutoInject plugin is increasing the version property in package.json.

There are 3 available options, each increasing different number:

  • Major - from 1.0.0 to 2.0.0
  • Minor - from 1.0.0 to 1.1.0
  • Patch - from 1.0.0 to 1.0.1

Currently, every time build is run, it increases the version by 1 (patch option).

Suggestion is to create an argument to the build script that would apply the specified option. Also with letting patch to by the default option.

Examples:
npm start build - default, for patch change
npm start build --env.minor - for minor change
npm start build --env.major - for major change

@zmrhaljiri zmrhaljiri added the feature request New feature or request label May 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant