diff --git a/.bowerrc b/.bowerrc new file mode 100644 index 00000000..cc489784 --- /dev/null +++ b/.bowerrc @@ -0,0 +1,3 @@ +{ + "directory": "assets/vendor" +} diff --git a/.gitignore b/.gitignore index 1559c63b..c83515ec 100644 --- a/.gitignore +++ b/.gitignore @@ -217,9 +217,3 @@ pip-log.txt node_modules/ assets/vendor/ -.bowerrc -.jshintrc -bower.json -gulpfile.js -manifest.json -package.json \ No newline at end of file diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 00000000..136eae53 --- /dev/null +++ b/.jshintrc @@ -0,0 +1,16 @@ +{ + "bitwise": true, + "browser": true, + "curly": true, + "eqeqeq": true, + "eqnull": true, + "esnext": true, + "immed": true, + "jquery": true, + "latedef": true, + "newcap": true, + "noarg": true, + "node": true, + "strict": false, + "trailing": true +} diff --git a/bower.json b/bower.json new file mode 100644 index 00000000..45e034c9 --- /dev/null +++ b/bower.json @@ -0,0 +1,30 @@ +{ + "name": "roots", + "version": "7.0.3", + "homepage": "http://roots.io", + "authors": [ + "Ben Word " + ], + "license": "MIT", + "private": true, + "ignore": [ + "**/.*", + "node_modules", + "assets" + ], + "dependencies": { +/* "modernizr": "2.8.2", + "jquery": "1.11.1", + "bootstrap": "3.3.1", + "respond": "1.4.2", + "fitvids": "~1.1.0", + "devbridge-autocomplete": "~1.2.16", + "raty": "~2.7.0", + "featherlight": "~1.0.4", + "sharrre": "~1.3.5", + "fullcalendar": "~2.3.0", + "jquery.countdown": "~2.0.4", + "mustache": "~2.1.3", + "formvalidation": "https://github.com/formvalidation/formvalidation.git"*/ + } +} diff --git a/gulpfile.js b/gulpfile.js new file mode 100644 index 00000000..1648afa6 --- /dev/null +++ b/gulpfile.js @@ -0,0 +1,43 @@ +/* + Ultimate Member dependencies +*/ + var gulp = require('gulp'); +var uglify = require('gulp-uglify'); +var concat = require('gulp-concat'); + +gulp.task('scripts', function() { + + // Concat and Minify + gulp.src([ + 'assets/js/um-select.js', + 'assets/js/um-modal.js', + 'assets/js/um-jquery-form.js', + 'assets/js/um-fileupload.js', + 'assets/js/pickadate/picker.js', + 'assets/js/pickadate/picker.date.js', + 'assets/js/pickadate/picker.time.js', + 'assets/js/pickadate/legacy.js', + 'assets/js/um-raty.js', + 'assets/js/um-scrollto.js', + 'assets/js/um-scrollbar.js', + 'assets/js/um-crop.js', + 'assets/js/um-tipsy.js', + 'assets/js/um-functions.js', + 'assets/js/um-responsive.js', + 'assets/js/um-conditional.js', + 'assets/js/um-scripts.js', + 'assets/js/um-members.js', + 'assets/js/um-profile.js', + 'assets/js/um-account.js' + ]) + .pipe(concat("um.min.js")) + .pipe(uglify()) + .pipe(gulp.dest("assets/js")); + + +}); + +// The default task (called when you run `gulp`) +gulp.task('default', function() { + gulp.start('scripts'); +}); \ No newline at end of file diff --git a/manifest.json b/manifest.json new file mode 100644 index 00000000..171bf2d2 --- /dev/null +++ b/manifest.json @@ -0,0 +1,19 @@ +{ + "dependencies": { + "scripts/app.js": { + "files": [ + "assets/**/*", + ], + "main": true + }, + "main.css": { + "files": [ + "styles/main.less" + ], + "main": true + }, + "modernizr.js": { + "bower": ["modernizr"] + } + } +} \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 00000000..eb279a8e --- /dev/null +++ b/package.json @@ -0,0 +1,40 @@ +{ + "name": "roots", + "version": "7.0.3", + "author": "Ben Word ", + "homepage": "http://roots.io", + "repository": { + "type": "git", + "url": "git://github.com/roots/roots.git" + }, + "bugs": { + "url": "https://github.com/roots/roots/issues" + }, + "licenses": [ + { + "type": "MIT", + "url": "http://opensource.org/licenses/MIT" + } + ], + "scripts": { + "postinstall": "node node_modules/bower/bin/bower install && grunt dev" + }, + "engines": { + "node": ">= 0.10.0" + }, + "devDependencies": { + "bower": ">=1.3.12", + "grunt": "~0.4.5", + "grunt-autoprefixer": "~1.0.1", + "grunt-contrib-concat": "~0.5.0", + "grunt-contrib-jshint": "~0.10.0", + "grunt-contrib-less": "~0.12.0", + "grunt-contrib-uglify": "~0.6.0", + "grunt-contrib-watch": "~0.6.1", + "grunt-modernizr": "~0.6.0", + "grunt-wp-assets": "~0.2.6", + "gulp-rename": "^1.2.2", + "load-grunt-tasks": "~1.0.0", + "time-grunt": "~1.0.0" + } +}