UNPKG

generator-appverse-ionic

Version:
60 lines (51 loc) 1.67 kB
/*jshint node:true */ 'use strict'; module.exports = function (grunt) { //Load all .js tasks definitions at tasks folder grunt.loadTasks('./tasks'); require('load-grunt-tasks')(grunt); require('time-grunt')(grunt); grunt.loadNpmTasks('grunt-browser-sync'); var options = { appName: require('./package.json').name, // Project settings paths: { // Configurable paths app: 'app', dist: 'dist/web', server: 'server', doc: 'doc' }, ports: { app: '9000', dist: '9100', test: '9200', doc: '9300' }, scripts: [ 'app.js', 'states/*.js', 'js/**/*.js', 'components/**/*-module.js', 'components/**/*.js', '!components/**/*.spec.js' ], css: [ 'styles/**/*.css' ] }; // Load grunt configurations automatically at config folder var configs = require('load-grunt-configs')(grunt, options); // Define the configuration for all the tasks grunt.initConfig(configs); grunt.registerTask('default', [ 'server' ]); var _ = require('lodash'); var mobileDistDownloader = require('./tasks/grunt-helpers/download-mobile-dist'); grunt.config.set('paths.mobileDist', 'dist/mobile'); grunt.config.set('mobileBuilder.hostname', 'https://builderhostname'); grunt.config.set('mobileBuilder.username', '<%username%>'); grunt.config.set('mobileBuilder.password', '<%password%>'); grunt.config.set('mobileBuilder.email', '<%email%>'); };