forked from pixelunion/bc-tabs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously this module was designed as a jspm module for working with Bigcommerce themes. However, having it available as a generic npm module ensures that it's more flexible and reusable with future projects. Because jspm has been removed as a dependency, we need to ensure the build process bundles without requiring Systemjs. - Move some files around to keep project organized: source files "src" - Move all the demo files into one directory - Set up and install webpack with a configuration for building the module, as well as a configuration for running the demo locally - Update the dependencies/package/readme - Start a changelog so we have a record moving foward of changes applied to the module
- Loading branch information
Jem Bezooyen
committed
Aug 16, 2016
1 parent
93bac75
commit 1b86db2
Showing
16 changed files
with
137 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{ "presets": ["es2015"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"rules": { | ||
"indent": [2, 2, {"SwitchCase": 1}], | ||
"quotes": [2, "single", "avoid-escape"], | ||
"linebreak-style": [2, "unix"], | ||
"semi": [2, "always"], | ||
"comma-dangle": [2, "always-multiline"], | ||
"brace-style": [2, "1tbs", {"allowSingleLine": true}], | ||
"space-in-parens": [2, "never"], | ||
"space-infix-ops": [2, {"int32Hint": false}], | ||
"eol-last": 2, | ||
"linebreak-style": 2, | ||
"no-var": 2, | ||
"no-const-assign": 2, | ||
"prefer-const": 2, | ||
"comma-style": [2, "last"], | ||
"one-var": [2, "never"], | ||
"eqeqeq": [2, "smart"], | ||
"camelcase": [2, {"properties": "always"}], | ||
"no-this-before-super": 2, | ||
"prefer-arrow-callback": 2, | ||
"prefer-spread": 2, | ||
"prefer-template": 2, | ||
"constructor-super": 2, | ||
"object-shorthand": 2, | ||
"no-loop-func": 2, | ||
}, | ||
"env": { | ||
"es6": true, | ||
"browser": true, | ||
"jquery": true, | ||
"node": true | ||
}, | ||
"extends": "eslint:recommended", | ||
"ecmaFeatures": { | ||
"modules": true, | ||
"classes": true, | ||
"spread": true, | ||
"forOf": true, | ||
"blockBindings": true, | ||
"arrowFunctions": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
jspm_packages | ||
node_modules | ||
|
||
# Demo script is generated when run | ||
demo/script.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Change Log | ||
|
||
All notable changes to this project will be documented in this file. | ||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
|
||
##[ 0.5.0 ] - 2016-04-11 | ||
|
||
### Changed | ||
- Module now makes use of webpack for compilation and local development server | ||
- Moved some files around: packaged / minified module is available under `dist` | ||
while source code / unminified code is all under `src` | ||
- Converted the module to work now with npm instead of just jspm | ||
- Getting changes prepared for a potential 1.0 release that will work across | ||
different projects / platforms | ||
|
||
##[ 0.3.1 ] - 2016-04-08 | ||
|
||
- Original version of the module: works well with most of our first two or | ||
three rounds of Bigcommerce themes. Specifically required JSPM. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,30 @@ | ||
{ | ||
"name": "bc-tabs", | ||
"version": "0.3.1", | ||
"version": "0.4.0", | ||
"private": true, | ||
"description": "Bigcommerce Tabs UI Module", | ||
"description": "Pixel Unions Tabs UI Module", | ||
"main": "./dist/tabs.min.js", | ||
"devDependencies": { | ||
"finalhandler": "^0.3.3", | ||
"serve-static": "^1.8.1", | ||
"nodemon": "^1.3.7", | ||
"node-sass": "^3.1.2" | ||
"babel-core": "^6.7.6", | ||
"babel-loader": "^6.2.4", | ||
"babel-preset-es2015": "^6.6.0", | ||
"css-loader": "^0.23.1", | ||
"node-sass": "^3.4.2", | ||
"sass-loader": "^3.2.0", | ||
"style-loader": "^0.13.1", | ||
"webpack": "^1.12.15", | ||
"webpack-dev-server": "^1.14.1" | ||
}, | ||
"scripts": { | ||
"serve": "nodemon server.js", | ||
"build": "node ./build.js" | ||
"demo": "webpack-dev-server --content-base demo/ --hot" | ||
}, | ||
"license": "MIT", | ||
"jspm": { | ||
"main": "js/tabs", | ||
"directories": { | ||
"lib": "dist" | ||
}, | ||
"dependencies": { | ||
"jquery": "github:components/jquery@^2.1.4" | ||
}, | ||
"devDependencies": { | ||
"babel": "npm:[email protected]", | ||
"babel-runtime": "npm:[email protected]", | ||
"core-js": "npm:core-js@^0.8.4" | ||
} | ||
}, | ||
"dependencies": { | ||
"jquery": "^2.1.4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
module.exports = { | ||
context: __dirname + "/src", | ||
entry: "./demo", | ||
output: { | ||
path: __dirname + "/demo", | ||
filename: "script.js" | ||
}, | ||
externals: { | ||
}, | ||
module: { | ||
loaders: [ | ||
{ | ||
test: /\.js$/, | ||
exclude: /node_modules/, | ||
loader: "babel-loader" | ||
}, | ||
{ | ||
test: /\.scss$/, | ||
loaders: ["style", "css", "sass"] | ||
} | ||
] | ||
} | ||
}; |