Merge pull request #178 from JsSucks/installer
add initial installer base
This commit is contained in:
commit
e1456f530c
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
<template>
|
||||
<div id="app">
|
||||
Installer
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {}
|
||||
</script>
|
|
@ -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>
|
|
@ -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/>'
|
||||
});
|
|
@ -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'
|
||||
})
|
||||
]
|
||||
};
|
|
@ -34,6 +34,7 @@
|
|||
"gulp-babel": "^7.0.0",
|
||||
"gulp-plumber": "^1.2.0",
|
||||
"gulp-watch": "^5.0.0",
|
||||
"html-webpack-plugin": "^3.0.6",
|
||||
"jquery": "^3.2.1",
|
||||
"lodash": "^4.17.4",
|
||||
"nedb": "^1.8.0",
|
||||
|
@ -51,12 +52,15 @@
|
|||
"webpack": "^3.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm run build --prefix client && npm run build --prefix core && npm run build --prefix csseditor",
|
||||
"build": "npm run build --prefix client && npm run build --prefix core && npm run build --prefix csseditor && npm run build --prefix installer",
|
||||
"build_client": "npm run build --prefix client",
|
||||
"watch_client": "npm run watch --prefix client",
|
||||
"build_core": "npm run build --prefix core",
|
||||
"watch_core": "npm run watch --prefix core",
|
||||
"build_csseditor": "npm run build --prefix csseditor",
|
||||
"watch_csseditor": "npm run watch --prefix csseditor",
|
||||
"build_installer": "npm run build --prefix installer",
|
||||
"watch_installer": "npm run watch --prefix installer",
|
||||
"lint": "eslint -f unix client/src core/src csseditor/src",
|
||||
"test": "npm run build && npm run lint",
|
||||
"build_node-sass": "node scripts/build-node-sass.js"
|
||||
|
|
Loading…
Reference in New Issue