-
Notifications
You must be signed in to change notification settings - Fork 461
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #387 from viralsolani/develop
Merge Develop branch..
- Loading branch information
Showing
31 changed files
with
2,423 additions
and
3,281 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
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
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
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,3 @@ | ||
{ | ||
"presets": [["@babel/preset-env"] ] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import samplemodule from './samplemodule/app.js'; | ||
|
||
window.samplemodule = samplemodule; |
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,9 @@ | ||
require('./build.css') | ||
class samplemodule | ||
{ | ||
constructor() | ||
{ | ||
console.log('es6 example'); | ||
} | ||
} | ||
export default samplemodule; |
Empty file.
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,65 @@ | ||
/* global __dirname, require, module*/ | ||
|
||
const webpack = require('webpack'); | ||
const ExtractTextPlugin = require("extract-text-webpack-plugin"); | ||
const path = require('path'); | ||
const env = require('yargs').argv.env; // use --env with webpack 2 | ||
|
||
let libraryName = 'ClientModules'; | ||
let outputFileName = 'client-modules'; | ||
let outputFile; | ||
|
||
let plugins = [ | ||
new ExtractTextPlugin({ filename: 'client-modules.min.css', disable: false, allChunks: false}) | ||
]; | ||
|
||
if (env === 'build') | ||
{ | ||
outputFile = outputFileName + '.min.js'; | ||
} | ||
else | ||
{ | ||
outputFile = outputFileName + '.js'; | ||
} | ||
|
||
const config = { | ||
entry : __dirname + '/src/index.js', | ||
devtool : 'source-map', | ||
output: { | ||
path : __dirname + '/build', | ||
filename : outputFile, | ||
library : libraryName, | ||
libraryTarget : 'umd', | ||
umdNamedDefine : true | ||
}, | ||
externals: { | ||
"jquery": "jQuery", | ||
"bootstrap": "bootstrap" | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test : /(\.jsx|\.js)$/, | ||
loader : 'babel-loader', | ||
exclude : /(node_modules|bower_components)/ | ||
}, | ||
{ | ||
test: /\.css$/, | ||
loader: "style-loader!css-loader", | ||
loader: ExtractTextPlugin.extract({ fallback: 'style-loader', use: 'css-loader' }) | ||
}, | ||
// { | ||
// test : /(\.jsx|\.js)$/, | ||
// loader : 'eslint-loader', | ||
// exclude : /node_modules/ | ||
// } | ||
] | ||
}, | ||
resolve: { | ||
modules: [path.resolve('./src'), '../node_modules'], | ||
extensions: ['.json', '.js', '.css'] | ||
}, | ||
plugins: plugins | ||
}; | ||
|
||
module.exports = config; |
Oops, something went wrong.