Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14,267 changes: 14,267 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"resolve-url-loader": "^3.1.2",
"sass": "^1.15.2",
"sass-loader": "^7.1.0",
"vue": "^2.5.17"
"vue": "^2.5.17",
"vue-template-compiler": "^2.7.16"
},
"resolutions": {
"laravel-mix/webpack/terser-webpack-plugin/cacache/ssri": "^6.0.2"
Expand Down
10,937 changes: 10,931 additions & 6 deletions public/css/app.css

Large diffs are not rendered by default.

37,648 changes: 37,647 additions & 1 deletion public/js/app.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"/js/app.js": "/js/app.js",
"/css/app.css": "/css/app.css"
}
31 changes: 3 additions & 28 deletions resources/js/app.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,7 @@
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/

require('./bootstrap');

window.Vue = require('vue');

/**
* The following block of code may be used to automatically register your
* Vue components. It will recursively scan this directory for the Vue
* components and automatically register them with their "basename".
*
* Eg. ./components/ExampleComponent.vue -> <example-component></example-component>
*/

// const files = require.context('./', true, /\.vue$/i);
// files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key).default));

Vue.component('example-component', require('./components/ExampleComponent.vue').default);

/**
* Next, we will create a fresh Vue application instance and attach it to
* the page. Then, you may begin adding components to this application
* or customize the JavaScript scaffolding to fit your unique needs.
*/
import $ from 'jquery';

const app = new Vue({
el: '#app',
$(document).ready(function() {
console.log('jQueryが正常に読み込まれました!');
});
2 changes: 2 additions & 0 deletions resources/views/welcome.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>Laravel</title>
Expand Down Expand Up @@ -95,5 +96,6 @@
</div>
</div>
</div>
<script src="{{ mix('/js/app.js') }}"></script>
</body>
</html>
7,090 changes: 0 additions & 7,090 deletions yarn.lock

This file was deleted.