Dev dependancies and Gruntfile

This commit is contained in:
Jiiks 2016-04-10 16:22:47 +03:00
parent 31607f11e8
commit 3b657daffa
2 changed files with 49 additions and 2 deletions

42
Gruntfile.js Normal file
View File

@ -0,0 +1,42 @@
module.exports = function(grunt) {
grunt.initConfig({
sass: {
dist: {
options: {
style: 'expanded'
},
files: {
'dev/css/main.css': 'dev/css/main.sass'
}
}
},
concat: {
js: {
src: 'dev/js/*.js',
dest: 'js/main.js'
},
css: {
src: 'dev/css/*.css',
dest: 'css/main.css'
}
},
uglify: {
js: {
src: 'js/main.js',
dest: 'js/main.min.js'
}
},
cssmin: {
css: {
src: 'css/main.css',
dest: 'css/main.min.css'
}
}
});
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-css');
grunt.registerTask('default', ['concat', 'uglify', 'sass', 'cssmin']);
};

View File

@ -4,5 +4,10 @@
"version": "0.2.7", "version": "0.2.7",
"homepage": "https://github.com/Jiiks/BetterDiscordApp", "homepage": "https://github.com/Jiiks/BetterDiscordApp",
"license": "MIT", "license": "MIT",
"main": "betterdiscord.js" "main": "betterdiscord.js",
"devDependencies": {
"grunt-contrib-concat": "^1.0.0",
"grunt-contrib-sass": "^1.0.0",
"grunt-contrib-uglify": "^1.0.1"
}
} }