Skip to content

Commit

Permalink
Merge pull request #178 from JsSucks/installer
Browse files Browse the repository at this point in the history
add initial installer base
  • Loading branch information
Jiiks authored Mar 17, 2018
2 parents 7b52b22 + 5d86b6c commit e1456f5
Show file tree
Hide file tree
Showing 6 changed files with 95 additions and 1 deletion.
25 changes: 25 additions & 0 deletions installer/package.json
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"
}
}
9 changes: 9 additions & 0 deletions installer/src/app.vue
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>
10 changes: 10 additions & 0 deletions installer/src/index.html
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>
11 changes: 11 additions & 0 deletions installer/src/index.js
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/>'
});
35 changes: 35 additions & 0 deletions installer/webpack.config.js
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'
})
]
};
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
Expand Down

0 comments on commit e1456f5

Please sign in to comment.