Skip to content

Commit

Permalink
Merge pull request #2 from azinasili/v1.1.0
Browse files Browse the repository at this point in the history
V1.1.0
  • Loading branch information
Azin Asili authored Apr 18, 2017
2 parents c678446 + 2b7e61e commit c55d2a0
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 23 deletions.
23 changes: 11 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
# Compiled source #
###################
# Compiled source
#================
*.com
*.class
*.dll
*.exe
*.o
*.so

# Compressed #
##############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
# Compressed
#===========
*.7z
*.dmg
*.gz
Expand All @@ -19,14 +17,14 @@
*.tar
*.zip

# Logs and databases #
######################
# Logs and databases
#===================
*.log
*.sql
*.sqlite

# OS generated files #
######################
# OS generated files
#===================

# Mac OS
.DS_Store
Expand All @@ -39,8 +37,9 @@
ehthumbs.db
Thumbs.db

# Project Specific #
####################
# Project Specific
#=================
bower_components
node_modules
npm-debug.log
dist
9 changes: 6 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Don't exclude transpiled files, they are used by npm
#=====================================================
# dist

# Exclude everything
####################
#===================
.github
.editorconfig
.babelrc
src
10 changes: 6 additions & 4 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "a11ytab",
"version": "1.0.0",
"version": "1.1.0",
"description": "A fully accessible and customizable tabs front-end component.",
"homepage": "https://github.com/azinasili/a11ytab",
"authors": "Azin Asili <azinasili@gmail.com>",
"authors": "Azin Asili <hello@azinasili.com>",
"license": "MIT",
"main": "a11ytab.js",
"main": "dist/a11ytab.js",
"keywords": [
"a11ytab",
"a11y",
Expand All @@ -20,6 +20,8 @@
"**/.*",
"node_modules",
"bower_components",
"bower.json"
"bower.json",
"package.json",
"src"
]
}
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "a11ytab",
"version": "1.0.0",
"version": "1.1.0",
"description": "A fully accessible and customizable tabs front-end component.",
"homepage": "https://github.com/azinasili/a11ytab",
"author": "Azin Asili <azinasili@gmail.com>",
"author": "Azin Asili <hello@azinasili.com>",
"license": "MIT",
"main": "a11ytab.js",
"main": "dist/a11ytab.js",
"keywords": [
"a11ytab",
"a11y",
Expand All @@ -22,5 +22,13 @@
},
"bugs": {
"url": "https://github.com/azinasili/a11ytab/issues"
},
"scripts": {
"build": "babel src --presets babel-preset-es2015 --out-dir dist",
"prepublish": "npm run build"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-preset-es2015": "^6.24.1"
}
}
13 changes: 12 additions & 1 deletion a11ytab.js → src/a11ytab.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function _findIndex(list) {
* @class A11yTab
* @param {HTMLElement} selector - Element to initialise A11yTab
* @param {Object} options - Options to customize A11yTab instance
* @return {Object} - Public init(), desyroy(), prev(), next(), and focus() methods
* @return {Object} - Public init(), destroy(), prev(), next(), and focus() methods
*/
function A11yTab(selector, options) {

Expand Down Expand Up @@ -424,4 +424,15 @@ function A11yTab(selector, options) {
/**
* Export A11yTab component.
*/
if (typeof define === 'function' && define.amd) {
define(function () { return A11yTab; });
} else if (typeof exports !== 'undefined') {
// Support Node.js specific `module.exports` (which can be a function)
if (typeof module !== 'undefined' && module.exports) {
exports = module.exports = A11yTab;
}
// But always support CommonJS module 1.1.1 spec (`exports` cannot be a function)
exports.A11yTab = A11yTab;
}

export default A11yTab;

0 comments on commit c55d2a0

Please sign in to comment.