Permalink
Browse files

Fixes #17

  • Loading branch information...
1 parent 1aca454 commit 93f18d8df86bcf3a58302e2d392a07fbb0a4a9dc @r8k r8k committed Mar 1, 2013
Showing with 311 additions and 220 deletions.
  1. +55 −0 Gruntfile.js
  2. +11 −2 Makefile
  3. +191 −168 app.coffee
  4. +1 −0 app.js
  5. +46 −39 package.json
  6. +2 −0 public/dist/foreverui.min.css
  7. +3 −0 public/dist/foreverui.min.js
  8. +2 −11 views/index.ejs
View
@@ -0,0 +1,55 @@
+module.exports = function(grunt) {
+ grunt.initConfig({
+ pkg: grunt.file.readJSON('package.json'),
+ banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
+ '<%= grunt.template.today("yyyy-mm-dd") %>\n' +
+ '<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
+ '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
+ ' */\n',
+ clean: {
+ src: ['dist']
+ },
+ concat: {
+ options: {
+ banner: '<%= banner %>',
+ stripBanners: true
+ },
+ css: {
+ src: ['public/css/bootstrap.1.4.0.min.css',
+ 'public/css/style.css'],
+ dest: 'public/dist/foreverui.min.css'
+ },
+ js: {
+ src: ['public/appjs/Process.js',
+ 'public/appjs/ProcessList.js',
+ 'public/appjs/ProcessView.js',
+ 'public/appjs/AppView.js',
+ 'public/appjs/ModalView.js',
+ 'public/appjs/AddProcess.js'],
+ dest: 'public/dist/foreverui.min.js'
+ },
+ },
+ cssmin: {
+ css: {
+ src: 'public/dist/foreverui.min.css',
+ dest: 'public/dist/foreverui.min.css'
+ },
+ },
+ uglify: {
+ options: {
+ banner: '<%= banner %>'
+ },
+ dist: {
+ src: '<%= concat.js.dest %>',
+ dest: 'public/dist/foreverui.min.js'
+ },
+ }
+ });
+
+ grunt.loadNpmTasks('grunt-contrib-clean');
+ grunt.loadNpmTasks('grunt-contrib-concat');
+ grunt.loadNpmTasks('grunt-contrib-uglify');
+ grunt.loadNpmTasks('grunt-contrib-cssmin');
+
+ grunt.registerTask('default', ['clean', 'concat', 'uglify', 'cssmin']);
+};
View
@@ -8,9 +8,18 @@ update: ;@echo "Updating ${PROJECT}. Please hang on!!"; \
clean: ;
rm -rf node_modules
-test: ;@echo "${PROJECT} : Executing Functional Tests"; \
+build: ;@echo "Building ${PROJECT}. Please hang on!!"; \
+ grunt
+
+start: ;@echo "Building ${PROJECT}. Please hang on!!\n"; \
+ grunt; \
+ echo ""; \
+ echo "Deploying ${PROJECT}. Please hang on!!\n"; \
+ node app.js
+
+test: ;@echo "${PROJECT} : Executing Functional Tests\n"; \
./node_modules/.bin/mocha \
--reporter $(REPORTER) \
test/*.js
-.PHONY: update clean test
+.PHONY: update clean build start test
Oops, something went wrong.

0 comments on commit 93f18d8

Please sign in to comment.