commit 86765b686f84d46b7f4d4abf26770b3393bd26fe Author: Mark Moser Date: Sun Feb 21 16:36:02 2016 -0600 init diff --git a/.csslintrc b/.csslintrc new file mode 100644 index 0000000..3ffbfef --- /dev/null +++ b/.csslintrc @@ -0,0 +1,37 @@ +{ + "important": false, + "adjoining-classes": false, + "known-properties": true, + "box-sizing": false, + "box-model": false, + "overqualified-elements": false, + "display-property-grouping": true, + "bulletproof-font-face": false, + "compatible-vendor-prefixes": false, + "regex-selectors": false, + "errors": false, + "duplicate-background-images": false, + "duplicate-properties": false, + "empty-rules": false, + "selector-max-approaching": false, + "gradients": false, + "fallback-colors": true, + "font-sizes": false, + "font-faces": false, + "floats": false, + "star-property-hack": false, + "outline-none": false, + "import": true, + "ids": true, + "underscore-property-hack": false, + "rules-count": false, + "qualified-headings": false, + "selector-max": false, + "shorthand": true, + "text-indent": false, + "unique-headings": false, + "universal-selector": false, + "unqualified-attributes": true, + "vendor-prefix": false, + "zero-units": true +} diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..2adf9cd --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +# 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 + +# Trailing whitespace is significant in markdown files. +[*.md] +trim_trailing_whitespace = false diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..b2359ba --- /dev/null +++ b/.gitattributes @@ -0,0 +1,39 @@ +#common settings that generally should always be used with your language specific settings + +# Auto detect text files and perform LF normalization +# http://git-scm.com/docs/gitattributes +* text=auto +# +# The above will handle all files NOT found below +# + +# Documents +*.doc diff=astextplain +*.DOC diff=astextplain +*.docx diff=astextplain +*.DOCX diff=astextplain +*.dot diff=astextplain +*.DOT diff=astextplain +*.pdf diff=astextplain +*.PDF diff=astextplain +*.rtf diff=astextplain +*.RTF diff=astextplain +*.md text +*.adoc text +*.textile text +*.mustache text +*.csv text +*.tab text +*.tsv text +*.sql text + +# Graphics +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.tif binary +*.tiff binary +*.ico binary +*.svg binary +*.eps binary diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1286a48 --- /dev/null +++ b/.gitignore @@ -0,0 +1,54 @@ +# Ignore hidden folders # +# This takes care of .tmp, .sass-cache, and many others # +.*/ + +# secrets files +.secrets +.ftppass + +# Ignore OS generated files # +.DS_Store* +ehthumbs.db +Icon? +Thumbs.db + +# Always-ignore files and folders # +*.csv +*.dat +*.diff +*.err +*.gz +*.log +*.orig +*.out +*.pid +*.rej +*.seed +*.sublime-* +*.swn +*.swo +*.swp +*.yo-rc.json +*~ +.jekyll-metadata +.tmp +lib-cov +logs +npm-debug.log +pids +results + +# Ignore packages # +*.7z +*.dmg +*.gz +*.iso +*.jar +*.rar +*.tar +*.zip + +# Ignore support folders +_bower_components +node_modules +dist diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000..6974d77 --- /dev/null +++ b/.jshintrc @@ -0,0 +1,22 @@ +{ + "camelcase": true, + "node": true, + "browser": true, + "esnext": true, + "bitwise": false, + "curly": false, + "eqeqeq": true, + "eqnull": true, + "immed": true, + "latedef": true, + "newcap": true, + "noarg": true, + "quotmark": "false", + "undef": true, + "strict": false, + "trailing": true, + "smarttabs": true, + "indent": 2, + "unused": true, + "jquery": true +} diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..48bc4e1 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,86 @@ +'use strict'; +module.exports = function(grunt) { + require('load-grunt-tasks')(grunt); + + grunt.initConfig({ + + jshint: { + options: { + jshintrc: '.jshintrc', + reporter: require('jshint-stylish') + }, + all: [ + '**/*.js', + '!bower_components/**/*.js', + '!node_modules/**/*.js' + ] + }, + + csslint: { + options: { csslintrc: '.csslintrc' }, + check: { + src: [ + '**/*.css', + '!bower_components/**/*.css', + '!node_modules/**/*.css' + ] + } + }, + + watch: { + options: { + interrupt: true, + livereload: true, + livereloadOnError: false + }, + js: { + files: [ + '**/*.js', + '!bower_components/**/*.js', + '!node_modules/**/*.js' + ], + tasks: ['jshint:all'] + }, + css: { + files: [ + '**/*.css', + '!bower_components/**/*.css', + '!node_modules/**/*.css' + ], + tasks: ['csslint:check'] + }, + html: { + files: [ + '**/*.html', + '!bower_components/**/*.html', + '!node_modules/**/*.html' + ], + }, + configFiles: { + files: [ 'Gruntfile.js' ], + options: { reload: true } + } + }, + + connect: { + server: { + options: { + port: 3000, + hostname: '*', + } + } + } + }); + + // Tasks + grunt.registerTask('serve', function () { + grunt.task.run([ + 'jshint:all', + 'csslint:check', + 'connect', + 'watch' + ]); + }); + + grunt.registerTask('default', ['serve']); +}; diff --git a/bower.json b/bower.json new file mode 100644 index 0000000..d93e13f --- /dev/null +++ b/bower.json @@ -0,0 +1,8 @@ +{ + "name": "simple-js-noodles", + "version": "0.0.0", + "dependencies": { + "normalize-css": "~3.0.3", + "jquery": "~2.1.4" + } +} diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..fce5183 Binary files /dev/null and b/favicon.ico differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..e0b2a83 --- /dev/null +++ b/index.html @@ -0,0 +1,17 @@ + + + + + JS Noodles + + + + + +

JS Noodles!

+ + + + + + diff --git a/main.js b/main.js new file mode 100644 index 0000000..e7dfbe3 --- /dev/null +++ b/main.js @@ -0,0 +1,10 @@ + + +$( document ).ready(function() { + + $('
', { + 'class': "jquery-note", + text: "...jQuery loaded..." + }).appendTo('body'); + +}); diff --git a/package.json b/package.json new file mode 100644 index 0000000..ddf46c2 --- /dev/null +++ b/package.json @@ -0,0 +1,18 @@ +{ + "name": "simple-js-noodles", + "private": true, + "version": "0.0.0", + "dependencies": {}, + "devDependencies": { + "grunt": "~0.4.5", + "grunt-contrib-connect": "^0.11.2", + "grunt-contrib-csslint": "~0.5.0", + "grunt-contrib-jshint": "~0.11.3", + "grunt-contrib-watch": "0.6.1", + "jshint-stylish": "~2.1.0", + "load-grunt-tasks": "~3.3.0" + }, + "engines": { + "node": ">=0.8.0" + } +} diff --git a/style.css b/style.css new file mode 100644 index 0000000..151f6cc --- /dev/null +++ b/style.css @@ -0,0 +1,10 @@ +body { + font-size: 16px; + margin: 50px auto; + width: 350px; +} + +.jquery-note { + color: #ccc; + font-size: 0.85em; +}