Skip to content

Commit c6f012c

Browse files
committed
redo dev mode
1 parent fe38eba commit c6f012c

File tree

12 files changed

+243
-352
lines changed

12 files changed

+243
-352
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ coverage
66
.cache
77
src/_lib
88
public
9+
._build

apprun-site-cli.js

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,12 @@ program
3636
.option('-w, --watch', 'watch the directory', false)
3737
.option('-o, --output [output]', 'output directory', 'public')
3838
.option('-p, --pages [pages]', 'pages directory', 'pages')
39-
.option('-i, --info', 'print option information', false)
4039
.option('--no-csr', 'no client side routing')
4140
.option('-r --render', 'pre-render pages', false)
4241
.action(async (source, options) => {
4342
({ source, options } = await init_options(source, options));
44-
options.info && console.log(options);
45-
build(options);
43+
options.dev = false;
44+
await build(options);
4645
});
4746

4847
program
@@ -51,28 +50,21 @@ program
5150
.option('-o, --output [output]', 'output directory', 'public')
5251
.option('--no-ssr', 'disable server side rendering')
5352
.option('--no-save', 'disable auto save of side rendered pages')
54-
.option('-i, --info', 'print option information', false)
5553
.action(async (source, options) => {
5654
({ source, options } = await init_options(source, options));
57-
options.info && console.log(options);
58-
// build(options);
5955
server(options);
6056
});
6157

6258
program
6359
.command('dev [source]')
6460
.description('launch development server, watch and live reload')
65-
.option('-c, --clean', 'clean the output directory', false)
6661
.option('-o, --output [output]', 'output directory', 'public')
6762
.option('-p, --pages [pages]', 'pages directory', 'pages')
68-
.option('--no-ssr', 'disable server side rendering')
69-
.option('--no-csr', 'no client side routing')
7063
.option('--no-watch', 'watch the directory')
7164
.option('--no-live_reload', 'enable live reload')
72-
.option('-i, --info', 'print option information', false)
65+
.option('--no-csr', 'no client side routing')
7366
.action(async (source, options) => {
7467
({ source, options } = await init_options(source, options));
75-
options.info && console.log(options);
7668
options.ssr = false;
7769
options.save = false;
7870
options.dev = true;

demo/tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** @type {import('tailwindcss').Config} */
22
export default {
33
content: [
4-
'public/**/*.{html,css}'
4+
'pages/**/*.{html,css,jsx,tsx}'
55
],
66
theme: {
77
extend: {},

0 commit comments

Comments
 (0)