Skip to content

Commit

Permalink
Merge branch 'release/2.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
toddmilliken committed Mar 4, 2019
2 parents 84a562a + 295c733 commit b9a4ca6
Show file tree
Hide file tree
Showing 22 changed files with 7,373 additions and 1,164 deletions.
6 changes: 6 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"presets": [
"@babel/preset-env",
"@wordpress/default"
]
}
78 changes: 39 additions & 39 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
---
exclude_paths:
- Gemfile
- Gemfile.lock
- node_modules/
- languages/
- js/vendor/
- vendor/
- ".sass-cache/"
- "hooks/post-merge"
- "js/script.js"
- "markdown.rb"
- "phpunit.xml"
- "phpunit.xml.dist"
- "**/*.min.css"
- "**/*.min.js"
- "**.css"
- "**.css.map"
- "**.gif"
- "**.jpg"
- "**.png"
- "**.svg"
- Gemfile
- Gemfile.lock
- node_modules/
- languages/
- js/vendor/
- vendor/
- ".sass-cache/"
- "hooks/post-merge"
- "js/script.js"
- "markdown.rb"
- "phpunit.xml"
- "phpunit.xml.dist"
- "**/*.min.css"
- "**/*.min.js"
- "**.css"
- "**.css.map"
- "**.gif"
- "**.jpg"
- "**.png"
- "**.svg"

prepare:
fetch:
- url: "https://raw.githubusercontent.com/bu-ist/coding-standards/master/code-climate-rule-sets/.scss-lint-r-2.x.yml"
path: ".scss-lint.yml"
- "https://raw.githubusercontent.com/bu-ist/coding-standards/master/code-climate-rule-sets/.eslintrc"
- "https://raw.githubusercontent.com/bu-ist/coding-standards/master/code-climate-rule-sets/.eslintignore"
- "https://raw.githubusercontent.com/bu-ist/coding-standards/master/code-climate-rule-sets/.mdlrc"
- "https://raw.githubusercontent.com/bu-ist/coding-standards/master/code-climate-rule-sets/markdown.rb"
- url: "https://raw.githubusercontent.com/bu-ist/coding-standards/master/code-climate-rule-sets/phpcs-themes.xml"
path: "phpcs.xml"
- url: "https://raw.githubusercontent.com/bu-ist/coding-standards/master/code-climate-rule-sets/.scss-lint-r-2.x.yml"
path: ".scss-lint.yml"
- "https://raw.githubusercontent.com/bu-ist/coding-standards/master/code-climate-rule-sets/.eslintrc"
- "https://raw.githubusercontent.com/bu-ist/coding-standards/master/code-climate-rule-sets/.eslintignore"
- "https://raw.githubusercontent.com/bu-ist/coding-standards/master/code-climate-rule-sets/.mdlrc"
- "https://raw.githubusercontent.com/bu-ist/coding-standards/master/code-climate-rule-sets/markdown.rb"
- url: "https://raw.githubusercontent.com/bu-ist/coding-standards/master/code-climate-rule-sets/phpcs-themes.xml"
path: "phpcs.xml"

engines:
csslint:
Expand All @@ -39,13 +39,13 @@ engines:
enabled: true
config:
languages:
- javascript
- php
- javascript
- php
exclude_paths:
- Gruntfile.js
eslint:
enabled: true
channel: eslint-3
enabled: false
channel: eslint-5
fixme:
enabled: true
markdownlint:
Expand All @@ -62,13 +62,13 @@ engines:
config:
file_extensions: php
rulesets: codesize,naming,unusedcode
scss-lint:
sass-lint:
enabled: true
ratings:
paths:
- "**.md"
- "**.inc"
- "**.js"
- "**.json"
- "**.php"
- "**.scss"
- "**.md"
- "**.inc"
- "**.js"
- "**.json"
- "**.php"
- "**.scss"
9 changes: 9 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jquery": true
},
"extends": ["plugin:@wordpress/eslint-plugin/recommended"]
}
43 changes: 43 additions & 0 deletions .sasslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"options": {
"merge-default-rules": false,
"formatter": "stylish",
"max-warnings": 50
},
"files": {
"include": "css-dev/**/*.s+(a|c)ss",
"ignore": [
"sass/vendor/**/*.*"
]
},
"rules": {
"extends-before-mixins": 2,
"extends-before-declarations": 2,
"placeholder-in-extend": 2,
"mixins-before-declarations": [
2,
{
"exclude": [
"breakpoint",
"mq"
]
}
],
"no-warn": 1,
"no-debug": 1,
"no-ids": 2,
"no-important": 2,
"hex-notation": [
2,
{
"style": "uppercase"
}
],
"indentation": [
2,
{
"size": "tab"
}
]
}
}
39 changes: 39 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,44 @@
# Changelog

## Unreleased

- Add autoprefixer support with grunt-postcss plugin.
- Add browserslist support in package.json for front-end tools like
autoprefixer.
- Add es6 functionality via a variety of npm packages and Gruntfile
modifications:
- `grunt-browserify`: A bundler that allows for easier dependency management
and gives the ability to use `require` for separating files into modules.
Polyfills the `require` function used in Node for the browser.
- `babelify`: Provides a transform for browserify so we can write es6 code.
This includes using modern `import` and `export` features rather than
having to use `require`. This package will transpile es6 code into es5
which browserify can bundle for the browser.
- `@babel/core`: Required babel library for `babelify` package.
- `@babel/preset-env`: The recommended "smart" preset for configuring babel
to take advantage of latest es6 features.
- `@wordpress/babel-preset-default`: Adds WordPress es6 configurations.
- `@wordpress/eslint-plugin`: Adds linting rules to adhere to WordPress
standards for the `eslint` package.
- `browserify-shim`: makes CommonJS incompatible files browserifyable (files
that don’t support `require` from the CommonJS module syntax). Also allows
us to determine what global variables we will use in our project that will
NOT be bundled, such as jQuery.
- `eslint` For code climate and text editors to lint and autofix their code.
- Updates `grunt-contrib-clean` to 2.0.0. Also adds a clean:js task to clear
contents of directories for new compiled files to reside in, so that old
irrelevant files don't stick around.
- Adds `grunt-sass-lint` for separate `grunt sasslint` task.
- Adds `browserslist` to package.json so front-end tooling packages like `babel`
and `autoprefixer` can share the same configurations
for browser support.
- Adds `.babelrc` configuration file for es6 configs.
- Adds `.eslintrc.json` configuration file for eslint configs.
- Adds `.sasslintrc` for grunt sasslint command and code climate.
- Pulls in Responsive Foundation as an es6 module.
- Updates codeclimate to use eslint-5 and sass-lint instead of scss-lint which
will eventually be deprecated or will not support latest sass features.

## 2.1.0

- Adds Foundation 3.1.0 support, which enables mega menu as
Expand Down
Loading

0 comments on commit b9a4ca6

Please sign in to comment.