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

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/ng-dialog/Gruntfile.js')
-rw-r--r--node_modules/ng-dialog/Gruntfile.js52
1 files changed, 52 insertions, 0 deletions
diff --git a/node_modules/ng-dialog/Gruntfile.js b/node_modules/ng-dialog/Gruntfile.js
new file mode 100644
index 0000000000..c943323878
--- /dev/null
+++ b/node_modules/ng-dialog/Gruntfile.js
@@ -0,0 +1,52 @@
+module.exports = function (grunt) {
+
+ grunt.initConfig({
+ pkg: grunt.file.readJSON('package.json'),
+ uglify: {
+ options: {
+ banner: '/*! <%= pkg.name %> - v<%= pkg.version %> (<%= pkg.homepage %>) */\n'
+ },
+ ngDialog: {
+ files: {
+ './js/ngDialog.min.js': ['./js/ngDialog.js']
+ }
+ }
+ },
+ jshint: {
+ options: {
+ ignores: ['./js/ngDialog.min.js']
+ },
+ files: ['*.js']
+ },
+ myth: {
+ dist: {
+ files: {
+ './css/ngDialog.css': './css/myth/ngDialog.css',
+ './css/ngDialog-theme-default.css': './css/myth/ngDialog-theme-default.css',
+ './css/ngDialog-theme-plain.css': './css/myth/ngDialog-theme-plain.css'
+ }
+ }
+ },
+ cssmin: {
+ options: {
+ banner: '/*! <%= pkg.name %> - v<%= pkg.version %> (<%= pkg.homepage %>) */\n'
+ },
+ minify: {
+ files: {
+ 'css/ngDialog.min.css': ['css/ngDialog.css'],
+ 'css/ngDialog-theme-default.min.css': ['css/ngDialog-theme-default.css'],
+ 'css/ngDialog-theme-plain.min.css': ['css/ngDialog-theme-plain.css']
+ }
+ }
+ }
+ });
+
+ grunt.loadNpmTasks('grunt-contrib-jshint');
+ grunt.loadNpmTasks('grunt-contrib-uglify');
+ grunt.loadNpmTasks('grunt-myth');
+ grunt.loadNpmTasks('grunt-contrib-cssmin');
+
+ grunt.registerTask('default', ['jshint']);
+ grunt.registerTask('build', ['uglify', 'myth', 'cssmin']);
+ grunt.registerTask('css', ['myth', 'cssmin']);
+};