UNPKG

generator-angular-eggs

Version:

Angular 1.5, Angular Component Router, Bootstrap v4(alpha) and TingoDB(like MongoDB) with an Express server

67 lines (65 loc) 1.92 kB
(function() { 'use strict'; module.exports = { options: { // Task-specific options go here. }, scripts: { options: { template: '<%%= paths.app %>/index.html', transform: function(filePath) { filePath = filePath.replace('/app/', ''); filePath = filePath.replace('/.tmp/', ''); return '<script src="' + filePath + '"></script>'; }, starttag: '<!-- injector:js -->', endtag: '<!-- endinjector -->' }, files: { '<%%= paths.app %>/index.html': [ ['<%%= paths.app %>/**/*.js', '!<%%= paths.app %>/scripts/main.js'] ] } }, css: { options: { template: '<%%= paths.app %>/index.html', transform: function(filePath) { filePath = filePath.replace('/app/', ''); filePath = filePath.replace('/.tmp/', ''); return '<link rel="stylesheet" href="' + filePath + '" />'; }, starttag: '<!-- injector:css -->', endtag: '<!-- endinjector -->' }, files: { '<%%= paths.app %>/index.html': [ ['<%%= paths.app %>/**/*.css', '!<%%= paths.app %>/styles/main.css'] ] } }, test: { options: { template: '<%%= paths.karma.config %>', transform: function(filePath) { filePath = filePath.replace('/app/', 'app/'); filePath = filePath.replace('/.tmp/', '.tmp/'); filePath = filePath.replace('/test/', 'test/'); return '\'' + filePath + '\','; }, starttag: '// injector:js', endtag: '// endinjector' }, files: { '<%%= paths.karma.config %>': [ ['<%%= paths.app %>/**/*.js', '!<%%= paths.app %>/scripts/main.js'], ['test/**/*.js', '!test/karma.conf.js'] ] } } }; })();