mazey 3.9.0 → 3.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -10,7 +10,7 @@ English | [简体中文](https://github.com/mazeyqian/mazey/blob/master/README_Z
10
10
  [l-image]: https://img.shields.io/npm/l/mazey
11
11
  [l-url]: https://github.com/mazeyqian/mazey
12
12
 
13
- Mazey's functional library for daily front-end work. There are already many excellent libraries for front-end development, but creating a file named `utils.js` or `common.js` is generally used to supply common functions in projects. It's boring to copy similar functions across multiple projects. That's why I've created this library and will keep updating it to serve as a reliable resource for front-end needs.
13
+ **mazey** is a functional library for daily front-end work. There are already many excellent libraries for front-end development, but creating a file named `utils.js` or `common.js` is generally used to supply common functions in projects. It's boring to copy similar functions across multiple projects. That's why I've created this library and will keep updating it to serve as a reliable resource for front-end needs.
14
14
 
15
15
  ## Install
16
16
 
package/lib/index.cjs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * mazey v3.9.0
2
+ * mazey v3.9.2
3
3
  * (c) 2018-2023 Mazey Chu
4
4
  * Released under the MIT License.
5
5
  */
package/lib/index.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * mazey v3.9.0
2
+ * mazey v3.9.2
3
3
  * (c) 2018-2023 Mazey Chu
4
4
  * Released under the MIT License.
5
5
  */
package/lib/mazey.min.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * mazey v3.9.0
2
+ * mazey v3.9.2
3
3
  * (c) 2018-2023 Mazey Chu
4
4
  * Released under the MIT License.
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mazey",
3
- "version": "3.9.0",
3
+ "version": "3.9.2",
4
4
  "description": "Mazey's library for front-end.",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.esm.js",
@@ -1,8 +1,7 @@
1
1
  /* eslint-disable @typescript-eslint/no-var-requires */
2
2
  /* eslint-disable no-undef */
3
- // Github Helper
3
+ // Git Helper
4
4
  const execa = require('execa');
5
- const { generateToc } = require('./build-helper');
6
5
 
7
6
  /**
8
7
  * Release this project with version by `process.env.VERSION` or `package.json`.
@@ -38,6 +37,7 @@ async function release (ver, { canGenerateToc = false, defaultBranch = 'master'
38
37
  console.error('Fail to get the current version.');
39
38
  return;
40
39
  }
40
+ const { generateToc } = require('./build-helper');
41
41
  const releaseVersion = `v${ver}`;
42
42
  const { stdout: releaseStdout } = await execa('echo', [`Start release ${releaseVersion}...`]);
43
43
  console.log(releaseStdout);
@@ -55,7 +55,7 @@ async function release (ver, { canGenerateToc = false, defaultBranch = 'master'
55
55
  // Commit Again
56
56
  await gitCommit(releaseVersion);
57
57
  // Push
58
- console.log('Pushing to GitHub...');
58
+ console.log('Pushing to the remote Git...');
59
59
  // await execa('git', ['tag', '-a', `${releaseVersion}`, '-m', `Release ${releaseVersion}`]);
60
60
  // await execa('git', ['push', 'origin', `refs/tags/${releaseVersion}`]);
61
61
  await gitTagPush(releaseVersion);
@@ -149,4 +149,5 @@ module.exports = {
149
149
  gitMergeMaster2Release,
150
150
  getGitCurrentBranch,
151
151
  gitCommit,
152
+ gitTagPush,
152
153
  };
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable @typescript-eslint/no-var-requires */
2
2
  /* eslint-disable no-undef */
3
3
  // release
4
- const { release } = require('./github-helper');
4
+ const { release } = require('./git-helper');
5
5
  const pkgVersion = process.env.SCRIPTS_NPM_PACKAGE_VERSION || process.env.VERSION || require('../package.json').version;
6
6
 
7
7
  console.log('release: SCRIPTS_NPM_PACKAGE_VERSION', process.env.SCRIPTS_NPM_PACKAGE_VERSION);