generator-appverse-ionic
Version:
Appverse Ionic generator
60 lines (51 loc) • 1.67 kB
JavaScript
/*jshint node:true */
;
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%>');
};