@upstatement/twix-darwin-arm64 0.1.3 → 0.1.5
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/bin/twix +0 -0
- package/package.json +7 -24
- package/README.md +0 -36
package/bin/twix
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,31 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@upstatement/twix-darwin-arm64",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"os": [
|
|
9
|
-
"darwin"
|
|
10
|
-
],
|
|
11
|
-
"cpu": [
|
|
12
|
-
"arm64"
|
|
13
|
-
],
|
|
3
|
+
"version": "0.1.5",
|
|
4
|
+
"description": "Platform-specific binary for @upstatement/twix (darwin-arm64)",
|
|
5
|
+
"os": ["darwin"],
|
|
6
|
+
"cpu": ["arm64"],
|
|
7
|
+
"files": ["bin/"],
|
|
14
8
|
"repository": {
|
|
15
9
|
"type": "git",
|
|
16
10
|
"url": "git+https://github.com/Upstatement/twix.git"
|
|
17
11
|
},
|
|
18
|
-
"keywords": [
|
|
19
|
-
"twig",
|
|
20
|
-
"formatter",
|
|
21
|
-
"html",
|
|
22
|
-
"template",
|
|
23
|
-
"craft"
|
|
24
|
-
],
|
|
25
12
|
"author": "Upstatement",
|
|
26
|
-
"license": "MIT"
|
|
27
|
-
|
|
28
|
-
"url": "https://github.com/Upstatement/twix/issues"
|
|
29
|
-
},
|
|
30
|
-
"homepage": "https://github.com/Upstatement/twix#readme"
|
|
31
|
-
}
|
|
13
|
+
"license": "MIT"
|
|
14
|
+
}
|
package/README.md
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# Twix
|
|
2
|
-
|
|
3
|
-
A formatter for Twig templates with HTML.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install --save-dev @upstatement/twix
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
# Format a file (in-place)
|
|
15
|
-
npx twix path/to/file.twig
|
|
16
|
-
|
|
17
|
-
# Format multiple files
|
|
18
|
-
npx twix "src/**/*.twig"
|
|
19
|
-
|
|
20
|
-
# Check if files are formatted (exit 1 if not)
|
|
21
|
-
npx twix --check path/to/file.twig
|
|
22
|
-
|
|
23
|
-
# Format from stdin
|
|
24
|
-
cat file.twig | npx twix --stdin
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Features
|
|
28
|
-
|
|
29
|
-
- **AST-based formatting** - Accurate formatting that understands Twig and HTML structure
|
|
30
|
-
- **Twig inside attributes** - Properly handles `{{ expressions }}` and `{% if %}` blocks in HTML attributes
|
|
31
|
-
- **Whitespace control** - Preserves `{%- -%}` and `{{- -}}` modifiers
|
|
32
|
-
- **Ignore blocks** - Use `{# twix:ignore-start #}` / `{# twix:ignore-end #}` to skip formatting
|
|
33
|
-
|
|
34
|
-
## License
|
|
35
|
-
|
|
36
|
-
MIT
|