This repository has been archived by the owner on May 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Philipp Burgmer
committed
Jul 1, 2014
1 parent
e9ab18d
commit f546e48
Showing
7 changed files
with
290 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.idea | ||
*.iml | ||
|
||
dist | ||
node_modules | ||
|
||
.DS_Store | ||
.sass-cache | ||
bower_components |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
{ | ||
// Settings | ||
"passfail" : false, // Stop on first error. | ||
"maxerr" : 100, // Maximum errors before stopping. | ||
|
||
|
||
// Predefined globals whom JSHint will ignore. | ||
"browser" : false, // Standard browser globals e.g. `window`, `document`. | ||
"node" : false, | ||
"jquery" : true, | ||
|
||
"predef" : [ // Extra globals. | ||
// application code | ||
"angular", | ||
"_", | ||
"lodash", | ||
"swfobject", | ||
|
||
// test code | ||
"beforeEach", | ||
"afterEach", | ||
"module", | ||
"describe", | ||
"expect", | ||
"it", | ||
"inject", | ||
"jasmine", | ||
"spyOn", | ||
"browser", | ||
"element" | ||
], | ||
|
||
// Development. | ||
"debug" : false, // Allow debugger statements e.g. browser breakpoints. | ||
"devel" : false, // Allow development statements e.g. `console.log();`. | ||
|
||
|
||
// EcmaScript 5. | ||
"strict" : true, // Require `use strict` pragma in every file. | ||
"globalstrict" : true, // Allow global `use strict` syntax because build-system wraps all application code into a function | ||
|
||
|
||
// The Good Parts. | ||
"asi" : false, // Tolerate Automatic Semicolon Insertion (no semicolons). | ||
"laxbreak" : false, // Tolerate unsafe line breaks e.g. `return [\n] x` without semicolons. | ||
"laxcomma" : true, // Tolerate line breaking before ',' | ||
"bitwise" : true, // Prohibit bitwise operators (&, |, ^, etc.). | ||
"boss" : false, // Tolerate assignments inside if, for & while. Usually conditions & loops are for comparison, not assignments. | ||
"curly" : true, // Require {} for every new block or scope. | ||
"eqeqeq" : true, // Require triple equals i.e. `===`. | ||
"eqnull" : false, // Tolerate use of `== null`. | ||
"evil" : false, // Tolerate use of `eval`. | ||
"expr" : false, // Tolerate `ExpressionStatement` as Programs. | ||
"forin" : false, // Tolerate `for in` loops without `hasOwnPrototype`. | ||
"immed" : true, // Require immediate invocations to be wrapped in parents e.g. `( function(){}() );` | ||
"latedef" : true, // Prohibit variable use before definition. | ||
"loopfunc" : false, // Allow functions to be defined within loops. | ||
"noarg" : true, // Prohibit use of `arguments.caller` and `arguments.callee`. | ||
"regexp" : true, // Prohibit `.` and `[^...]` in regular expressions. | ||
"regexdash" : false, // Tolerate unescaped last dash i.e. `[-...]`. | ||
"scripturl" : true, // Tolerate script-targeted URLs. | ||
"shadow" : false, // Allows re-define variables later in code e.g. `var x=1; x=2;`. | ||
"supernew" : false, // Tolerate `new function () { ... };` and `new Object;`. | ||
"undef" : true, // Require all non-global variables be declared before they are used. | ||
|
||
|
||
// Personal styling preferences. | ||
"newcap" : true, // Require capitalization of all constructor functions e.g. `new F()`. | ||
"noempty" : true, // Prohibit use of empty blocks. | ||
"nonew" : true, // Prohibit use of constructors for side-effects. | ||
"nomen" : true, // Prohibit use of initial or trailing underbars in names. | ||
"onevar" : false, // Allow only one `var` statement per function. | ||
"plusplus" : false, // Prohibit use of `++` & `--`. | ||
"sub" : false, // Tolerate all forms of subscript notation besides dot notation e.g. `dict['key']` instead of `dict.key`. | ||
"trailing" : true, // Prohibit trailing whitespaces. | ||
"white" : true, // Check against strict whitespace and indentation rules. | ||
|
||
"indent": 2, | ||
"camelcase": true, | ||
"quotmark": "single", | ||
"unused": true, | ||
"smarttabs": false | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# w11k-flash Changelog | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
'use strict'; | ||
|
||
module.exports = function (grunt) { | ||
|
||
var pkg = require('./package.json'); | ||
|
||
grunt.loadNpmTasks('grunt-contrib-clean'); | ||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
grunt.loadNpmTasks('grunt-contrib-copy'); | ||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.loadNpmTasks('grunt-html2js'); | ||
grunt.loadNpmTasks('grunt-contrib-connect'); | ||
grunt.loadNpmTasks('grunt-bump'); | ||
grunt.loadNpmTasks('grunt-conventional-changelog'); | ||
|
||
var bowerrc = grunt.file.exists('./.bowerrc') ? grunt.file.readJSON('./.bowerrc') : { 'json': 'bower.json' }; | ||
|
||
var bumpFiles = [ 'package.json', '../w11k-slides-bower/package.json' ]; | ||
if (grunt.file.exists(bowerrc.json)) { | ||
bumpFiles.push(bowerrc.json); | ||
} | ||
|
||
grunt.initConfig({ | ||
pkg: pkg, | ||
meta: { | ||
banner: | ||
'/**\n' + | ||
' * <%= pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %>\n' + | ||
' * <%= pkg.homepage %>\n' + | ||
' *\n' + | ||
' * Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>\n' + | ||
' */\n' | ||
}, | ||
|
||
clean: { | ||
dist: 'dist/*' | ||
}, | ||
jshint: { | ||
src: { | ||
options: { | ||
jshintrc: '.jshintrc' | ||
}, | ||
files: [{ | ||
expand: true, | ||
cwd: 'src/js', | ||
src: '**.js' | ||
}] | ||
} | ||
}, | ||
copy: { | ||
template: { | ||
src: 'src/js/w11k-flash.tpl.html', | ||
dest: 'dist/js/w11k-flash.tpl.html' | ||
}, | ||
flash: { | ||
expand: true, | ||
cwd: 'src/flash', | ||
src: '**/*', | ||
dest: 'dist/flash' | ||
} | ||
}, | ||
html2js: { | ||
template: { | ||
options: { | ||
base: 'src', | ||
module: 'w11k.flash.template', | ||
quoteChar: '\'', | ||
htmlmin: { | ||
collapseWhitespace: true | ||
} | ||
}, | ||
files: { | ||
'dist/js/w11k-flash.tpl.js': 'src/js/w11k-flash.tpl.html' | ||
} | ||
} | ||
}, | ||
uglify: { | ||
options: { | ||
banner: '<%= meta.banner %>' | ||
}, | ||
code: { | ||
options: { | ||
mangle: false, | ||
compress: false, | ||
beautify: true | ||
}, | ||
files: [{ | ||
expande: true, | ||
nosort: true, | ||
src: 'src/js/**/*.js', | ||
dest: 'dist/js/w11k-flash.js' | ||
}] | ||
}, | ||
codeMinified: { | ||
files: [{ | ||
expande: true, | ||
nosort: true, | ||
src: 'src/js/**/*.js', | ||
dest: 'dist/js/w11k-flash.min.js' | ||
}] | ||
} | ||
}, | ||
bump: { | ||
options: { | ||
files: bumpFiles, | ||
commit: true, | ||
commitMessage: 'chore(project): bump version to %VERSION%', | ||
commitFiles: ['-a'], | ||
createTag: false, | ||
push: false | ||
} | ||
} | ||
}); | ||
|
||
grunt.registerTask('default', ['build']); | ||
grunt.registerTask('build', ['clean', 'jshint:src', 'copy', 'html2js', 'uglify']); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "w11k-flash", | ||
"description": "AngularJS module to include flash movies or flex applications", | ||
"keywords": [ "angular", "angularjs", "flash", "flex", "migration" ], | ||
"homepage": "https://github.com/w11k/w11k-flash", | ||
|
||
"authors": [ | ||
{ "name": "WeigleWilczek GmbH", "url": "http://www.w11k.com" }, | ||
{ "name": "Philipp Burgmer" } | ||
], | ||
|
||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/w11k/w11k-flash.git" | ||
}, | ||
|
||
"licenses": { | ||
"type": "MIT" | ||
}, | ||
|
||
"dependencies": { | ||
"angular": "1.2.x", | ||
"swfobject": "https://github.com/swfobject/swfobject/archive/2.2.zip" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"name": "w11k-flash", | ||
"version": "0.1.0", | ||
|
||
"description": "AngularJS module to include flash movies or flex applications", | ||
"keywords": [ "angular", "angularjs", "flash", "flex", "migration" ], | ||
"homepage": "https://github.com/w11k/w11k-flash", | ||
"bugs": "https://github.com/w11k/w11k-flash/issues", | ||
|
||
"author": { | ||
"name": "WeigleWilczek GmbH", | ||
"url": "http://www.w11k.com" | ||
}, | ||
"contributors": [ | ||
"Philipp Burgmer" | ||
], | ||
|
||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/w11k/w11k-flash.git" | ||
}, | ||
|
||
"licenses": [{ | ||
"type": "MIT" | ||
}], | ||
|
||
"devDependencies": { | ||
"grunt": "0.4.4", | ||
"grunt-contrib-clean": "0.5.0", | ||
"grunt-contrib-jshint": "0.8.0", | ||
"grunt-contrib-copy": "0.5.0", | ||
"grunt-contrib-uglify": "0.4.0", | ||
"grunt-html2js": "0.2.4", | ||
|
||
"grunt-bump": "0.0.13", | ||
"grunt-conventional-changelog": "1.1.0" | ||
} | ||
} |