Merge pull request #178 from JsSucks/installer

add initial installer base
This commit is contained in:
Alexei Stukov 2018-03-17 20:02:03 -03:00 committed by GitHub
commit e1456f530c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 95 additions and 1 deletions

25
installer/package.json Normal file
View File

@ -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"
}
}

9
installer/src/app.vue Normal file
View File

@ -0,0 +1,9 @@
<template>
<div id="app">
Installer
</div>
</template>
<script>
export default {}
</script>

10
installer/src/index.html Normal file
View File

@ -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>

11
installer/src/index.js Normal file
View File

@ -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/>'
});

View File

@ -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'
})
]
};

View File

@ -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"