Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sualko/cloud_piwik.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus <klaus@jsxc.org>2015-09-06 16:29:23 +0300
committerKlaus <klaus@jsxc.org>2015-09-06 16:29:23 +0300
commita686d58cacf46692f93431eb39a577814dedc93a (patch)
treeebc5ae403ea73337ff70338d0429c60791fc462f /Gruntfile.js
parentf11c7cbc5795fc6d8c5aa32d6d67f74584bcf534 (diff)
beautify js
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
new file mode 100644
index 0000000..e60e208
--- /dev/null
+++ b/Gruntfile.js
@@ -0,0 +1,26 @@
+/* global module:false */
+module.exports = function(grunt) {
+
+ grunt.initConfig({
+ jshint: {
+ options: {
+ jshintrc: '.jshintrc'
+ },
+ gruntfile: {
+ src: 'Gruntfile.js'
+ },
+ files: ['js/*.js', '!js/piwik.js']
+ },
+ jsbeautifier: {
+ files: ['js/*.js', '!js/piwik.js'],
+ options: {
+ config: '.jsbeautifyrc'
+ }
+ },
+ });
+
+ grunt.loadNpmTasks('grunt-contrib-jshint');
+ grunt.loadNpmTasks('grunt-jsbeautifier');
+
+ grunt.registerTask('default', ['jshint', 'jsbeautifier']);
+};