Skip to content

Commit

Permalink
feat: bump actions versions (#8)
Browse files Browse the repository at this point in the history
* feat: bump actions versions

* fix: add missing license
  • Loading branch information
fouwels authored Dec 29, 2023
1 parent 0cd338b commit b62bb78
Show file tree
Hide file tree
Showing 9 changed files with 66 additions and 54 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:
runs-on: ubuntu-latest
name: Licensing (SPDX)
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v1
uses: fsfe/reuse-action@v2

release:
runs-on: ubuntu-latest
name: Release (Make)
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: release application
run: make release
2 changes: 1 addition & 1 deletion index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as ReactRouter from 'react-router-dom'
import { Main } from './lib/views/main'
import { RoutingError } from './lib/views/error'

function banner(): undefined {
function banner (): undefined {
console.log(
'** additional logs emitted at verbose/debug log levels **'
)
Expand Down
55 changes: 27 additions & 28 deletions lib/views/error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,32 @@ import * as Polaris from '@cloudscape-design/components'
import { Navigation } from '../components/navigation'

const breadcrumbs = [
{
text: "Main",
href: "#/main",
},
{
text: "Error",
href: "#/error",
},
];
{
text: 'Main',
href: '#/main'
},
{
text: 'Error',
href: '#/error'
}
]

export function RoutingError(): React.ReactElement {

const content = (
<Polaris.ContentLayout header={<Polaris.Header variant='h1'>Error</Polaris.Header>}>
<Polaris.Container>
<Polaris.TextContent>You have been routed to nowhere... :'(</Polaris.TextContent>
</Polaris.Container>
</Polaris.ContentLayout>
)
return (
<Polaris.AppLayout
breadcrumbs={
<Polaris.BreadcrumbGroup items={breadcrumbs} ariaLabel='Breadcrumbs' />
}
navigation={<Navigation />}
tools={<Polaris.HelpPanel />}
content={content}
/>
)
export function RoutingError (): React.ReactElement {
const content = (
<Polaris.ContentLayout header={<Polaris.Header variant='h1'>Error</Polaris.Header>}>
<Polaris.Container>
<Polaris.TextContent>You have been routed to nowhere... :'(</Polaris.TextContent>
</Polaris.Container>
</Polaris.ContentLayout>
)
return (
<Polaris.AppLayout
breadcrumbs={
<Polaris.BreadcrumbGroup items={breadcrumbs} ariaLabel='Breadcrumbs' />
}
navigation={<Navigation />}
tools={<Polaris.HelpPanel />}
content={content}
/>
)
}
7 changes: 4 additions & 3 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
#
# SPDX-License-Identifier: MIT

release: clean build test
npx webpack --mode="production"
ls -lah dist

build:
npm install
npx ts-standard --fix "lib/**/*.tsx" "index.tsx"
mkdir -p dist
cp -r ./static/** dist

release: clean build test
npx webpack --mode="production"

live: build
npx webpack serve --mode="development"

Expand Down
29 changes: 13 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"jest": {
"verbose": true,
"preset": "ts-jest",
"testEnvironment": "jsdom",
"transform": {
"^.+\\.ts?$": "ts-jest",
"^.+\\.tsx?$": "ts-jest"
Expand Down
9 changes: 9 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!---
SPDX-FileCopyrightText: 2023 Kaelan Thijs Fouwels <[email protected]>
SPDX-License-Identifier: MIT
--->

# WWW

See `makefile` for build targets
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"node_modules",
"dist",
"build",
"webpack.config.ts"
"webpack.config.js"
],
}
9 changes: 8 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@ var path = require('path');

const MiniCssExtractPlugin = require("mini-css-extract-plugin");

//const BundleAnalyzerPlugin = require('webpack-bundle-analyzer')

module.exports = {

plugins: [new MiniCssExtractPlugin({ filename: "webpack.css" })],
plugins: [
new MiniCssExtractPlugin({ filename: "webpack.css" }),
//new BundleAnalyzerPlugin.BundleAnalyzerPlugin()
],

entry: path.join(__dirname, "index.tsx"),
output: {
Expand All @@ -35,6 +40,8 @@ module.exports = {
]
},

stats: 'summary',

devtool: "eval-source-map",

devServer: {
Expand Down

0 comments on commit b62bb78

Please sign in to comment.