upgraded tooling

This commit is contained in:
Gavin McDonald
2018-06-24 00:29:16 -04:00
parent 839971a8c0
commit 26c6813d95
4 changed files with 5147 additions and 13 deletions

3
.babelrc Normal file
View File

@@ -0,0 +1,3 @@
{
"presets": ["env"]
}

5111
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,17 +1,27 @@
{ {
"name": "tessellate", "name": "tessellate",
"version": "0.0.0", "version": "1.0.0",
"description": "", "description": "",
"main": "index.js", "main": "webpack.config.js",
"scripts": { "scripts": {
"build": "webpack --mode production",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"repository": {
"type": "git",
"url": "git+https://gitlab.com/mcdoh/tessellate.git"
},
"author": "", "author": "",
"license": "BSD-2-Clause", "license": "ISC",
"bugs": {
"url": "https://gitlab.com/mcdoh/tessellate/issues"
},
"homepage": "https://gitlab.com/mcdoh/tessellate#README",
"devDependencies": { "devDependencies": {
"webpack": "~1.12.13", "babel-core": "^6.26.3",
"babel-loader": "~6.2.2", "babel-loader": "^7.1.4",
"babel-core": "~6.5.2", "babel-preset-env": "^1.7.0",
"babel-preset-es2015": "~6.5.0" "webpack": "^4.12.0",
"webpack-cli": "^3.0.8"
} }
} }

View File

@@ -9,13 +9,23 @@ module.exports = {
}, },
devtool: 'inline-source-map', devtool: 'inline-source-map',
module: { module: {
loaders: [{ rules: [
{
test: path.join(__dirname, 'src'), test: path.join(__dirname, 'src'),
loader: 'babel-loader', use: {
query: { loader: 'babel-loader'
presets: ['es2015']
} }
}]
} }
]
}
// module: {
// loaders: [{
// test: path.join(__dirname, 'src'),
// loader: 'babel-loader',
// query: {
// presets: ['es2015']
// }
// }]
// }
}; };