Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Spades To Work With Node v18, Webpack 5 #81

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions boilerplate/elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,26 @@
"elm-version": "0.19.1",
"dependencies": {
"direct": {
"Fresheyeball/elm-return": "7.0.0",
"elm/browser": "1.0.1",
"elm/core": "1.0.4",
"Fresheyeball/elm-return": "7.1.0",
"elm/browser": "1.0.2",
"elm/core": "1.0.5",
"elm/html": "1.0.0",
"elm/http": "2.0.0",
"elm/json": "1.1.3",
"elm/url": "1.0.0",
"krisajenkins/remotedata": "6.0.1",
"mdgriffith/elm-ui": "1.1.0"
"mdgriffith/elm-ui": "1.1.8"
},
"indirect": {
"elm/bytes": "1.0.8",
"elm/file": "1.0.5",
"elm/time": "1.0.0",
"elm/virtual-dom": "1.0.0"
"elm/virtual-dom": "1.0.3"
}
},
"test-dependencies": {
"direct": {
"elm-explorations/test": "1.1.0"
"elm-explorations/test": "2.1.1"
},
"indirect": {
"elm/random": "1.0.0"
Expand Down
8,571 changes: 2,875 additions & 5,696 deletions boilerplate/package-lock.json

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions boilerplate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
"author": "",
"license": "MIT",
"devDependencies": {
"elm-test": "^0.19.1",
"elm-webpack-loader": "^6.0.1",
"webpack": "^4.17.0",
"webpack-cli": "^3.1.0",
"webpack-dev-middleware": "^3.1.3"
"elm-test": "0.19.1-revision12",
"elm-webpack-loader": "^8.0.0",
"webpack": "^5.81.0",
"webpack-cli": "^5.0.2",
"webpack-dev-middleware": "^6.0.2"
},
"dependencies": {
"ejs": "^2.6.1",
"express": "^4.16.3",
"ejs": "^2.7.4",
"express": "^4.18.2",
"jsdom": "^11.12.0",
"yargs": "^12.0.1"
"yargs": "^12.0.5"
}
}
}
12 changes: 6 additions & 6 deletions boilerplate/package.static.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"author": "",
"license": "MIT",
"devDependencies": {
"elm-test": "^0.19.0-beta9",
"elm-webpack-loader": "^5.0.0",
"html-webpack-plugin": "^3.2.0",
"webpack": "^4.17.0",
"webpack-cli": "^3.1.0",
"webpack-dev-server": "^3.1.4"
"elm-test": "0.19.1-revision12",
"elm-webpack-loader": "^8.0.0",
"html-webpack-plugin": "^5.5.1",
"webpack": "^5.81.0",
"webpack-cli": "^5.0.2",
"webpack-dev-server": "^4.13.3"
}
}
7 changes: 4 additions & 3 deletions boilerplate/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ const getBundle = res => {
let bundlePath;
let file;
if (process.env.NODE_ENV === "production") {
bundlePath = require("./build/stats.json").assetsByChunkName.main;
bundlePath = require("./build/stats.json").assetsByChunkName.main[0];
file = fs.readFileSync(`./build/${bundlePath}`, "utf8");
} else {
bundlePath = res.locals.webpackStats.toJson().assetsByChunkName.main;
file = webpackMiddleware.fileSystem.readFileSync(
bundlePath = res.locals.webpack.devMiddleware.stats.toJson().assetsByChunkName.main[0];

file = res.locals.webpack.devMiddleware.outputFileSystem.readFileSync(
path.join(process.cwd(), "build", bundlePath),
"utf8"
);
Expand Down
3 changes: 1 addition & 2 deletions boilerplate/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const config = isDev => ({
entry: "./src/index.js",
output: {
path: `${__dirname}/build`,
filename: "[name].[hash].js"
filename: "[name].[fullhash].js"
},
module: {
rules: [
Expand All @@ -13,7 +13,6 @@ const config = isDev => ({
{
loader: "elm-webpack-loader",
options: {
forceWatch: isDev,
debug: isDev
}
}
Expand Down
2 changes: 1 addition & 1 deletion boilerplate/webpack.config.static.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const config = isDev => ({
entry: "./src/index.js",
output: {
path: `${__dirname}/build`,
filename: "[name].[hash].js"
filename: "[name].[fullhash].js"
},
module: {
rules: [
Expand Down
19 changes: 9 additions & 10 deletions elm.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,30 @@
{
"type": "application",
"source-directories": [
"src",
"tests/unit"
"src"
],
"elm-version": "0.19.1",
"dependencies": {
"direct": {
"elm/browser": "1.0.2",
"elm/core": "1.0.4",
"elm/core": "1.0.5",
"elm/html": "1.0.0",
"elm/parser": "1.1.0",
"elm/regex": "1.0.0",
"elm-explorations/test": "1.2.2",
"stil4m/elm-syntax": "7.1.1"
"elm-explorations/test": "2.1.1",
"stil4m/elm-syntax": "7.2.9"
},
"indirect": {
"elm/bytes": "1.0.8",
"elm/json": "1.1.3",
"elm/random": "1.0.0",
"elm/time": "1.0.0",
"elm/url": "1.0.0",
"elm/virtual-dom": "1.0.2",
"elm-community/json-extra": "4.2.0",
"elm-community/list-extra": "8.2.3",
"elm/virtual-dom": "1.0.3",
"elm-community/list-extra": "8.7.0",
"miniBill/elm-unicode": "1.0.3",
"rtfeldman/elm-hex": "1.0.0",
"rtfeldman/elm-iso8601-date-strings": "1.1.3",
"stil4m/structured-writer": "1.0.2"
"stil4m/structured-writer": "1.0.3"
}
},
"test-dependencies": {
Expand Down
Loading