Skip to content

Commit

Permalink
Cleanup project root and update package-lock.json
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelthomas2774 committed Mar 20, 2018
1 parent b4bd9e9 commit 1772edd
Show file tree
Hide file tree
Showing 31 changed files with 754 additions and 1,405 deletions.
1 change: 1 addition & 0 deletions .editorconfig
Expand Up @@ -2,6 +2,7 @@ root = true

[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

indent_style = space
Expand Down
2 changes: 1 addition & 1 deletion .gitattributes
@@ -1 +1 @@
*.sh text=auto
*.sh text=auto
32 changes: 7 additions & 25 deletions .gitignore
@@ -1,27 +1,9 @@
.idea/*
*.name
devjs/.idea/devjs.iml
*.bak
*.bak.*
*.xpi
Firefox/data/js/jquery-2.1.4.min.js
*.dev.*
/nbproject/private/
# Generated files
node_modules
.sass-cache
/*.jiiks
Installers/dotNet/bin/
Installers/dotNet/packages/
Installers/dotNet/dlls/
v2/dist/vendor/
v2/lib/static.js
**/*.suo
Installers/**/*/bin
Installers/**/*/obj
Installers/**/*/packages
.vs
dist/
user.config.json
dist
etc
release

# User data
tests/data
/tests/themes/SimplerFlat
release
user.config.json
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -3,4 +3,4 @@ node_js:
- stable
branches:
only:
- master
- master
2 changes: 1 addition & 1 deletion LICENSE
Expand Up @@ -6,4 +6,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3 changes: 2 additions & 1 deletion README.MD → README.md
@@ -1,3 +1,4 @@
# BetterDiscordApp [![Travis][build-badge]][build]

[build-badge]: https://img.shields.io/travis/JsSucks/BetterDiscordApp/master.svg
[build]: https://travis-ci.org/JsSucks/BetterDiscordApp
[build]: https://travis-ci.org/JsSucks/BetterDiscordApp
2 changes: 1 addition & 1 deletion client/package.json
Expand Up @@ -5,7 +5,7 @@
"version": "2.0.0b",
"homepage": "https://betterdiscord.net",
"license": "MIT",
"main": "index.js",
"main": "dist/betterdiscord.client.js",
"contributors": [
"Jiiks",
"Pohky"
Expand Down
2 changes: 1 addition & 1 deletion core/.babelrc
Expand Up @@ -7,4 +7,4 @@
"debug": true
}]
]
}
}
8 changes: 4 additions & 4 deletions core/gulpfile.js
Expand Up @@ -5,7 +5,7 @@ const
plumber = require('gulp-plumber'),
watch = require('gulp-watch');

const task_babel = function () {
const task_build = function () {
return pump([
gulp.src('src/**/*js'),
plumber(),
Expand All @@ -14,7 +14,7 @@ const task_babel = function () {
]);
}

const watch_babel = function () {
const task_watch = function () {
return pump([
watch('src/**/*js'),
plumber(),
Expand All @@ -23,5 +23,5 @@ const watch_babel = function () {
]);
}

gulp.task('build', task_babel);
gulp.task('watch', watch_babel);
gulp.task('build', task_build);
gulp.task('watch', task_watch);
1 change: 0 additions & 1 deletion core/index.js

This file was deleted.

7 changes: 2 additions & 5 deletions core/package.json
Expand Up @@ -5,7 +5,7 @@
"version": "2.0.0b",
"homepage": "https://betterdiscord.net",
"license": "MIT",
"main": "index.js",
"main": "dist/main.js",
"contributors": [
"Jiiks",
"Pohky"
Expand All @@ -15,11 +15,8 @@
"url": "https://github.com/Jiiks/BetterDiscordApp.git"
},
"private": false,
"devDependencies": {

},
"scripts": {
"build": "gulp build",
"watch": "gulp watch"
"watch": "gulp watch"
}
}
5 changes: 1 addition & 4 deletions csseditor/package.json
Expand Up @@ -5,7 +5,7 @@
"version": "0.4.0",
"homepage": "https://betterdiscord.net",
"license": "MIT",
"main": "index.js",
"main": "dist/csseditor.js",
"contributors": [
"Jiiks",
"Pohky"
Expand All @@ -15,9 +15,6 @@
"url": "https://github.com/Jiiks/BetterDiscordApp.git"
},
"private": false,
"devDependencies": {

},
"scripts": {
"build": "webpack --progress --colors",
"watch": "webpack --progress --colors --watch"
Expand Down
20 changes: 14 additions & 6 deletions csseditor/webpack.config.js
@@ -1,16 +1,16 @@
const
path = require('path'),
webpack = require('webpack');
const path = require('path');
const webpack = require('webpack');

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',
Expand All @@ -21,9 +21,17 @@ module.exports = {
module: {
loaders: [vueLoader, scssLoader]
},
externals: {
electron: 'window.require("electron")',
fs: 'window.require("fs")'
},
resolve: {
alias: {
vue$: path.resolve('..', 'node_modules', 'vue', 'dist', 'vue.esm.js')
}
},
modules: [
path.resolve('..', 'node_modules'),
path.resolve('..', 'common', 'modules')
]
}
};
38 changes: 19 additions & 19 deletions gulpfile.js
Expand Up @@ -18,52 +18,52 @@ const client = function() {
rename(`client.${clientpkg.version}.js`),
gulp.dest('./release')
]);
}
};

const core = function() {
return pump([
gulp.src('./core/dist/modules/**/*'),
copy('release/', { prefix: 2 })
]);
}

const core2 = function() {
return pump([
gulp.src('./core/dist/main.js'),
rename(`core.${corepkg.version}.js`),
gulp.dest('./release')
]);
}

const core3 = function() {
return fs.writeFileSync('./release/index.js', `module.exports = require('./core.${corepkg.version}.js');`);
}
};

const sparkplug = function() {
return pump([
gulp.src('./core/dist/sparkplug.js'),
gulp.dest('./release')
]);
}
};

const core_modules = function() {
return pump([
gulp.src('./core/dist/modules/**/*'),
copy('release/', { prefix: 2 })
]);
};

const index = function() {
return fs.writeFileSync('./release/index.js', `module.exports = require('./core.${corepkg.version}.js');`);
};

const cssEditor = function() {
return pump([
gulp.src('./csseditor/dist/**/*'),
copy('release/csseditor', { prefix: 2 })
]);
}
};

const deps = function() {
return copydeps('./', './release');
}
};

const bindings = function() {
const node_sass_bindings = function() {
return pump([
gulp.src('./other/node_sass_bindings/**/*'),
copy('release/node_modules/node-sass/vendor', { prefix: 2 })
]);
}
};

gulp.task('release', function () {
del(['./release/**/*']).then(() => merge(client(), core(), core2(), core3(), sparkplug(), cssEditor(), deps(), bindings()));
del(['./release/**/*']).then(() => merge(client(), core(), sparkplug(), core_modules(), index(), cssEditor(), deps(), node_sass_bindings()));
});
5 changes: 1 addition & 4 deletions installer/package.json
Expand Up @@ -5,7 +5,7 @@
"version": "2.0.0",
"homepage": "https://betterdiscord.net",
"license": "MIT",
"main": "index.js",
"main": "dist/installer.js",
"contributors": [
"Jiiks",
"Pohky"
Expand All @@ -15,9 +15,6 @@
"url": "https://github.com/Jiiks/BetterDiscordApp.git"
},
"private": false,
"devDependencies": {

},
"scripts": {
"build": "webpack --progress --colors",
"watch": "webpack --progress --colors --watch"
Expand Down
5 changes: 3 additions & 2 deletions installer/webpack.config.js
Expand Up @@ -2,16 +2,17 @@ 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',
Expand Down

0 comments on commit 1772edd

Please sign in to comment.