Skip to content
This repository was archived by the owner on Feb 8, 2022. It is now read-only.

Commit

Permalink
Merge pull request #37 from trendyminds/2.6.0
Browse files Browse the repository at this point in the history
Upgrade to 2.6.0
  • Loading branch information
aaronbushnell authored Feb 24, 2017
2 parents 2ecb96b + 46300c7 commit 8d857dc
Show file tree
Hide file tree
Showing 40 changed files with 235 additions and 292 deletions.
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

40 changes: 0 additions & 40 deletions .eslintrc

This file was deleted.

100 changes: 0 additions & 100 deletions .stylelintrc

This file was deleted.

23 changes: 9 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ $ npm i normalize.css -S
```

```css
# Include it in the main stylesheet
/* Include it in the main stylesheet */
@import "normalize.css";
```

Expand Down Expand Up @@ -96,12 +96,12 @@ Accordions, tooltips, and similar modules are used infrequently. They might exis
/**
* Asynchronously load in infrequently used modules
*/
if (document.querySelectorAll('[data-tooltip]').length) {
System.import('./Tooltip').then(module => { new module.default() });
if (document.querySelectorAll('[data-tooltip]')) {
System.import('./Tooltip').then(module => new module.default());
};

if (document.querySelectorAll('[data-accordion]').length) {
System.import('./Accordion').then(module => { new module.default() });
if (document.querySelectorAll('[data-accordion]')) {
System.import('./Accordion').then(module => new module.default());
};
```

Expand All @@ -113,7 +113,7 @@ Say you decide to use React for the blog of a website. You can optimely load thi
**App.js:**
```js
// If a DOM element with a data-blog attribute exists, load the blog application
if (document.querySelectorAll('[data-blog]').length) {
if (document.querySelectorAll('[data-blog]')) {
System.import('./BlogApp');
};
```
Expand All @@ -137,8 +137,8 @@ import BlogPost from './BlogPost'
new BlogPagination();
new BlogPost();

if (document.querySelectorAll('[data-blog-tags]').length) {
System.import('./BlogTags').then(module => { new module.default() });
if (document.querySelectorAll('[data-blog-tags]')) {
System.import('./BlogTags').then(module => new module.default());
};
```

Expand All @@ -150,10 +150,5 @@ To add to the spritesheet do the following:
3. Use `@mixin icon--FILENAME` on a `::before` or `::after` pseudo selector
4. An SVG sprite will be created for you as well as the PNG fallback for browsers without SVG support.

### Customizr
A Modernizr task will scrub through your CSS and JS styles to determine what tests to bundle for you. This will greatly reduce the amount of JavaScript being used on this plugin.

Caveat: To prevent this task from running upon each save of your CSS and JS, any new Modernizr rules will only get picked up after you restart `npm run watch`.

### Linters
We use Stylelint and ESLint to ensure code is authored the same across all developers. These linters will warn you when using classes, imports, selectors, require, and more in an incorrect fashion.
We use [Stylelint](https://github.com/stylelint/stylelint) and [XO](https://github.com/sindresorhus/xo) to ensure code is authored the same across all developers. These linters will warn you when using classes, imports, selectors, require, and more in an incorrect fashion.
1 change: 0 additions & 1 deletion app/assets/_compiled/_chunk/0_2220a2dc48339df943e8.js

This file was deleted.

1 change: 1 addition & 0 deletions app/assets/_compiled/_chunk/0_c53837639004d05e8517.js

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

2 changes: 1 addition & 1 deletion app/assets/_compiled/app.js

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

3 changes: 0 additions & 3 deletions app/assets/_compiled/modernizr.js

This file was deleted.

Loading

0 comments on commit 8d857dc

Please sign in to comment.