Create a proper directory structure.

This commit is contained in:
Bauke 2022-03-11 18:47:38 +01:00
parent 59a6f59542
commit 916c4c1305
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
9 changed files with 47 additions and 26 deletions

View File

@ -5,8 +5,8 @@ import {
SimplexNoise,
Softglow,
StereographicProjection,
} from './gegl/exports.js';
import Project from './project.js';
} from '../../gegl/exports.js';
import Project from '../../project.js';
const [width, height] = [1920, 1080];

View File

@ -7,8 +7,8 @@ import {
Plasma,
Waterpixels,
Waves,
} from './gegl/exports.js';
import Project from './project.js';
} from '../../gegl/exports.js';
import Project from '../../project.js';
const [width, height] = [1920, 1080];

View File

@ -5,8 +5,8 @@ import {
Newsprint,
StereographicProjection,
TileSeamless,
} from './gegl/exports.js';
import Project from './project.js';
} from '../../gegl/exports.js';
import Project from '../../project.js';
const [width, height] = [1920, 1080];

View File

@ -8,8 +8,8 @@ import {
TileSeamless,
Waterpixels,
Waves,
} from './gegl/exports.js';
import Project from './project.js';
} from '../../gegl/exports.js';
import Project from '../../project.js';
const [width, height] = [1920, 1080];

View File

@ -1,5 +1,11 @@
import {CellNoise, Crop, Generic, Newsprint, Waves} from './gegl/exports.js';
import Project from './project.js';
import {
CellNoise,
Crop,
Generic,
Newsprint,
Waves,
} from '../../gegl/exports.js';
import Project from '../../project.js';
const [width, height] = [3840, 2160];

View File

@ -5,8 +5,8 @@ import {
Newsprint,
Plasma,
Waterpixels,
} from './gegl/exports.js';
import Project from './project.js';
} from '../../gegl/exports.js';
import Project from '../../project.js';
const [width, height] = [3840, 2160];

View File

@ -0,0 +1,19 @@
import Project from '../../project.js';
import p2022_03_06 from './2022-03-06.js';
import p2022_03_07 from './2022-03-07.js';
import p2022_03_08 from './2022-03-08.js';
import p2022_03_09 from './2022-03-09.js';
import p2022_03_10 from './2022-03-10.js';
import p2022_03_11 from './2022-03-11.js';
const projects: Project[] = [
p2022_03_06,
p2022_03_07,
p2022_03_08,
p2022_03_09,
p2022_03_10,
p2022_03_11,
];
export default projects;

6
source/2022/projects.ts Normal file
View File

@ -0,0 +1,6 @@
import Project from '../project.js';
import p2022_03 from './03/projects.js';
const projects: Project[] = [...p2022_03];
export default projects;

View File

@ -8,12 +8,7 @@ import meow from 'meow';
import {Crop} from './gegl/exports.js';
import Project from './project.js';
import d2022_03_06 from './2022-03-06.js';
import d2022_03_07 from './2022-03-07.js';
import d2022_03_08 from './2022-03-08.js';
import d2022_03_09 from './2022-03-09.js';
import d2022_03_10 from './2022-03-10.js';
import d2022_03_11 from './2022-03-11.js';
import p2022 from './2022/projects.js';
async function main(): Promise<void> {
const cli = meow(
@ -45,14 +40,9 @@ async function main(): Promise<void> {
const includeDefaults = cli.flags.includeDefaults;
const noRender = !cli.flags.render;
const projects: Project[] = [
d2022_03_06,
d2022_03_07,
d2022_03_08,
d2022_03_09,
d2022_03_10,
d2022_03_11,
].filter((project) => project.name.startsWith(cli.flags.filter));
const projects: Project[] = [...p2022].filter((project) =>
project.name.startsWith(cli.flags.filter),
);
for (const {
createInputImage,