1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,17 @@ |
1 |
+# EditorConfig is awesome: http://EditorConfig.org |
|
2 |
+ |
|
3 |
+# top-most EditorConfig file |
|
4 |
+root = true |
|
5 |
+ |
|
6 |
+# Unix-style newlines with a newline ending every file |
|
7 |
+[*] |
|
8 |
+end_of_line = lf |
|
9 |
+insert_final_newline = true |
|
10 |
+trim_trailing_whitespace = true |
|
11 |
+ |
|
12 |
+[*.{php,twig,yml}] |
|
13 |
+indent_style = space |
|
14 |
+indent_size = 4 |
|
15 |
+ |
|
16 |
+[*.{html5,svg,min.css,min.js}] |
|
17 |
+insert_final_newline = false |
0 | 5 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,40 @@ |
1 |
+{ |
|
2 |
+ "name": "vonrotenberg/htmx-bundle", |
|
3 |
+ "description": "HTMX library for contao", |
|
4 |
+ "license": "LGPL-3.0-or-later", |
|
5 |
+ "type": "contao-bundle", |
|
6 |
+ "authors": [ |
|
7 |
+ { |
|
8 |
+ "name": "Benjamin Roth", |
|
9 |
+ "homepage": "https://www.vonrotenberg.de" |
|
10 |
+ } |
|
11 |
+ ], |
|
12 |
+ "homepage": "https://www.vonrotenberg.de", |
|
13 |
+ "support": { |
|
14 |
+ "issues": "https://www.vonrotenberg.de" |
|
15 |
+ }, |
|
16 |
+ "require": { |
|
17 |
+ "php": "^7.4 || ^8.0", |
|
18 |
+ "contao/core-bundle": "^4.9 || ^5.0" |
|
19 |
+ }, |
|
20 |
+ "require-dev": { |
|
21 |
+ "contao/manager-plugin": "^2.0" |
|
22 |
+ }, |
|
23 |
+ "conflict": { |
|
24 |
+ "contao/manager-plugin": "<2.0 || >=3.0" |
|
25 |
+ }, |
|
26 |
+ "autoload": { |
|
27 |
+ "psr-4": { |
|
28 |
+ "vonRotenberg\\HtmxBundle\\": "src/" |
|
29 |
+ } |
|
30 |
+ }, |
|
31 |
+ "config": { |
|
32 |
+ "allow-plugins": { |
|
33 |
+ "contao-components/installer": true, |
|
34 |
+ "contao/manager-plugin": true |
|
35 |
+ } |
|
36 |
+ }, |
|
37 |
+ "extra": { |
|
38 |
+ "contao-manager-plugin": "vonRotenberg\\HtmxBundle\\ContaoManager\\Plugin" |
|
39 |
+ } |
|
40 |
+} |
0 | 41 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,17 @@ |
1 |
+/** |
|
2 |
+ * Script to run after npm install |
|
3 |
+ * |
|
4 |
+ * Copy selected files to public directory |
|
5 |
+ */ |
|
6 |
+ |
|
7 |
+'use strict' |
|
8 |
+ |
|
9 |
+var gentlyCopy = require('gently-copy') |
|
10 |
+ |
|
11 |
+var filesToCopy = ['./node_modules/htmx.org/dist/*'] |
|
12 |
+ |
|
13 |
+// public directory |
|
14 |
+var publicPath = './public/' |
|
15 |
+ |
|
16 |
+// Moving files to user's local directory |
|
17 |
+gentlyCopy(filesToCopy, publicPath, {overwrite: true}) |