clang-format-node 1.2.4 → 1.3.0
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 +29 -39
- package/build/bin/cfn-darwin-arm64/clang-format +0 -0
- package/build/bin/cfn-darwin-x64/clang-format +0 -0
- package/build/bin/cfn-linux-arm/clang-format +0 -0
- package/build/bin/cfn-linux-arm64/clang-format +0 -0
- package/build/bin/cfn-linux-ppc64/clang-format +0 -0
- package/build/bin/cfn-linux-s390x/clang-format +0 -0
- package/build/bin/cfn-linux-x64/clang-format +0 -0
- package/build/bin/cfn-win32-x64/clang-format.exe +0 -0
- package/build/utils/clangFormatPath.d.ts +2 -0
- package/build/utils/getClangFormatPath.d.ts +2 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,61 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
# <div align="center"> clang-format-node </div>
|
|
1
|
+
# clang-format-node
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Your support helps us improve and maintain the project.
|
|
9
|
-
|
|
10
|
-
<image src="https://llvm.org/img/LLVMWyvernSmall.png" width="350px" height="220px"/><br /><br />
|
|
11
|
-
|
|
12
|
-
&color=violet&display_name=release)
|
|
13
|
-
[](https://www.npmjs.com/package/clang-format-node)
|
|
14
|
-

|
|
15
|
-

|
|
3
|
+
&color=83ba63&display_name=release)
|
|
4
|
+
[](https://www.npmjs.com/package/clang-format-node)
|
|
5
|
+

|
|
6
|
+

|
|
16
7
|
|
|
17
8
|
[](https://github.com/lumirlumir/npm-clang-format-node/actions/workflows/lint.yml)
|
|
18
9
|
[](https://github.com/lumirlumir/npm-clang-format-node/actions/workflows/test.yml)
|
|
19
10
|
[](https://github.com/lumirlumir/npm-clang-format-node/actions/workflows/test-cross-platform.yml)
|
|
20
11
|
[](https://codecov.io/gh/lumirlumir/npm-clang-format-node)
|
|
21
|
-
|
|
22
12
|
[](https://codeclimate.com/github/lumirlumir/npm-clang-format-node/maintainability)
|
|
23
|
-
|
|
13
|
+
|
|
14
|
+
> [!IMPORTANT]
|
|
15
|
+
>
|
|
16
|
+
> If you like this package, please give it a star on [GitHub](https://github.com/lumirlumir/npm-clang-format-node)!⭐<br/>
|
|
17
|
+
> Your support helps us improve and maintain the project.
|
|
24
18
|
|
|
25
19
|
Node wrapper for LLVM Clang's `clang-format` and `git-clang-format` native binaries inspired by [angular/clang-format](https://github.com/angular/clang-format).🐉
|
|
26
20
|
|
|
27
|
-
|
|
28
|
-
</div>
|
|
21
|
+
## Documentation
|
|
29
22
|
|
|
30
|
-
|
|
31
|
-
>
|
|
32
|
-
> Please participate in the issue regarding the introduction of a **glob pattern**. Click [here](https://github.com/lumirlumir/npm-clang-format-node/issues/14).
|
|
23
|
+
For full documentation, see the [official documentation of the `clang-format-node`](https://clang-format-node.lumir.page).
|
|
33
24
|
|
|
34
25
|
## Included Packages
|
|
35
26
|
|
|
36
27
|
This repository is maintained as a **monorepo** and includes the following **three** packages.
|
|
37
28
|
|
|
38
|
-
### `clang-format-node` [
|
|
29
|
+
### `clang-format-node` - <small>[Repository](https://github.com/lumirlumir/npm-clang-format-node/tree/main/packages/clang-format-node) | [npm](https://www.npmjs.com/package/clang-format-node)</small>
|
|
39
30
|
|
|
40
|
-
|
|
31
|
+
[](https://www.npmjs.com/package/clang-format-node)
|
|
32
|
+

|
|
41
33
|
|
|
42
34
|
Node wrapper for `clang-format` native binary inspired by angular/clang-format. (The **CORE** package.)
|
|
43
35
|
|
|
44
|
-
### `clang-format-git` [
|
|
36
|
+
### `clang-format-git` - <small>[Repository](https://github.com/lumirlumir/npm-clang-format-node/tree/main/packages/clang-format-git) | [npm](https://www.npmjs.com/package/clang-format-git)</small>
|
|
45
37
|
|
|
46
|
-
|
|
38
|
+
[](https://www.npmjs.com/package/clang-format-git)
|
|
39
|
+

|
|
47
40
|
|
|
48
41
|
Node wrapper for `git-clang-format` Python script as a standalone native binary to **allow execution without a Python dependency**.
|
|
49
42
|
|
|
50
|
-
### `clang-format-git-python` [
|
|
43
|
+
### `clang-format-git-python` - <small>[Repository](https://github.com/lumirlumir/npm-clang-format-node/tree/main/packages/clang-format-git-python) | [npm](https://www.npmjs.com/package/clang-format-git-python)</small>
|
|
51
44
|
|
|
52
|
-
|
|
45
|
+
[](https://www.npmjs.com/package/clang-format-git-python)
|
|
46
|
+

|
|
53
47
|
|
|
54
48
|
Node wrapper for `git-clang-format` Python script. **This package requires Python3 as a dependency**.
|
|
55
49
|
|
|
56
50
|
## Supported
|
|
57
51
|
|
|
58
|
-
See the [supported](/docs/
|
|
52
|
+
See the [supported](https://clang-format-node.lumir.page/docs/get-started/supported) section of the documentation, which lists the following:
|
|
59
53
|
|
|
60
54
|
- OS Platforms and Architectures
|
|
61
55
|
- Node.js Version
|
|
@@ -64,34 +58,30 @@ See the [supported](/docs/01-introduction/05-supported.md) section of the docume
|
|
|
64
58
|
|
|
65
59
|
## Releases
|
|
66
60
|
|
|
67
|
-
Each package intends to release a new npm package for every **latest** release of `clang-format` and `git-clang-format`. Automated GitHub Actions check for the latest LLVM release every week, builds all packages using their own pipeline, and makes a pull request. **All processes are automated**. If you are interested in the build process, take a look at [`.github/workflows/llvm-build-bump-pr.yml`](/.github/workflows/llvm-build-bump-pr.yml).
|
|
68
|
-
|
|
69
|
-
## Documentation
|
|
70
|
-
|
|
71
|
-
For full documentation, see the [official documentation of the `clang-format-node`](https://clang-format-node.lumir.page) or [`docs` directory of `clang-format-node` repository](https://github.com/lumirlumir/npm-clang-format-node/tree/main/docs).
|
|
61
|
+
Each package intends to release a new npm package for every **latest** release of `clang-format` and `git-clang-format`. Automated GitHub Actions check for the latest LLVM release every week, builds all packages using their own pipeline, and makes a pull request. **All processes are automated**. If you are interested in the build process, take a look at [`.github/workflows/llvm-build-bump-pr.yml`](https://github.com/lumirlumir/npm-clang-format-node/blob/main/.github/workflows/llvm-build-bump-pr.yml).
|
|
72
62
|
|
|
73
63
|
## Contributing (Issues & Pull Requests)
|
|
74
64
|
|
|
75
65
|
Thanks for having attention to this package🙇♂️. We appreciate you spending the time to work on these things. Every issue and pull request about bugs, suggestions and the other topics is always welcome!
|
|
76
66
|
|
|
77
|
-
Please read our [
|
|
67
|
+
Please read our [Code of Conduct](https://github.com/lumirlumir/npm-clang-format-node/blob/main/CODE_OF_CONDUCT.md) and [Contributing](https://github.com/lumirlumir/npm-clang-format-node/blob/main/CONTRIBUTING.md) Guides before you work on these things. We also recommend you to read the [Guides on LLVM `clang-format`](http://clang-format-node.lumir.page/docs/further-reading/guides-on-llvm-clang-format) mentioned in the documentation before contributing.
|
|
78
68
|
|
|
79
69
|
## Code of Conduct
|
|
80
70
|
|
|
81
|
-
See [Code of Conduct](/CODE_OF_CONDUCT.md).
|
|
71
|
+
See [Code of Conduct](https://github.com/lumirlumir/npm-clang-format-node/blob/main/CODE_OF_CONDUCT.md).
|
|
82
72
|
|
|
83
73
|
## Change Log
|
|
84
74
|
|
|
85
|
-
See [Change Log](/CHANGELOG.md).
|
|
75
|
+
See [Change Log](https://github.com/lumirlumir/npm-clang-format-node/blob/main/CHANGELOG.md).
|
|
86
76
|
|
|
87
77
|
## Versioning
|
|
88
78
|
|
|
89
|
-
See [Versioning](/docs/
|
|
79
|
+
See [Versioning](http://clang-format-node.lumir.page/docs/community/versioning).
|
|
90
80
|
|
|
91
81
|
## Security
|
|
92
82
|
|
|
93
|
-
See [Security](/SECURITY.md).
|
|
83
|
+
See [Security](https://github.com/lumirlumir/npm-clang-format-node/blob/main/SECURITY.md).
|
|
94
84
|
|
|
95
85
|
## License
|
|
96
86
|
|
|
97
|
-
[MIT](/LICENSE.md) under [LLVM Apache License 2.0](https://github.com/llvm/llvm-project/blob/main/LICENSE.TXT).
|
|
87
|
+
[MIT](https://github.com/lumirlumir/npm-clang-format-node/blob/main/LICENSE.md) under [LLVM Apache License 2.0](https://github.com/llvm/llvm-project/blob/main/LICENSE.TXT).
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @alias `clangFormatNodePath`. See {@link clangFormatNodePath}.
|
|
5
5
|
* @version `v1.2.0` Initial release.
|
|
6
|
+
* @see https://clang-format-node.lumir.page/docs/apis/clang-format-node
|
|
6
7
|
*/
|
|
7
8
|
export const clangFormatPath: string;
|
|
8
9
|
/**
|
|
@@ -10,5 +11,6 @@ export const clangFormatPath: string;
|
|
|
10
11
|
*
|
|
11
12
|
* @alias `clangFormatPath`. See {@link clangFormatPath}.
|
|
12
13
|
* @version `v1.2.0` Initial release.
|
|
14
|
+
* @see https://clang-format-node.lumir.page/docs/apis/clang-format-node
|
|
13
15
|
*/
|
|
14
16
|
export const clangFormatNodePath: string;
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* @throws `Error` Throws an error if the executable binary is not found for the specified OS platform and architecture.
|
|
12
12
|
* @alias `getClangFormatNodePath`. See {@link getClangFormatNodePath}.
|
|
13
13
|
* @version `v1.2.0` Initial release.
|
|
14
|
+
* @see https://clang-format-node.lumir.page/docs/apis/clang-format-node
|
|
14
15
|
*/
|
|
15
16
|
export function getClangFormatPath(osPlatform: string, architecture: string): string;
|
|
16
17
|
/**
|
|
@@ -26,5 +27,6 @@ export function getClangFormatPath(osPlatform: string, architecture: string): st
|
|
|
26
27
|
* @throws `Error` Throws an error if the executable binary is not found for the specified OS platform and architecture.
|
|
27
28
|
* @alias `getClangFormatNodePath`. See {@link getClangFormatNodePath}.
|
|
28
29
|
* @version `v1.2.0` Initial release.
|
|
30
|
+
* @see https://clang-format-node.lumir.page/docs/apis/clang-format-node
|
|
29
31
|
*/
|
|
30
32
|
export function getClangFormatNodePath(osPlatform: string, architecture: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clang-format-node",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Node wrapper for clang-format native binary inspired by angular/clang-format.🐉",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"files": [
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"test": "node --test",
|
|
51
51
|
"chmod": "find ./src/bin ./build/bin -type f -exec chmod 755 {} + || exit 0"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "9686d5ba81836f06c9afcce40c4cb9f19292bdec"
|
|
54
54
|
}
|