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

github.com/nextcloud/passman.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrantje <brantje@gmail.com>2016-09-10 14:29:23 +0300
committerbrantje <brantje@gmail.com>2016-09-10 14:29:23 +0300
commit74a0b06e8d86b6ef8dc8391be3eb9408c5c87c7d (patch)
treef160a008fda17475d8368f51ebd15b1ae1a902de /Gruntfile.js
parent079449f25c6a5b2d1f3837052601da86df27db49 (diff)
Setup angular, setup grunt, update readme
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js47
1 files changed, 47 insertions, 0 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
new file mode 100644
index 00000000..31404e99
--- /dev/null
+++ b/Gruntfile.js
@@ -0,0 +1,47 @@
+module.exports = function (grunt) {
+
+ // Project configuration.
+ grunt.initConfig({
+ pkg: grunt.file.readJSON('package.json'),
+ html2js: {
+ options: {
+ // custom options, see below
+ base: 'templates'
+ },
+ main: {
+ src: ['templates/views/**/*.html'],
+ dest: 'js/templates.js'
+ }
+ },
+
+ //@TODO JSHint, comile sass
+ watch: {
+ scripts: {
+ files: ['Gruntfile.js', 'views/*.html'],
+ tasks: ['html2js'],
+ options: {
+ spawn: false,
+ interrupt: true,
+ reload: true
+ }
+ }
+ },
+ // uglify: {
+ // options: {
+ // banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
+ // },
+ // build: {
+ // src: 'src/<%= pkg.name %>.js',
+ // dest: 'build/<%= pkg.name %>.min.js'
+ // }
+ // }
+ });
+
+ // Load the plugin that provides the "uglify" task.
+ grunt.loadNpmTasks('grunt-contrib-uglify');
+ grunt.loadNpmTasks('grunt-html2js');
+ grunt.loadNpmTasks('grunt-contrib-watch');
+ // Default task(s).
+ grunt.registerTask('default', ['html2js']);
+
+}; \ No newline at end of file