Skip to content

Commit

Permalink
pack vue
Browse files Browse the repository at this point in the history
  • Loading branch information
cho45 committed Aug 11, 2017
1 parent ac1aea5 commit 203d31f
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 26 deletions.
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"minimist": "^1.2.0",
"options": "0.0.6",
"url-search-params-polyfill": "^2.0.0",
"vue": "^2.4.2",
"whatwg-fetch": "^2.0.3"
},
"devDependencies": {
Expand Down
27 changes: 16 additions & 11 deletions static/js/library.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/js/library.bundle.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions static/js/library.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ const {
Library,
} = require("kicad-utils");

const Vue = require("vue");

const app = new Vue({
el: '#app',
data: {
Expand Down
27 changes: 16 additions & 11 deletions static/js/schematic.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/js/schematic.bundle.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions static/js/schematic.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ const {
Schematic,
} = require("kicad-utils");

const Vue = require("vue");

const app = new Vue({
el: '#app',
data: {
Expand Down
1 change: 0 additions & 1 deletion static/library.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

<title>KiCAD library Viewer</title>

<script src="https://unpkg.com/vue"></script>
<style>
canvas {
max-width: 250px;
Expand Down
1 change: 0 additions & 1 deletion static/schematic.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

<title>KiCAD Schematic Viewer</title>

<script src="https://unpkg.com/vue"></script>
<style>
.result {
width: 100%;
Expand Down
11 changes: 11 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ module.exports = {
devtool: 'source-map',

resolve: {
alias: {
'vue$': 'vue/dist/vue.common.js'
},
extensions: ['.ts', '.js'],
modules: [
path.join(__dirname, "src"),
Expand All @@ -37,6 +40,14 @@ module.exports = {

module: {
rules: [
{
test: /\.html?$/,
use: [
{
loader: 'raw-loader',
},
]
},
{
test: /\.ts?$/,
use: [
Expand Down

0 comments on commit 203d31f

Please sign in to comment.