Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
abjerner committed May 30, 2017
0 parents commit d520643
Show file tree
Hide file tree
Showing 35 changed files with 1,805 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
src/packages/
src/Skybrud.VideoPicker/bin/
src/Skybrud.VideoPicker/obj/
116 changes: 116 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
module.exports = function (grunt) {

var path = require('path');

// Load the package JSON file
var pkg = grunt.file.readJSON('package.json');

// get the root path of the project
var projectRoot = 'src/' + pkg.name + '/';

// Load information about the assembly
var assembly = grunt.file.readJSON(projectRoot + 'Properties/AssemblyInfo.json');

// Get the version of the package
var version = assembly.informationalVersion ? assembly.informationalVersion : assembly.version;

var os = require("os");
var machineName = os.hostname();

console.log(pkg.name);

grunt.initConfig({
pkg: pkg,
clean: {
files: [
'releases/temp/'
]
},
copy: {
binary: {
files: [
{
expand: true,
cwd: projectRoot + 'bin/Release',
src: [
pkg.name + '.dll',
pkg.name + '.xml',
'Skybrud.Umbraco.GridData.dll',
'Skybrud.Umbraco.GridData.xml',
'Skybrud.Essentials.dll',
'Skybrud.Essentials.xml'
],
dest: 'releases/temp/bin/'
}
]
},
resources: {
files: [
{
expand: true,
cwd: projectRoot + 'App_Plugins/' + pkg.name + '/',
src: ['**/*.*'],
dest: 'releases/temp/App_Plugins/' + pkg.name + '/'
}
]
},
nuget: {
files: [
{
expand: true,
cwd: 'releases/nuget/',
src: [pkg.name + '.' + version + '.nupkg'],
dest: 'D:/NuGet/'
}
]
}
},
nugetpack: {
dist: {
src: 'src/' + pkg.name + '/' + pkg.name + '.csproj',
dest: 'releases/nuget/'
}
},
zip: {
release: {
router: function (filepath) {
var name = path.basename(filepath);
return name == 'LICENSE.html' ? name : filepath.replace('releases/temp/', '');
},
src: [
'releases/temp/**/*.*',
projectRoot + '/LICENSE.html'
],
dest: 'releases/github/' + pkg.name + '.v' + version + '.zip'
}
},
umbracoPackage: {
dist: {
src: 'releases/temp/',
dest: 'releases/umbraco',
options: {
name: pkg.name,
version: version,
url: pkg.url,
license: pkg.license.name,
licenseUrl: pkg.license.url,
author: pkg.author.name,
authorUrl: pkg.author.url,
readme: pkg.readme,
outputName: pkg.name + '.v' + version + '.zip'
}
}
}
});

grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-nuget');
grunt.loadNpmTasks('grunt-zip');
grunt.loadNpmTasks('grunt-umbraco-package');

grunt.registerTask('release', ['clean', 'copy:binary', 'copy:resources', 'nugetpack', 'zip'/*, 'umbracoPackage'*/, 'clean']);

grunt.registerTask('default', ['release']);

};
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2017 [Skybrud.dk](http://www.skybrud.dk/)

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
21 changes: 21 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "Skybrud.VideoPicker",
"url": "https://github.com/skybrud/Skybrud.VideoPicker",
"license": {
"name": "MIT",
"url": "https://github.com/skybrud/Skybrud.VideoPicker/blob/master/LICENSE.md"
},
"author": {
"name": "Skybrud.dk",
"url": "http://www.skybrud.dk/"
},
"readme": "Skybrud.VideoPicker is a package for Umbraco 7+ containing a property editor and a grid editor for inserting videos from YouTube or Vimeo.",
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-copy": "~0.4.1",
"grunt-nuget": "0.1.6",
"grunt-zip": "~0.17.0",
"grunt-umbraco-package": "1.0.0",
"grunt-contrib-clean": "^0.7.0"
}
}
27 changes: 27 additions & 0 deletions src/Skybrud.VideoPicker.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.40629.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Skybrud.VideoPicker", "Skybrud.VideoPicker\Skybrud.VideoPicker.csproj", "{D49F4F30-D59B-4E0E-AB2A-E4D22A8952FF}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8AD7F9BC-52EB-4ADD-929E-D00083E847A4}"
ProjectSection(SolutionItems) = preProject
WebEssentials-Settings.json = WebEssentials-Settings.json
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D49F4F30-D59B-4E0E-AB2A-E4D22A8952FF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D49F4F30-D59B-4E0E-AB2A-E4D22A8952FF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D49F4F30-D59B-4E0E-AB2A-E4D22A8952FF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D49F4F30-D59B-4E0E-AB2A-E4D22A8952FF}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
angular.module('umbraco').controller('SkybrudVideoPicker.VideosEditor.Controller', function ($scope) {

});
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
angular.module('umbraco').controller('SkybrudVideoPicker.VideosGridEditor.Controller', function ($scope) {

// Hack to prevent Umbraco from stripping the configuration during save (see http://issues.umbraco.org/issue/U4-8743)
$scope.config = $scope.control.editor.config;

});
Loading

0 comments on commit d520643

Please sign in to comment.