forked from Jiiks/BetterDiscordApp
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #178 from JsSucks/installer
add initial installer base
- Loading branch information
Showing
6 changed files
with
95 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "bdinstaller", | ||
"description": "BetterDiscord Installer", | ||
"author": "Jiiks", | ||
"version": "2.0.0", | ||
"homepage": "https://betterdiscord.net", | ||
"license": "MIT", | ||
"main": "index.js", | ||
"contributors": [ | ||
"Jiiks", | ||
"Pohky" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Jiiks/BetterDiscordApp.git" | ||
}, | ||
"private": false, | ||
"devDependencies": { | ||
|
||
}, | ||
"scripts": { | ||
"build": "webpack --progress --colors", | ||
"watch": "webpack --progress --colors --watch" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<template> | ||
<div id="app"> | ||
Installer | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default {} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>BetterDiscord Installer</title> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import Vue from 'vue'; | ||
import App from './app.vue'; | ||
|
||
const mount = document.createElement('div'); | ||
document.body.appendChild(mount); | ||
|
||
const instance = new Vue({ | ||
el: mount, | ||
components: { App }, | ||
template: '<App/>' | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
const | ||
path = require('path'), | ||
webpack = require('webpack'), | ||
HtmlWebpackPlugin = require('html-webpack-plugin'); | ||
const vueLoader = { | ||
test: /\.(vue)$/, | ||
exclude: /node_modules/, | ||
loader: 'vue-loader' | ||
} | ||
|
||
const scssLoader = { | ||
test: /\.(css|scss)$/, | ||
loader: ['css-loader', 'sass-loader'] | ||
} | ||
|
||
module.exports = { | ||
entry: './src/index.js', | ||
output: { | ||
path: path.resolve(__dirname, 'dist'), | ||
filename: 'installer.js' | ||
}, | ||
module: { | ||
loaders: [vueLoader, scssLoader] | ||
}, | ||
resolve: { | ||
alias: { | ||
vue$: path.resolve('..', 'node_modules', 'vue', 'dist', 'vue.esm.js') | ||
} | ||
}, | ||
plugins: [ | ||
new HtmlWebpackPlugin({ | ||
template: './src/index.html' | ||
}) | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters