@yodogawa404/create 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.js ADDED
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env node
2
+ import { existsSync } from 'node:fs';
3
+ import fs_extra from 'fs-extra';
4
+ const { copySync } = fs_extra;
5
+
6
+ const __dirname = import.meta.dirname;
7
+
8
+ if (existsSync('./project')) {
9
+ console.error(
10
+ 'エラー: 出力先ディレクトリが既に存在します\nディレクトリ名: project',
11
+ );
12
+ process.exit(1);
13
+ }
14
+
15
+ try {
16
+ copySync(`${__dirname}/template`, './project');
17
+ console.log('./project にプロジェクトを作成しました');
18
+ } catch (err) {
19
+ console.error('プロジェクトの作成に失敗しました:');
20
+ console.error(err);
21
+ }
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "type": "module",
3
+ "name": "@yodogawa404/create",
4
+ "version": "0.0.1",
5
+ "license": "WTFPL",
6
+ "bin": {
7
+ "yodogawa404_create-npm-project": "./main.js"
8
+ },
9
+ "repository": {
10
+ "url": "https://github.com/yodogawa404/npm-create"
11
+ },
12
+ "scripts": {
13
+ "format": "prettier --write ."
14
+ },
15
+ "devDependencies": {
16
+ "prettier": "^3.7.4"
17
+ },
18
+ "dependencies": {
19
+ "fs-extra": "^11.3.3"
20
+ },
21
+ "files": [
22
+ "template",
23
+ "main.js"
24
+ ]
25
+ }
@@ -0,0 +1,14 @@
1
+ <!doctype html>
2
+ <html lang="ja">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Document</title>
7
+ </head>
8
+ <body>
9
+ <div id="app">
10
+ <!-- -->
11
+ </div>
12
+ <script type="module" src="/src/entrypoint.js"></script>
13
+ </body>
14
+ </html>
@@ -0,0 +1,21 @@
1
+ {
2
+ "private": true,
3
+ "type": "module",
4
+ "scripts": {
5
+ "dev": "vite",
6
+ "build": "vite build",
7
+ "preview": "vite preview"
8
+ },
9
+ "devDependencies": {
10
+ "@tailwindcss/postcss": "^4.1.18",
11
+ "postcss": "^8.5.6",
12
+ "postcss-load-config": "^6.0.1",
13
+ "tailwindcss": "^4.1.18",
14
+ "vite": "^7.3.0"
15
+ },
16
+ "dependencies": {
17
+ "@yodogawa404/font-inter": "^0.0.2",
18
+ "@yodogawa404/line-seed-jp": "^0.0.4",
19
+ "@yodogawa404/noto-sans-jp": "^0.0.2"
20
+ }
21
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @type {import ('postcss-load-config').Config}
3
+ */
4
+
5
+ export default {
6
+ plugins: {
7
+ '@tailwindcss/postcss': {},
8
+ },
9
+ };
@@ -0,0 +1,6 @@
1
+ import '@yodogawa404/font-inter/index.css';
2
+ import '@yodogawa404/line-seed-jp/hiragana.css';
3
+ import '@yodogawa404/line-seed-jp/katakana.css';
4
+ import '@yodogawa404/noto-sans-jp/index.css';
5
+
6
+ import './main.css';
@@ -0,0 +1,9 @@
1
+ @import 'tailwindcss';
2
+
3
+ @layer base {
4
+ :root {
5
+ font-family: 'Inter', 'LINE Seed JP', 'Noto Sans JP', sans-serif;
6
+ font-feature-settings: 'palt';
7
+ font-kerning: normal;
8
+ }
9
+ }
@@ -0,0 +1,10 @@
1
+ import { defineConfig } from 'vite';
2
+
3
+ export default defineConfig({
4
+ server: {
5
+ hmr: {
6
+ host: 'localhost',
7
+ },
8
+ host: '0.0.0.0',
9
+ },
10
+ });