Skip to content

Commit

Permalink
Merge branch 'master' into 90-basic-webpack
Browse files Browse the repository at this point in the history
* master:
  Add linear gradient background mixin (#304)
  Tweaking modular-spacing mixin to be more user friendly (#309)
  120 Skiplinks (#303)
  72 main nav (#264)
  Update _input.scss (#301)
  Update README.md (#302)
  298-change "sticky-footer" mixin to target <footer> selector  (#299)
  Set base font size for each breakpoint (#295)
  doc: add period (#294)
  151 global footer tweaks (#293)
  Small bugfix for mobile. (#291)
  282: Fix modular-spacing mixins and variables (#290)

# Conflicts:
#	core/js/decanter.js - moved code into core/js/components/main-nav/main-nav.js
  • Loading branch information
JBCSU committed Mar 7, 2019
2 parents e0237a9 + 672dd9d commit 915c4b1
Show file tree
Hide file tree
Showing 98 changed files with 3,416 additions and 1,068 deletions.
6 changes: 4 additions & 2 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ engines:
# https://docs.codeclimate.com/docs/eslint
# ES Linting requires an .eslintrc file to tweak checks.
eslint:
enabled: false
enabled: true
markdownlint:
enabled: true
checks:
Expand Down Expand Up @@ -80,5 +80,7 @@ exclude_patterns:
- "node_modules"
- "styleguide"
- "kss/**/*"
- "core/js"
- "core/scss/core/_normalize.scss"
- "Gruntfile.js"
- "composer.json"
- "package.json"
28 changes: 25 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,36 @@
{
"extends": "eslint:recommended",
"env": {
"browser": true
"browser": true,
"es6": true
},
"globals": {
"domready": true
},
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParameters": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"regexUFlag": true,
"regexYFlag": true,
"restParams": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true,
"unicodeCodePointEscapes": true,
"globalReturn": true
},
"rules": {
// Errors.
"max-len": [2, 80, 2, {"ignoreUrls": true}],
"array-bracket-spacing": [2, "never"],
"block-scoped-var": 2,
"brace-style": [2, "stroustrup", {"allowSingleLine": true}],
Expand Down Expand Up @@ -73,7 +96,6 @@
"spaced-comment": [2, "always"],
"strict": [2, "function"],
"yoda": [2, "never"],
// Warnings.
"max-nested-callbacks": [1, 3],
"valid-jsdoc": [1, {
"prefer": {
Expand Down
15 changes: 3 additions & 12 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,6 @@ module.exports = function(grunt) {
},
target: ['core/scss/\*\*/\*.scss']
},
uglify: {
my_target: {
files: {
'core/js/decanter.min.js': 'core/js/decanter.js',
}
}
},
postcss: {
options: {
map: true, // inline sourcemaps
Expand All @@ -76,8 +69,7 @@ module.exports = function(grunt) {
}
},
jsmin: {
files: ['core/**/*.js'],
tasks: ['uglify']
files: ['core/**/*.js']
},
twig: {
files: ['**/*.twig', '**/*.json'],
Expand Down Expand Up @@ -143,7 +135,6 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-run');
grunt.loadNpmTasks('grunt-browser-sync');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-sass-lint');
grunt.loadNpmTasks('grunt-contrib-watch');
Expand All @@ -152,9 +143,9 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-copy');

grunt.registerTask('deploy', ['styleguide', 'deploy_site:styleguide', 'clean:postdeploy']);
grunt.registerTask('styleguide', ['compile', 'uglify', 'clean:styleguide', 'run:styleguide', 'copy:styleguide']);
grunt.registerTask('styleguide', ['compile', 'clean:styleguide', 'run:styleguide', 'copy:styleguide']);
grunt.registerTask('compile', ['sass:dist', 'postcss:dist']);
grunt.registerTask('dev', ['styleguide', 'browserSync', 'watch']);
grunt.registerTask('default', ['watch']);
grunt.registerTask('default', ['dev']);

}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

Changelog: [CHANGELOG.md](CHANGELOG.md)

[![Maintainability](https://api.codeclimate.com/v1/badges/5ad9555da4ffa2086204/maintainability)](https://codeclimate.com/github/SU-SWS/decanter/maintainability)

Demo
---

Expand Down
18 changes: 9 additions & 9 deletions core/css/decanter-grid.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 915c4b1

Please sign in to comment.