add nuget packages

This commit is contained in:
Eonasdan 2015-04-04 19:58:19 -04:00
parent 18ffcc695b
commit e3994ddeab
6 changed files with 131 additions and 1 deletions

View File

@ -4,7 +4,7 @@ module.exports = function(grunt) {
require("load-grunt-tasks")(grunt); require("load-grunt-tasks")(grunt);
grunt.initConfig({ grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// Compile less to .css // Compile less to .css
// Compile less to .min.css // Compile less to .min.css
@ -315,6 +315,50 @@ module.exports = function(grunt) {
]); ]);
}); });
grunt.registerTask("nuget", "Create a nuget package", function () {
var target = grunt.option("target") || "less", done = this.async();
if (target === "less") {
grunt.util.spawn({
cmd: "nuget/nuget.exe",
args: [
"pack",
"nuget/Bootstrap.Material.Design.nuspec",
"-OutputDirectory",
"dist/nuget",
"-Version",
grunt.config.get("pkg").version
]
}, function (error, result) {
if (error) {
grunt.log.error(error);
} else {
grunt.log.write(result);
}
done();
});
}
else { //--target=css
grunt.util.spawn({
cmd: "nuget/nuget.exe",
args: [
"pack",
"nuget/Bootstrap.Material.Design.CSS.nuspec",
"-OutputDirectory",
"dist/nuget",
"-Version",
grunt.config.get("pkg").version
]
}, function (error, result) {
if (error) {
grunt.log.error(error);
} else {
grunt.log.write(result);
}
done();
});
}
});
// Meteor tasks // Meteor tasks
grunt.registerTask("meteor-test", ["exec:meteor-init", "exec:meteor-test", "exec:meteor-cleanup"]); grunt.registerTask("meteor-test", ["exec:meteor-init", "exec:meteor-test", "exec:meteor-cleanup"]);
grunt.registerTask("meteor-publish", ["exec:meteor-init", "exec:meteor-publish", "exec:meteor-cleanup"]); grunt.registerTask("meteor-publish", ["exec:meteor-init", "exec:meteor-publish", "exec:meteor-cleanup"]);

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Bootstrap.Material.Design.CSS</id>
<version>1.0.0</version>
<title>Material Design for Bootstrap CSS</title>
<authors>fezvrasta</authors>
<owners>Eonasdan</owners>
<projectUrl>http://fezvrasta.github.io/bootstrap-material-design/</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Material Design for Bootstrap is a theme for Bootstrap 3 which lets you use the new Google Material Design in your favorite front-end framework.</description>
<releaseNotes>https://github.com/FezVrasta/bootstrap-material-design/blob/master/CHANGELOG.md</releaseNotes>
<tags>bootstrap material</tags>
<dependencies>
<dependency id="bootstrap" version="3.3" />
</dependencies>
</metadata>
<files>
<file src="..\dist\fonts\Material-Design-Icons.eot" target="content\fonts" />
<file src="..\dist\fonts\Material-Design-Icons.svg" target="content\fonts" />
<file src="..\dist\fonts\Material-Design-Icons.ttf" target="content\fonts" />
<file src="..\dist\fonts\Material-Design-Icons.woff" target="content\fonts" />
<file src="..\dist\js\material.js" target="content\Scripts" />
<file src="..\dist\js\ripples.js" target="content\Scripts" />
<file src="..\dist\css\material.css" target="content\Content\material" />
<file src="..\dist\css\ripples.css" target="content\Content\material" />
</files>
</package>

View File

@ -0,0 +1,58 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Bootstrap.Material.Design</id>
<version>1.0.0</version>
<title>Material Design for Bootstrap</title>
<authors>fezvrasta</authors>
<owners>Eonasdan</owners>
<projectUrl>http://fezvrasta.github.io/bootstrap-material-design/</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Material Design for Bootstrap is a theme for Bootstrap 3 which lets you use the new Google Material Design in your favorite front-end framework.</description>
<releaseNotes>https://github.com/FezVrasta/bootstrap-material-design/blob/master/CHANGELOG.md</releaseNotes>
<tags>bootstrap material</tags>
<dependencies>
<dependency id="Twitter.Bootstrap.Less" version="3.3" />
</dependencies>
</metadata>
<files>
<file src="..\dist\fonts\Material-Design-Icons.eot" target="content\Content\fonts" />
<file src="..\dist\fonts\Material-Design-Icons.svg" target="content\Content\fonts" />
<file src="..\dist\fonts\Material-Design-Icons.ttf" target="content\Content\fonts" />
<file src="..\dist\fonts\Material-Design-Icons.woff" target="content\Content\fonts" />
<file src="..\dist\js\material.js" target="content\Scripts" />
<file src="..\dist\js\ripples.js" target="content\Scripts" />
<file src="..\less\material-fullpalette.less" target="content\Content\material" />
<file src="..\less\material.less" target="content\Content\material" />
<file src="..\less\ripples.less" target="content\Content\material" />
<file src="..\less\roboto.less" target="content\Content\material" />
<file src="..\less\_alerts.less" target="content\Content\material" />
<file src="..\less\_buttons.less" target="content\Content\material" />
<file src="..\less\_cards.less" target="content\Content\material" />
<file src="..\less\_checkboxes.less" target="content\Content\material" />
<file src="..\less\_colors.less" target="content\Content\material" />
<file src="..\less\_dialogs.less" target="content\Content\material" />
<file src="..\less\_dividers.less" target="content\Content\material" />
<file src="..\less\_icons-material-design.less" target="content\Content\material" />
<file src="..\less\_icons.less" target="content\Content\material" />
<file src="..\less\_inputs.less" target="content\Content\material" />
<file src="..\less\_labels.less" target="content\Content\material" />
<file src="..\less\_lists.less" target="content\Content\material" />
<file src="..\less\_mixins-fullpalette.less" target="content\Content\material" />
<file src="..\less\_mixins.less" target="content\Content\material" />
<file src="..\less\_navbar.less" target="content\Content\material" />
<file src="..\less\_panels.less" target="content\Content\material" />
<file src="..\less\_plugin-dropdownjs.less" target="content\Content\material" />
<file src="..\less\_plugin-nouislider.less" target="content\Content\material" />
<file src="..\less\_plugin-selectize.less" target="content\Content\material" />
<file src="..\less\_plugin-snackbarjs.less" target="content\Content\material" />
<file src="..\less\_popups.less" target="content\Content\material" />
<file src="..\less\_progress.less" target="content\Content\material" />
<file src="..\less\_radios.less" target="content\Content\material" />
<file src="..\less\_shadows.less" target="content\Content\material" />
<file src="..\less\_tabs.less" target="content\Content\material" />
<file src="..\less\_togglebutton.less" target="content\Content\material" />
<file src="..\less\_variables.less" target="content\Content\material" />
<file src="..\less\_welljumbo.less" target="content\Content\material" />
</files>
</package>

BIN
nuget/NuGet.exe Normal file

Binary file not shown.