Skip to content

Update versions #103

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

Merged
merged 5 commits into from
Dec 16, 2024
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:

- uses: erlef/setup-beam@v1
with:
otp-version: 24.3.3
elixir-version: 1.13.4
otp-version: 27.2
elixir-version: 1.17.3

- run: mix deps.get
- run: mix format --check-formatted
Expand Down
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
FROM hexpm/elixir:1.13.4-erlang-24.3.3-alpine-3.15.3 as build
ARG ELIXIR_VERSION=1.17.3
ARG ERLANG_VERSION=27.2
ARG ALPINE_VERSION=3.20.3

FROM hexpm/elixir:${ELIXIR_VERSION}-erlang-${ERLANG_VERSION}-alpine-${ALPINE_VERSION} AS build

# install build dependencies
RUN apk add --no-cache --update git build-base nodejs yarn
Expand Down Expand Up @@ -35,7 +39,7 @@ COPY rel rel
RUN mix do sentry.package_source_code, release

# prepare release image
FROM alpine:3.15.3 AS app
FROM alpine:${ALPINE_VERSION} AS app
RUN apk add --no-cache --update bash openssl git libstdc++

RUN mkdir /app
Expand Down
19 changes: 9 additions & 10 deletions assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@
"phoenix_live_view": "file:../deps/phoenix_live_view"
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"babel-loader": "^8.0.0",
"copy-webpack-plugin": "^4.5.0",
"css-loader": "^2.1.1",
"mini-css-extract-plugin": "^0.4.0",
"optimize-css-assets-webpack-plugin": "^4.0.0",
"uglifyjs-webpack-plugin": "^1.2.4",
"webpack": "4.4.0",
"webpack-cli": "^2.0.10"
"@babel/core": "^7.24.4",
"@babel/preset-env": "^7.24.4",
"babel-loader": "^9.1.3",
"copy-webpack-plugin": "^12.0.2",
"css-loader": "^7.1.1",
"css-minimizer-webpack-plugin": "^6.0.0",
"mini-css-extract-plugin": "^2.8.1",
"webpack-cli": "^5.1.4",
"webpack": "5.91.0"
}
}
21 changes: 10 additions & 11 deletions assets/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
const path = require('path');
const glob = require('glob');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
const TerserPlugin = require("terser-webpack-plugin");
const CopyWebpackPlugin = require('copy-webpack-plugin');

module.exports = (env, options) => ({
optimization: {
minimizer: [
new UglifyJsPlugin({ cache: true, parallel: true, sourceMap: false }),
new OptimizeCSSAssetsPlugin({})
new TerserPlugin(),
new CssMinimizerPlugin(),
]
},
entry: {
'./js/app.js': glob.sync('./vendor/**/*.js').concat(['./js/app.js'])
},
entry: [
'./js/app.js'
],
output: {
filename: 'app.js',
path: path.resolve(__dirname, '../priv/static/js')
filename: 'js/app.js',
path: path.resolve(__dirname, '../priv/static')
},
module: {
rules: [
Expand All @@ -36,6 +35,6 @@ module.exports = (env, options) => ({
},
plugins: [
new MiniCssExtractPlugin({ filename: '../css/app.css' }),
new CopyWebpackPlugin([{ from: 'static/', to: '../' }])
new CopyWebpackPlugin({ patterns: [{ from: 'static/', to: '.' }] }),
]
});
Loading