Init
This commit is contained in:
21
js/file/nuget/Package.nuspec
Normal file
21
js/file/nuget/Package.nuspec
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0"?>
|
||||
<package >
|
||||
<metadata>
|
||||
<id>bootstrap-fileinput</id>
|
||||
<title>bootstrap-fileinput</title>
|
||||
<version>4.4.3</version>
|
||||
<authors>Kartik Visweswaran</authors>
|
||||
<owners>Kartik Visweswaran</owners>
|
||||
<licenseUrl>https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md</licenseUrl>
|
||||
<projectUrl>https://github.com/kartik-v/bootstrap-fileinput</projectUrl>
|
||||
<iconUrl>http://getbootstrap.com/favicon.ico</iconUrl>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<description>An enhanced HTML 5 file input for Bootstrap 3.x with file preview for various files, offers multiple selection, and more.</description>
|
||||
<releaseNotes>https://github.com/kartik-v/bootstrap-fileinput/blob/master/CHANGE.md</releaseNotes>
|
||||
<copyright>Copyright 2014 - 2017</copyright>
|
||||
<tags>bootstrap bootstrap-fileinput</tags>
|
||||
<dependencies>
|
||||
<dependency id="bootstrap" version="3.3.0" />
|
||||
</dependencies>
|
||||
</metadata>
|
||||
</package>
|
||||
35
js/file/nuget/build.bat
Normal file
35
js/file/nuget/build.bat
Normal file
@@ -0,0 +1,35 @@
|
||||
@echo off
|
||||
|
||||
NuGet Update -self
|
||||
REM remove package content folder
|
||||
rmdir /s /q content
|
||||
|
||||
REM create new package content folder
|
||||
mkdir content
|
||||
|
||||
REM create sub folder for js files
|
||||
mkdir content\Scripts
|
||||
|
||||
REM create sub folders for css and img files
|
||||
mkdir content\Content
|
||||
mkdir content\Content\bootstrap-fileinput
|
||||
|
||||
REM delete the previous package versions
|
||||
REM del bootstrap-fileinput.*
|
||||
|
||||
REM copy the content to the destination folders
|
||||
xcopy ..\js content\Scripts /D /E /C /R /I /K /Y
|
||||
xcopy ..\css content\Content\bootstrap-fileinput\css /D /E /C /R /I /K /Y
|
||||
xcopy ..\img content\Content\bootstrap-fileinput\img /D /E /C /R /I /K /Y
|
||||
xcopy ..\themes content\Content\bootstrap-fileinput\themes /D /E /C /R /I /K /Y
|
||||
xcopy ..\sass content\Content\bootstrap-fileinput\sass /D /E /C /R /I /K /Y
|
||||
|
||||
REM create a new package
|
||||
NuGet Pack Package.nuspec -Exclude NuGet.exe;build.bat
|
||||
|
||||
REM Upload the new package
|
||||
REM for %%f in (content\Content\bootstrap-fileinput.*) do (
|
||||
REM NuGet Push %%f
|
||||
REM rmdir /s /q content
|
||||
REM del %%f
|
||||
REM )
|
||||
Reference in New Issue
Block a user