Skip to content

Commit fea8a50

Browse files
author
Jonas Siewertsen
committed
first commit
0 parents  commit fea8a50

File tree

10 files changed

+124
-0
lines changed

10 files changed

+124
-0
lines changed

Diff for: .gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

Diff for: .gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.DS_Store
2+
.idea
3+
build
4+
composer.lock
5+
vendor
6+
coverage
7+
/node_modules/
8+
.phpunit.result.cache

Diff for: README.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Statamic Livewire
2+
![Statamic 3.0+](https://img.shields.io/badge/Statamic-3.0+-FF269E?style=for-the-badge&link=https://statamic.com)
3+
4+

Diff for: composer.json

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "jonassiewertsen/statamic-livewire",
3+
"description": "A Laravel Livewire integration for Statamic v3.",
4+
"keywords": [
5+
"Statamic",
6+
"Addon",
7+
"Laravel",
8+
"Livewire"
9+
],
10+
"license": "proprietary",
11+
"type": "statamic-addon",
12+
"autoload": {
13+
"psr-4": {
14+
"Jonassiewertsen\\Livewire\\": "src"
15+
}
16+
},
17+
"authors": [
18+
{
19+
"name": "Jonas Siewertsen"
20+
}
21+
],
22+
"support": {
23+
"email": "[email protected]"
24+
},
25+
"require": {
26+
"php": "^7.4",
27+
"illuminate/support": "^7.0",
28+
"statamic/cms": "3.*@beta",
29+
"livewire/livewire": "^1.0"
30+
},
31+
"extra": {
32+
"statamic": {
33+
"name": "Livewire",
34+
"description": "A Laravel Livewire integration for Statamic v3."
35+
},
36+
"laravel": {
37+
"providers": [
38+
"Jonassiewertsen\\Livewire\\ServiceProvider"
39+
]
40+
}
41+
}
42+
}

Diff for: config/config.php

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
return [
4+
//
5+
];

Diff for: package.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"private": true,
3+
"scripts": {
4+
"dev": "npm run development",
5+
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
6+
"watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
7+
"watch-poll": "npm run watch -- --watch-poll",
8+
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
9+
"prod": "npm run production",
10+
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
11+
},
12+
"devDependencies": {
13+
"cross-env": "^5.1",
14+
"laravel-mix": "^2.0"
15+
}
16+
}

Diff for: resources/js/addon.js

Whitespace-only changes.

Diff for: src/ServiceProvider.php

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace Jonassiewertsen\Livewire;
4+
5+
use Statamic\Providers\AddonServiceProvider;
6+
7+
class ServiceProvider extends AddonServiceProvider
8+
{
9+
public function boot()
10+
{
11+
parent::boot();
12+
}
13+
14+
protected $tags = [
15+
//
16+
];
17+
}

Diff for: src/Tags/Livewire.php

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
4+
namespace Jonassiewertsen\Livewire\Tags;
5+
6+
7+
class Livewire extends \Statamic\Tags\Tags
8+
{
9+
public function styles() {
10+
//
11+
}
12+
13+
public function scripts() {
14+
//
15+
}
16+
}

Diff for: webpack.mix.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
let mix = require('laravel-mix');
2+
3+
/*
4+
|--------------------------------------------------------------------------
5+
| Mix Asset Management
6+
|--------------------------------------------------------------------------
7+
|
8+
| Mix provides a clean, fluent API for defining some Webpack build steps
9+
| for your Laravel application. By default, we are compiling the Sass
10+
| file for the application as well as bundling up all the JS files.
11+
|
12+
*/
13+
14+
// mix.js('src/resources/js/addon.js', 'public/js/addon.js');

0 commit comments

Comments
 (0)