diff --git a/.gitignore b/.gitignore index 626293f0..da365a16 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ scripts/execute_upload_federalist.sh test/federalist/*.txt test/*.st yarn.lock +yarn-error.log \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 063615f7..c1697aff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,6 +3,9 @@ name = "stork" version = "0.5.0" authors = ["James Little "] edition = "2018" +description = "Impossibly fast web search." +repository = "https://github.com/jameslittle230/stork" +license = "Apache-2.0" [lib] crate-type = ["cdylib", "rlib"] diff --git a/package.json b/package.json index a546b187..0d371465 100644 --- a/package.json +++ b/package.json @@ -22,12 +22,13 @@ "@open-wc/webpack-import-meta-loader": "^0.4.1", "@wasm-tool/wasm-pack-plugin": "^0.4.2", "clean-webpack-plugin": "^3.0.0", - "copy-webpack-plugin": "^5.0.3", "eslint": "^6.1.0", "eslint-config-airbnb-base": "^14.0.0", + "eslint-config-prettier": "^6.10.0", "eslint-loader": "^3.0.3", - "eslint-plugin-import": "^2.18.2", - "raw-loader": "^4.0.0", + "eslint-plugin-import": "^2.20.1", + "eslint-plugin-prettier": "^3.1.2", + "prettier": "^1.19.1", "webpack": "^4.41.4", "webpack-cli": "^3.3.10" }, diff --git a/webpack.config.js b/webpack.config.js index 78ed40af..dc6aa8ac 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,7 +1,4 @@ const path = require("path"); -const webpack = require("webpack"); -const CopyPlugin = require("copy-webpack-plugin"); -const WasmPackPlugin = require("@wasm-tool/wasm-pack-plugin"); const { CleanWebpackPlugin } = require("clean-webpack-plugin"); const dist = path.resolve(__dirname, "dist"); @@ -17,19 +14,7 @@ module.exports = { library: "stork", chunkFilename: "storkmodule-[id].js" }, - plugins: [ - new CleanWebpackPlugin() - // new CopyPlugin( - // [ - // path.resolve(__dirname, "static"), - // { - // from: path.resolve(__dirname, "pkg", "stork_bg.wasm"), - // to: "stork.wasm" - // } - // ], - // { copyUnmodified: true } - // ) - ], + plugins: [new CleanWebpackPlugin()], module: { rules: [ {