diff --git a/.bowerrc b/.bowerrc
index d5ad908..de69020 100755
--- a/.bowerrc
+++ b/.bowerrc
@@ -1,3 +1,3 @@
{
- "directory": "lib/bower_components"
+ "directory": "docs/bower_components/"
}
diff --git a/Gruntfile.js b/Gruntfile.js
deleted file mode 100755
index becbf30..0000000
--- a/Gruntfile.js
+++ /dev/null
@@ -1,398 +0,0 @@
-// Generated on 2014-03-04 using generator-angular 0.7.1
-'use strict';
-
-// # Globbing
-// for performance reasons we're only matching one level down:
-// 'test/spec/{,*/}*.js'
-// use this if you want to recursively match all subfolders:
-// 'test/spec/**/*.js'
-
-module.exports = function (grunt) {
- // Load grunt tasks automatically
- require('load-grunt-tasks')(grunt);
-
- // Time how long tasks take. Can help when optimizing build times
- require('time-grunt')(grunt);
-
- // Define the configuration for all the tasks
- grunt.initConfig({
-
- // Project settings
- yeoman: {
- // configurable paths
- app: 'docs',
- dist: 'dist',
- lib: 'lib',
- ver: grunt.file.readJSON("bower.json").version
- },
-
- // Watches files for changes and runs tasks based on the changed files
- watch: {
- js: {
- files: ['<%= yeoman.app %>/scripts/{,*/}*.js', '<%= yeoman.lib %>/scripts/{,*/}*.js'],
- tasks: ['newer:jshint:all'],
- options: {
- livereload: '<%= connect.options.livereload %>'
- }
- },
- jsTest: {
- files: ['test/spec/{,*/}*.js'],
- tasks: ['newer:jshint:test', 'karma']
- },
- styles: {
- files: ['<%= yeoman.app %>/styles/{,*/}*.css'],
- tasks: ['newer:copy:styles', 'autoprefixer']
- },
- stylus: {
- files: ['<%= yeoman.app %>/styles/**/*.styl', '<%= yeoman.lib %>/**/*.styl'],
- tasks: ['stylus', 'autoprefixer']
- },
- gruntfile: {
- files: ['Gruntfile.js']
- },
- livereload: {
- options: {
- livereload: '<%= connect.options.livereload %>'
- },
- files: [
- '<%= yeoman.app %>/**/*.html',
- '.tmp/styles/{,*/}*.css',
- '<%= yeoman.app %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}'
- ]
- }
- },
-
- // The actual grunt server settings
- connect: {
- options: {
- port: 9002,
- // Change this to '0.0.0.0' to access the server from outside.
- hostname: '0.0.0.0',
- livereload: 35739,
- middleware: function(connect, options) {
- var middlewares = [];
- var directory = options.directory || options.base[options.base.length - 1];
- middlewares.push(function(req, res, next) {
- res.setHeader('Access-Control-Allow-Origin', '*');
- next();
- });
- middlewares.push(require('connect-modrewrite')(['!\\.html|\\.js|\\.svg|\\.css|\\.png|\\.eot|\\.ttf|\\.woff$ /index.html [L]']));
-
- if (!Array.isArray(options.base)) {
- options.base = [options.base];
- }
- options.base.forEach(function(base) {
- // Serve static files.
- middlewares.push(connect.static(base));
- });
- // Make directory browse-able.
- middlewares.push(connect.directory(directory));
- // Handle 404
- // middlewares.push(function(req, res) {
- // res.end(grunt.file.read(options.base[1] + '/index.html'));
- // });
- return middlewares;
- }
- },
- livereload: {
- options: {
- open: true,
- base: [
- '.tmp',
- '<%= yeoman.app %>',
- '<%= yeoman.lib %>'
- ]
- }
- },
- test: {
- options: {
- port: 9003,
- base: [
- '.tmp',
- 'test',
- '<%= yeoman.app %>',
- '<%= yeoman.lib %>'
- ]
- }
- },
- dist: {
- options: {
- base: '<%= yeoman.dist %>'
- }
- }
- },
-
- // Make sure code styles are up to par and there are no obvious mistakes
- jshint: {
- options: {
- laxcomma: true,
- jshintrc: '.jshintrc',
- reporter: require('jshint-stylish')
- },
- all: [
- 'Gruntfile.js',
- '<%= yeoman.app %>/scripts/{,*/}*.js',
- '<%= yeoman.lib %>/scripts/{,*/}*.js'
- ],
- test: {
- options: {
- jshintrc: 'test/.jshintrc'
- },
- src: ['test/spec/{,*/}*.js']
- }
- },
-
- // Empties folders to start fresh
- clean: {
- dist: {
- files: [{
- dot: true,
- src: [
- '.tmp',
- '<%= yeoman.dist %>/*',
- '!<%= yeoman.dist %>/.git*'
- ]
- }]
- },
- server: '.tmp'
- },
-
- // Add vendor prefixed styles
- autoprefixer: {
- options: {
- browsers: ['ie 8', 'ff 24', 'chrome 10', 'safari 3.1', 'opera 12', 'android 2.1', 'bb 7', 'ios 3.2']
- },
- dist: {
- files: [{
- expand: true,
- cwd: '.tmp/styles/',
- src: '{,*/}*.css',
- dest: '.tmp/styles/'
- }]
- }
- },
-
- // Automatically inject Bower components into the app
- wiredep: {
- app: {
- cwd: '<%= yeoman.app %>',
- src: '<%= yeoman.app %>/index.html',
- ignorePath: '<%= yeoman.app %>/',
- fileTypes: {
- html: {
- replace: {
- js: '',
- css: ''
- }
- }
- }
- },
- dist: {
- src: '<%= yeoman.app %>/index.html',
- ignorePath: '<%= yeoman.app %>/'
- }
- },
-
- // Renames files for browser caching purposes
- rev: {
- dist: {
- files: {
- src: [
- '<%= yeoman.dist %>/scripts/{,*/}*.js',
- '<%= yeoman.dist %>/styles/{,*/}*.css',
- '<%= yeoman.dist %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}',
- '<%= yeoman.dist %>/styles/fonts/*'
- ]
- }
- }
- },
-
- // Performs rewrites based on rev and the useminPrepare configuration
- usemin: {
- css: ['.tmp/styles/**/*.css'],
- options: {
- assetsDirs: ['<%= yeoman.dist %>']
- }
- },
-
- // The following *-min tasks produce minified files in the dist folder
- imagemin: {
- dist: {
- files: [{
- expand: true,
- cwd: '<%= yeoman.app %>/images',
- src: '{,*/}*.{png,jpg,jpeg,gif}',
- dest: '<%= yeoman.dist %>/images'
- }]
- }
- },
- svgmin: {
- dist: {
- files: [{
- expand: true,
- cwd: '<%= yeoman.app %>/images',
- src: '{,*/}*.svg',
- dest: '<%= yeoman.dist %>/images'
- }]
- }
- },
- htmlmin: {
- dist: {
- options: {
- collapseWhitespace: true,
- collapseBooleanAttributes: true,
- removeCommentsFromCDATA: true,
- removeOptionalTags: true
- },
- files: [{
- expand: true,
- cwd: '<%= yeoman.dist %>',
- src: ['*.html', 'views/{,*/}*.html'],
- dest: '<%= yeoman.dist %>'
- }]
- }
- },
-
- // Copies remaining files to places other tasks can use
- copy: {
- dist: {
- files: [{
- expand: true,
- dot: true,
- cwd: '<%= yeoman.lib %>',
- dest: '<%= yeoman.dist %>',
- src: [
- 'fonts/fondant.*'
- ]
- }]
- },
- styles: {
- expand: true,
- cwd: '<%= yeoman.app %>/styles',
- dest: '.tmp/styles/',
- src: '{,*/}*.css'
- },
- fonts: {
- expand: true,
- cwd: '<%= yeoman.lib %>/fonts',
- dest: '.tmp/fonts/',
- src: '*'
- }
- },
-
- // Run some tasks in parallel to speed up the build process
- concurrent: {
- server: [
- 'stylus',
- 'copy:styles',
- 'copy:fonts'
- ],
- test: [
- 'stylus',
- 'copy:styles'
- ],
- dist: [
- 'stylus',
- // 'copy:styles',
- 'imagemin',
- 'svgmin'
- ]
- },
-
- // By default, your `index.html`'s will take care of
- // minification. These next options are pre-configured if you do not wish
- // to use the Usemin blocks.
- cssmin: {
- dist: {
- options: {
- banner: '/*! fondant <%= yeoman.ver %> | MIT License | github.com/zedgu/fondant */'
- },
- files: {
- '<%= yeoman.dist %>/styles/fondant.css': [
- '.tmp/styles/fondant.css'
- ],
- '<%= yeoman.dist %>/styles/fondant-ie8.css': [
- '.tmp/styles/fondant-ie8.css'
- ]
- }
- }
- },
- uglify: {
- dist: {
- options: {
- banner: '/*! fondant <%= yeoman.ver %> | MIT License | github.com/zedgu/fondant */'
- },
- files: {
- '<%= yeoman.dist %>/scripts/fondant.js': [
- '<%= yeoman.lib %>/scripts/*.js'
- ]
- }
- }
- },
- // concat: {
- // dist: {}
- // },
-
- // Test settings
- karma: {
- unit: {
- configFile: 'karma.conf.js',
- singleRun: true
- }
- },
- stylus: {
- compile: {
- files: {
- '.tmp/styles/stylus.css': ['<%= yeoman.app %>/styles/index.styl'],
- '.tmp/styles/fondant.css': ['<%= yeoman.lib %>/styles/index.styl'],
- '.tmp/styles/fondant-ie8.css': ['<%= yeoman.lib %>/styles/ie8.styl']
- }
- }
- }
- });
-
-
- grunt.registerTask('serve', function (target) {
- if (target === 'dist') {
- return grunt.task.run(['build', 'connect:dist:keepalive']);
- }
-
- grunt.task.run([
- 'clean:server',
- 'wiredep:app',
- 'concurrent:server',
- 'autoprefixer',
- 'connect:livereload',
- 'watch'
- ]);
- });
-
- grunt.registerTask('server', function () {
- grunt.log.warn('The `server` task has been deprecated. Use `grunt serve` to start a server.');
- grunt.task.run(['serve']);
- });
-
- grunt.registerTask('test', [
- 'clean:server',
- 'concurrent:test',
- 'autoprefixer',
- 'connect:test',
- 'karma'
- ]);
-
- grunt.registerTask('build', [
- 'clean:dist',
- 'concurrent:dist',
- 'autoprefixer',
- 'copy:dist',
- 'cssmin',
- 'uglify',
- // 'rev',
- ]);
-
- grunt.registerTask('default', [
- 'newer:jshint',
- 'test',
- 'build'
- ]);
-};
diff --git a/bower.json b/bower.json
index 19faa38..99a0975 100755
--- a/bower.json
+++ b/bower.json
@@ -2,11 +2,21 @@
"name": "fondant",
"version": "0.0.10",
"dependencies": {
- "angular": "^1.2.18",
- "angular-file-upload": "^0.5.7",
+ "angular": "~1.2.18",
+ "angular-resource": "~1.2.18",
+ "angular-cookies": "~1.2.18",
+ "angular-sanitize": "~1.2.18",
+ "angular-route": "~1.2.18",
+ "angular-highlightjs": "~0.2.5",
+ "angular-scenario": "~1.2.18",
+ "angular-file-upload": "~0.5.7",
"normalize-css": "~3.0.1"
},
- "devDependencies": {},
+ "devDependencies": {
+ "angular-mocks": "~1.2.18",
+ "json3": "~3.2.6",
+ "es5-shim": "~2.1.0"
+ },
"homepage": "https://github.com/zedgu/fondant",
"authors": [
"zedgu "
@@ -33,13 +43,10 @@
],
"license": "MIT",
"ignore": [
- ".*",
"**/.*",
+ "node_modules",
"bower_components",
- "docs",
- "lib",
"test",
- "node_modules",
"Gruntfile.js",
"*.conf.js",
"package.json"
diff --git a/docs/.bowerrc b/docs/.bowerrc
deleted file mode 100755
index 44491d3..0000000
--- a/docs/.bowerrc
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "directory": "bower_components"
-}
diff --git a/docs/bower.json b/docs/bower.json
deleted file mode 100755
index 2ae32db..0000000
--- a/docs/bower.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "name": "fondant-docs",
- "version": "0.0.3",
- "dependencies": {
- "angular": "~1.2.18",
- "angular-resource": "~1.2.18",
- "angular-cookies": "~1.2.18",
- "angular-sanitize": "~1.2.18",
- "angular-route": "~1.2.18",
- "angular-highlightjs": "~0.2.5",
- "angular-scenario": "~1.2.18",
- "angular-file-upload": "~0.5.7",
- "normalize-css": "~3.0.1"
- },
- "devDependencies": {
- "angular-mocks": "~1.2.18",
- "json3": "~3.2.6",
- "es5-shim": "~2.1.0"
- },
- "homepage": "https://github.com/zedgu/fondant",
- "authors": [
- "zedgu "
- ],
- "description": "A CSS3 UI Framework",
- "main": [
- "dist/scripts/fondant.js",
- "dist/styles/fondant.css",
- "dist/fonts/fondant.svg",
- "dist/fonts/fondant.eot",
- "dist/fonts/fondant.ttf",
- "dist/fonts/fondant.woff"
- ],
- "moduleType": [
- "node"
- ],
- "keywords": [
- "html5",
- "css3",
- "ui",
- "framework",
- "js",
- "angular"
- ],
- "license": "MIT",
- "ignore": [
- "**/.*",
- "node_modules",
- "bower_components",
- "test",
- "Gruntfile.js",
- "*.conf.js",
- "package.json"
- ]
-}
diff --git a/docs/index.html b/docs/index.html
index e50233f..e861e1f 100755
--- a/docs/index.html
+++ b/docs/index.html
@@ -16,7 +16,7 @@
-
+
+