source: trip-planner-front/node_modules/karma-coverage/gruntfile.js@ eed0bf8

Last change on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.6 KB
Line 
1module.exports = function (grunt) {
2 grunt.initConfig({
3 pkgFile: 'package.json',
4 simplemocha: {
5 options: {
6 ui: 'bdd',
7 reporter: 'dot'
8 },
9 unit: {
10 src: [
11 'test/mocha-globals.js',
12 'test/*.spec.js'
13 ]
14 }
15 },
16 'npm-contributors': {
17 options: {
18 commitMessage: 'chore: update contributors'
19 }
20 },
21 conventionalChangelog: {
22 release: {
23 options: {
24 changelogOpts: {
25 preset: 'angular'
26 }
27 },
28 src: 'CHANGELOG.md'
29 }
30 },
31 conventionalGithubReleaser: {
32 release: {
33 options: {
34 auth: {
35 type: 'oauth',
36 token: process.env.GH_TOKEN
37 },
38 changelogOpts: {
39 preset: 'angular'
40 }
41 }
42 }
43 },
44 bump: {
45 options: {
46 commitMessage: 'chore: release v%VERSION%',
47 pushTo: 'upstream',
48 commitFiles: [
49 'package.json',
50 'CHANGELOG.md'
51 ]
52 }
53 },
54 karma: {
55 coffee: {
56 configFile: 'examples/coffee/karma.conf.coffee'
57 },
58 coffeeRequireJS: {
59 configFile: 'examples/coffee-requirejs/karma.conf.coffee'
60 }
61 }
62 })
63
64 require('load-grunt-tasks')(grunt)
65
66 grunt.registerTask('default', ['simplemocha', 'karma'])
67
68 grunt.registerTask('release', 'Bump the version and publish to NPM.', function (type) {
69 grunt.task.run([
70 'npm-contributors',
71 'bump:' + (type || 'patch') + ':bump-only',
72 'conventionalChangelog',
73 'bump-commit',
74 'conventionalGithubReleaser',
75 'npm-publish'
76 ])
77 })
78}
Note: See TracBrowser for help on using the repository browser.