Skip to content

Commit ee3b901

Browse files
author
Genki Katsutani
committed
Merge branch 'develop'
2 parents 64a053b + c2c2289 commit ee3b901

File tree

8 files changed

+1004
-911
lines changed

8 files changed

+1004
-911
lines changed

.gitignore

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ bower_components
55
.DS_Store
66
*.log
77
.parcel-cache
8-
dist/**/*.html
9-
dist/js
10-
dist/css
8+
public/**/*.html
9+
public/js
10+
public/css
1111
styleguide
1212
src/js/components

package-lock.json

+973-880
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+22-22
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
22
"name": "getup",
3-
"version": "9.0.3",
3+
"version": "10.0.0",
44
"description": "Frontend boilerplate",
55
"author": "nibushibu",
66
"scripts": {
77
"build": "cross-env NODE_ENV=production run-s html css-build js-build",
8-
"css-build": "postcss src/css/main.css --env production --config postcss.config.js --output dist/css/main.css --no-map",
9-
"css-develop": "postcss src/css/main.css --config postcss.config.js --output dist/css/main.css --map",
8+
"css-build": "postcss src/css/main.css --env production --config postcss.config.js --output public/css/main.css --no-map",
9+
"css-develop": "postcss src/css/main.css --config postcss.config.js --output public/css/main.css --map",
1010
"css": "npm run css-develop",
11-
"html-format": "prettier 'dist/**/*.html' --ignore-path --write",
11+
"html-format": "prettier 'public/**/*.html' --ignore-path --write",
1212
"html-from-riot": "node --loader @riotjs/register scripts/html.mjs",
1313
"html": "run-s html-from-riot html-format",
14-
"js-build": "esbuild src/js/main.js --bundle --minify --outfile=dist/js/main.js",
15-
"js": "esbuild src/js/main.js --bundle --sourcemap --outfile=dist/js/main.js",
16-
"preview": "npx http-server dist -o / -c-1",
14+
"js-build": "esbuild src/js/main.js --bundle --minify --outfile=public/js/main.js",
15+
"js": "esbuild src/js/main.js --bundle --sourcemap --outfile=public/js/main.js",
16+
"preview": "npx http-server public -o / -c-1 -d false --silent",
1717
"riot-single": "riot --output src/js/components --sourcemap file",
1818
"riot": "riot src/riot --output src/js/components --sourcemap file",
1919
"ready": "run-s html riot js css",
@@ -25,10 +25,10 @@
2525
"watch": "run-p watch:* preview"
2626
},
2727
"dependencies": {
28-
"@fontsource/noto-sans-jp": "^5.0.10",
29-
"animejs": "^3.2.1",
30-
"open-props": "^1.5.15",
31-
"riot": "^9.0.4"
28+
"@fontsource/noto-sans-jp": "^5.0.17",
29+
"animejs": "^3.2.2",
30+
"open-props": "^1.6.16",
31+
"riot": "^9.1.2"
3232
},
3333
"repository": {
3434
"type": "git",
@@ -44,24 +44,24 @@
4444
"@riotjs/register": "^9.0.0",
4545
"@riotjs/ssr": "^9.0.0",
4646
"cross-env": "^7.0.3",
47-
"esbuild": "^0.19.2",
48-
"eslint": "^8.48.0",
49-
"eslint-config-prettier": "^9.0.0",
50-
"glob": "^10.3.4",
51-
"markuplint": "^3.12.0",
47+
"esbuild": "^0.19.9",
48+
"eslint": "^8.55.0",
49+
"eslint-config-prettier": "^9.1.0",
50+
"glob": "^10.3.10",
51+
"markuplint": "^3.15.0",
5252
"mkdirp": "^3.0.1",
5353
"npm-run-all": "^4.1.5",
5454
"onchange": "^7.1.0",
55-
"postcss": "^8.4.29",
56-
"postcss-cli": "^10.1.0",
55+
"postcss": "^8.4.32",
56+
"postcss-cli": "^11.0.0",
5757
"postcss-csso": "^6.0.1",
58-
"postcss-custom-media": "^10.0.0",
58+
"postcss-custom-media": "^10.0.2",
5959
"postcss-flexbugs-fixes": "^5.0.2",
6060
"postcss-import": "^15.1.0",
6161
"postcss-media-minmax": "^5.0.0",
6262
"postcss-normalize-charset": "^6.0.0",
63-
"postcss-preset-env": "^9.1.3",
64-
"prettier": "^3.0.3",
65-
"prettier-plugin-css-order": "^2.0.0"
63+
"postcss-preset-env": "^9.3.0",
64+
"prettier": "^3.1.1",
65+
"prettier-plugin-css-order": "^2.0.1"
6666
}
6767
}

dist/.htaccess public/.htaccess

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ RewriteCond %{REQUEST_FILENAME} !-f
1313
# 転送ルール:任意のURLを転送から除外
1414
# RewriteCond %{REQUEST_URI} !(^/cockpit/)
1515

16-
# ルートディレクトリ(dist)のindex.htmlにリダイレクト
16+
# index.htmlにリダイレクト
1717
RewriteRule . /index.html [L]
1818
</IfModule>

scripts/html.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { mkdirp } from 'mkdirp'
55
import render from '@riotjs/ssr'
66

77
const srcDirPathFromProjectRoot = 'src/html/pages'
8-
const outputDir = 'dist'
8+
const outputDir = 'public'
99

1010
const files = await glob(`${srcDirPathFromProjectRoot}/**/*.riot`)
1111

src/css/objects.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
.o-fit > *:first-child {
1+
.o-trim > *:first-child {
22
margin-top: 0;
33
}
44

5-
.o-fit-all *:first-child {
5+
.o-trim-all *:first-child {
66
margin-top: 0;
77
}
88

src/html/components/html-base.riot

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<meta if="{ !props.meta }" each="{ meta in state.meta }" {...meta}>
99
<meta name="viewport" content="width=device-width,initial-scale=1">
1010
<link rel="stylesheet" href="{ this.props.toRoot }css/main.css">
11-
<script type="module" src="{ this.props.toRoot }js/main.js" defer></script>
11+
<script src="{ this.props.toRoot }js/main.js" defer></script>
1212
</head>
1313

1414
<body>

src/html/pages/index.riot

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<html>
2-
<template is="html-base" title="{ state.title }" meta="{ state.meta }">
2+
<template is="html-base" title="{ state.title }" meta="{ state.meta }" to-root="./">
33
<static-component></static-component>
44
<static-header></static-header>
55
<p>page content</p>

0 commit comments

Comments
 (0)