djlint 0.0.1-beta1.0 → 1.7.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 CHANGED
@@ -17,15 +17,15 @@
17
17
  <a href="https://codecov.io/gh/Riverside-Healthcare/djlint">
18
18
  <img src="https://codecov.io/gh/Riverside-Healthcare/djlint/branch/master/graph/badge.svg?token=eNTG721BAA" alt="Codecov Status">
19
19
  </a>
20
- <a href="https://github.com/Riverside-Healthcare/djlint/actions/workflows/test.yml">
21
- <img src="https://github.com/Riverside-Healthcare/djlint/actions/workflows/test.yml/badge.svg" alt="Test Status">
22
- </a>
23
20
  <a href="https://www.codacy.com/gh/Riverside-Healthcare/djlint/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=Riverside-Healthcare/djlint&amp;utm_campaign=Badge_Grade">
24
21
  <img src="https://app.codacy.com/project/badge/Grade/dba6338b0e7a4de896b45b382574f369" alt="Codacy Status">
25
22
  </a>
26
23
  <a href="https://pepy.tech/project/djlint">
27
24
  <img src="https://pepy.tech/badge/djlint" alt="Downloads">
28
25
  </a>
26
+ <a href="https://www.npmjs.com/package/djlint">
27
+ <img alt="npm" src="https://img.shields.io/npm/dt/djlint?label=npm%20downloads">
28
+ </a>
29
29
  <a href="https://pypi.org/project/djlint/">
30
30
  <img src="https://img.shields.io/pypi/v/djlint" alt="Pypi Download">
31
31
  </a>
@@ -58,6 +58,12 @@ Grab it with `pip`
58
58
  pip install djlint
59
59
  ```
60
60
 
61
+ *Or with the npm experimental install - Note, this requires python and pip to be on your system path.*
62
+
63
+ ```bash
64
+ npm i djlint
65
+ ```
66
+
61
67
  Lint your project
62
68
 
63
69
  ```bash
package/bin/index.js CHANGED
@@ -3,12 +3,12 @@ const { PythonShell } = require('python-shell');
3
3
 
4
4
  PythonShell.defaultOptions = {
5
5
  mode: 'text',
6
- pythonOptions: ["-u"],
6
+ pythonOptions: ['-u'],
7
7
  env: { PYCHARM_HOSTED: 1 }, // Force color
8
8
  };
9
9
 
10
10
  function clean(output) {
11
- return output.replaceAll('python -m ', '');
11
+ return output.replace(/python -m /g, '');
12
12
  }
13
13
 
14
14
  const yargs = require('yargs');
package/bin/install.js CHANGED
@@ -15,7 +15,7 @@ try {
15
15
  if (error) throw error;
16
16
  console.log(results.join('\n'));
17
17
  });
18
- } catch(e) {
18
+ } catch (e) {
19
19
  console.log(e.message);
20
- process.exit(1)
20
+ process.exit(1);
21
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "djlint",
3
- "version": "0.0.1-beta1.0",
3
+ "version": "1.7.0",
4
4
  "description": "HTML Template Linter and Formatter",
5
5
  "main": "./bin/index.js",
6
6
  "directories": {
@@ -79,21 +79,21 @@
79
79
  ]
80
80
  },
81
81
  "xo": {
82
- "space": true,
83
- "prettier": true,
84
- "rules": {
85
- "unicorn/prefer-module": "off",
86
- "no-var": "warn",
87
- "camelcase": "warn",
88
- "unicorn/filename-case":"warn",
89
- "unicorn/no-process-exit":"off"
90
- },
91
- "globals": [
92
- "document",
93
- "window",
94
- "data",
95
- "debounce",
96
- "history"
97
- ]
98
- }
82
+ "space": true,
83
+ "prettier": true,
84
+ "rules": {
85
+ "unicorn/prefer-module": "off",
86
+ "no-var": "warn",
87
+ "camelcase": "warn",
88
+ "unicorn/filename-case": "warn",
89
+ "unicorn/no-process-exit": "off"
90
+ },
91
+ "globals": [
92
+ "document",
93
+ "window",
94
+ "data",
95
+ "debounce",
96
+ "history"
97
+ ]
98
+ }
99
99
  }