Skip to content
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.

Commit

Permalink
3.0 alpha checkin
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Maffett committed Sep 26, 2014
0 parents commit 81b32ba
Show file tree
Hide file tree
Showing 122 changed files with 29,875 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
@@ -0,0 +1,9 @@
*.bat
*.DS_Store
/dev
*.svn
/node_modules
/.idea
/3rdparty
/coverage
/src/css
180 changes: 180 additions & 0 deletions Gruntfile.js
@@ -0,0 +1,180 @@
var path = require("path");

module.exports = function (grunt) {
grunt.loadNpmTasks("grunt-contrib-clean");
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-contrib-cssmin");
grunt.loadNpmTasks("grunt-contrib-concat");
grunt.loadNpmTasks("grunt-mochaccino");
grunt.loadNpmTasks("grunt-closure-compiler");
grunt.loadNpmTasks("grunt-banner");
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-watch');


grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: [ "build/cov" ],

// see .jshintrc file for the options;
// options are explained at http://www.jshint.com/docs/config/
jshint: {
options: {
jshintrc: ".jshintrc"
},

core: [ "src/*.js" ],

},
karma: {
unit: {
configFile: 'karma.conf.js'
}
},
mochaccino: {
unit: [ "test/**/*.test.js" ],

// unit tests with coverage report in build/
cov: {
files: [
{ src: "test/**/*.test.js" }
],
reporter: "html-cov",
reportDir: "build/cov"
}
},

concat: {
afui:{
files: {
"build/appframework.ui.js": [
"src/af.shim.js",
"src/af.ui.js",
"src/af.actionsheet.js",
"src/af.grower.js",
"src/af.touchEvents.js",
"src/af.animateheader.js",
"src/af.popup.js",
"src/af.animation.js",
"src/af.splashscreen.js",
"src/af.drawer.js",
"src/af.swipereveal.js",
"src/af.desktopBrowsers.js",
"src/af.toast.js"
]
}
},
less: {
files: {
"build/af.ui.less":[
"src/less/main.less",
"src/less/anim2.less",
"src/less/animation.less",
"src/less/*.less"
]
}
},
lessBase: {
files: {
"./build/af.ui.base.less": [
"src/less/main.less",
"src/less/anim2.less",
"src/less/animation.less",
"src/less/appframework.less",
"src/less/af.actionsheet.less",
"src/less/af.popup.less",
"src/less/af.splashscreen.less",
"src/less/af.swipereveal.less",
"src/less/af.toast.less",
"src/less/badges.less",
"src/less/buttons.less",
"src/less/forms.less",
"src/less/grid.less",
"src/less/lists.less",
"src/less/splitview.less"
]
}
}
},
"closure-compiler": {
"appframework-ui": {
closurePath: "../closure/",
js: ["build/appframework.ui.js"],
jsOutputFile: "build/appframework.ui.min.js",
options: {
},
maxBuffer: 500,
noreport:true
},
},
usebanner: {
taskName: {
options: {
position: "top",
banner: "/*! <%= pkg.name %> - v<%= pkg.version %> - "+
"<%= grunt.template.today('yyyy-mm-dd') %> */\n",
linebreak: true
},
files: {
src: [ "build/*.js","build/*.js","build/css/*.css" ]
}
}
},
less: {
development: {
options: {
paths: ["./src/less"],
yuicompress: false
},
files: {
"./build/af.ui.css": "./src/less/*.less"
}
},
base: {
options: {
paths: ["./src/less"],
yuicompress: false
},
files: {
"./build/af.ui.base.css": [
"src/less/main.less",
"src/less/anim2.less",
"src/less/animation.less",
"src/less/appframework.less",
"src/less/af.actionsheet.less",
"src/less/af.popup.less",
"src/less/af.splashscreen.less",
"src/less/af.swipereveal.less",
"src/less/af.toast.less",
"src/less/badges.less",
"src/less/buttons.less",
"src/less/forms.less",
"src/less/grid.less",
"src/less/lists.less",
"src/less/splitview.less"
]
}
}
},
watch: {
files: "./src/less/*.less",
tasks: ["less"]
}
});


grunt.registerTask("default", [
"jshint",
"test",
"clean",
"closure-compiler",
"usebanner",
"watch"
]);

grunt.registerTask("rebuild" , ["concat","closure-compiler","usebanner"]);
grunt.registerTask("hint" , ["jshint"]);
grunt.registerTask("test" , ["karma"]);

};
2 changes: 2 additions & 0 deletions ajax.html
@@ -0,0 +1,2 @@
This is an ajax panel. It will be added to the view<br><br>
<a href="#main" class="button">Main</a>

0 comments on commit 81b32ba

Please sign in to comment.