This repository has been archived by the owner on Nov 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
50 changed files
with
10,527 additions
and
173,933 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"presets": [ | ||
["es2015"] | ||
["env"] | ||
] | ||
} |
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,50 @@ | ||
'use strict'; | ||
|
||
const path = require('path'); | ||
const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); | ||
const packageBody = require('./../package.json'); | ||
const fs = require('fs'); | ||
const webpack = require('webpack'); | ||
|
||
let licenseBody = fs.readFileSync(path.resolve(__dirname, '../LICENSE'), 'utf8'); | ||
licenseBody += '\nVersion: ' + packageBody.version + ' (built at ' + new Date().toString() + ')'; | ||
|
||
module.exports.create = function create(hotType) { | ||
return { | ||
devtool: 'source-map', | ||
output: { | ||
path: path.resolve(__dirname, './../dist/' + hotType + '/'), | ||
filename: '[name].js', | ||
library: 'HotTable', | ||
libraryTarget: 'umd', | ||
libraryExport: 'default' | ||
}, | ||
module: { | ||
loaders: [ | ||
{ | ||
test: /(\.js)$/, | ||
exclude: /(node_modules|bower_components)/, | ||
loader: 'babel-loader', | ||
query: { | ||
presets: ['env'], | ||
} | ||
}, | ||
{ | ||
test: /(\.vue)$/, | ||
exclude: /(node_modules|bower_components)/, | ||
loader: 'vue-loader', | ||
query: { | ||
presets: ['vue-style-loader'], | ||
|
||
} | ||
} | ||
] | ||
}, | ||
plugins: [ | ||
new UglifyJsPlugin({ | ||
include: /\.min\.js$/ | ||
}), | ||
new webpack.BannerPlugin(licenseBody), | ||
], | ||
}; | ||
}; |
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,24 @@ | ||
'use strict'; | ||
|
||
const baseConfig = require('./base'); | ||
|
||
module.exports.create = function create(hotType) { | ||
const config = baseConfig.create(hotType); | ||
|
||
config.entry = { | ||
'vue-handsontable-ce': './src/common/HotTable.vue', | ||
'vue-handsontable-ce.min': './src/common/HotTable.vue', | ||
}; | ||
|
||
config.externals = { | ||
'hot-alias': { | ||
root: 'Handsontable', | ||
commonjs2: 'handsontable', | ||
commonjs: 'handsontable', | ||
amd: 'handsontable', | ||
umd: 'handsontable' | ||
} | ||
}; | ||
|
||
return [config]; | ||
}; |
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,24 @@ | ||
'use strict'; | ||
|
||
const baseConfig = require('./base'); | ||
|
||
module.exports.create = function create(hotType) { | ||
const config = baseConfig.create(hotType); | ||
|
||
config.entry = { | ||
'vue-handsontable-pro': './src/common/HotTable.vue', | ||
'vue-handsontable-pro.min': './src/common/HotTable.vue', | ||
}; | ||
|
||
config.externals = { | ||
'hot-alias': { | ||
root: 'Handsontable', | ||
commonjs2: 'handsontable-pro', | ||
commonjs: 'handsontable-pro', | ||
amd: 'handsontable-pro', | ||
umd: 'handsontable-pro' | ||
} | ||
}; | ||
|
||
return [config]; | ||
}; |
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,53 @@ | ||
'use strict'; | ||
|
||
const path = require('path'); | ||
|
||
module.exports.create = function create(hotType) { | ||
const getConfig = function() { | ||
return { | ||
devtool: 'source-map', | ||
output: { | ||
path: path.resolve(__dirname, './../test/dist/'), | ||
filename: '[name].js', | ||
}, | ||
module: { | ||
loaders: [ | ||
{ | ||
test: /(\.js)$/, | ||
exclude: /(node_modules|bower_components)/, | ||
loader: 'babel-loader', | ||
query: { | ||
presets: ['env'], | ||
} | ||
}, | ||
] | ||
}, | ||
externals: { | ||
'hot-alias': { | ||
root: 'Handsontable', | ||
commonjs2: 'handsontable', | ||
commonjs: 'handsontable', | ||
amd: 'handsontable', | ||
umd: 'handsontable' | ||
}, | ||
}, | ||
}; | ||
}; | ||
|
||
const configHelpers = getConfig(); | ||
configHelpers.entry = { | ||
'helpers': './src/common/helpers.js', | ||
}; | ||
configHelpers.output.library = 'Helpers'; | ||
configHelpers.output.libraryTarget = 'umd'; | ||
|
||
const configSettingsMapper = getConfig(); | ||
configSettingsMapper.entry = { | ||
'settingsMapper': './src/common/settingsMapper.js', | ||
}; | ||
configSettingsMapper.output.library = 'SettingsMapper'; | ||
configSettingsMapper.output.libraryTarget = 'umd'; | ||
configSettingsMapper.output.libraryExport = 'default'; | ||
|
||
return [configHelpers, configSettingsMapper]; | ||
}; |
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,5 +1,5 @@ | ||
.DS_Store | ||
.idea/ | ||
node_modules/ | ||
demo/node_modules/ | ||
test/dist/ | ||
npm-debug.log |
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 |
---|---|---|
|
@@ -4,6 +4,5 @@ | |
.idea | ||
|
||
node_modules/ | ||
demo/ | ||
docs/ | ||
test/dist/ | ||
|
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.
Oops, something went wrong.