Skip to content

Commit 8df2d8d

Browse files
Add support for Nova 4 (#6)
Co-authored-by: rklugman <rwklugman@gmail.com>
1 parent 8986cde commit 8df2d8d

6 files changed

Lines changed: 3680 additions & 6901 deletions

File tree

dist/js/nova-echo.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/nova-echo.js.LICENSE.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*!
2+
* Pusher JavaScript Library v7.0.6
3+
* https://pusher.com/
4+
*
5+
* Copyright 2020, Pusher
6+
* Released under the MIT licence.
7+
*/

dist/mix-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"/js/nova-echo.js": "/js/nova-echo.js"
3-
}
3+
}

package.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,21 @@
22
"private": true,
33
"scripts": {
44
"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",
5+
"development": "mix",
6+
"watch": "mix watch",
7+
"watch-poll": "mix watch -- --watch-options-poll=1000",
8+
"hot": "mix watch --hot",
99
"prod": "npm run production",
10-
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
10+
"production": "mix --production"
1111
},
1212
"devDependencies": {
1313
"cross-env": "^5.0.0",
14-
"laravel-mix": "^1.0"
14+
"laravel-mix": "^6.0",
15+
"vue-loader": "^16.2.0"
1516
},
1617
"dependencies": {
17-
"laravel-echo": "^1.5.2",
18-
"pusher-js": "^4.3.1"
18+
"laravel-echo": "^1.11.0",
19+
"pusher-js": "^7.0",
20+
"vue": "^3.0"
1921
}
2022
}

webpack.mix.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
let mix = require('laravel-mix')
2+
let path = require('path')
23

3-
mix.setPublicPath('dist')
4-
.js('resources/js/nova-echo.js', 'js')
4+
mix.alias({
5+
'laravel-nova': path.join(__dirname, '../laravel/nova/resources/js/mixins/packages.js'),
6+
})
7+
8+
mix.js('resources/js/nova-echo.js', 'js').vue({ version: 3 })
9+
.webpackConfig({
10+
externals: {
11+
vue: 'Vue',
12+
},
13+
output: {
14+
uniqueName: 'vendor/nova-echo',
15+
}
16+
})

0 commit comments

Comments
 (0)