-
Notifications
You must be signed in to change notification settings - Fork 6
/
Gruntfile.js
70 lines (64 loc) · 1.74 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
module.exports = function(grunt) {
grunt.initConfig({
nugetpack: {
simple: {
options: {
id: "NuGetPack.Simple",
version: "1.0.0",
authors: "Some author",
description: "Description of my simple package."
},
src: [
"lib/**/*.js",
"readme.md"
]
},
advanced: {
options: {
id: "NuGetPack.Advanced",
version: "1.0.0",
authors: "Author1,Author2,Author3",
owners: "Owner1,Owner2,Owner3",
description: "Description.",
releaseNotes: "Release notes.",
summary: "Summary.",
language: "en-us",
projectUrl: "http://www.moxiecode.com/",
// icon: "content/logo-128x128.png",
// iconUrl: "http://www.moxiecode.com/icon.png",
license: "GPL-2.0-or-later",
licenseUrl: "https://licenses.nuget.org/GPL-2.0-or-later",
copyright: "Copyright",
requireLicenseAcceptance: true,
/*dependencies: [
{id: "dependency1"},
{id: "dependency2", version: "(1.0,)"},
{id: "dependency3", version: "1.0"},
{id: "dependency4", version: "(,1.0]"},
{id: "dependency5", version: "(,1.0)"},
{id: "dependency6", version: "[1.0]"},
{id: "dependency7", version: "(1.0,)"},
{id: "dependency8", version: "(1.0,2.0)"},
{id: "dependency9", version: "[1.0,2.0]"}
],*/
tags: "tag1 tag2 tag3",
excludes: ["test/**/*.nuspec"],
outputDir: "."
},
files: [
{src: "readme.md", dest: "/content/dir1/readme_now.md"},
{src: "lib", dest: "/content/dir2/test_lib"},
{src: "test", dest: "/content/dir2/test"}
]
}
},
clean: {
packages: [
"*.nupkg"
]
}
});
require('load-grunt-tasks')(grunt);
grunt.loadTasks('tasks');
grunt.registerTask('default', ['clean', 'nugetpack']);
};