GithubHelp home page GithubHelp logo

hoshi's Introduction

hoshi

Simple translation management software (Work in progress)

  • Simple management approach inspired by database migration to fit many workflows
  • Create outputs for various platforms from a single definition.
  • Keep the core simple and create various support tools with scalable data specifications.
  • Provide an editor with a GUI aiming for ease of use even for non-engineers.

Application Components

CLI

File export workflow tool

Publish

$ hoshi publish --project . --outDir _published packageName

Editor

Localizations editor built with Electron

Development

Install

$ npm install

Development

$ npm run dev
$ npm run cli -- publish --project sample --outDir _published app

Build

# For windows
$ npm run build:win

# For macOS
$ npm run build:mac

# For Linux
$ npm run build:linux

hoshi's People

Contributors

iseebi avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

h1d3mun3

hoshi's Issues

mainブランチをチェックアウトした状態で READMEのコマンドを実行すると、 `ERR_UNKNOWN_FILE_EXTENSION` がでる

状況

プロジェクトの動作確認のため、下記を実行すると ERR_UNKNOWN_FILE_EXTENSION が出ます。

  1. mainブランチをチェックアウト。コミットハッシュは f3704a5
  2. npm、node、ts-nodeをインストール
  3. READMEに記載の npm run cli -- publish --project sample --outDir _published app を実行すると、 ERR_UNKNOWN_FILE_EXTENSION が出る

ログ

h1d3mun3@h1d3mun3s-Laptop hoshi % git status
On branch main
Your branch is up to date with 'origin/main'.

nothing to commit, working tree clean
h1d3mun3@h1d3mun3s-Laptop hoshi % node -v
v20.11.1
h1d3mun3@h1d3mun3s-Laptop hoshi % npm -v
10.2.4
h1d3mun3@h1d3mun3s-Laptop hoshi % ts-node -v
v10.9.2
h1d3mun3@h1d3mun3s-Laptop hoshi % npm run cli -- publish --project sample --outDir _published app

> [email protected] cli
> ts-node --project tsconfig.cli.json src/cli/src/index.ts publish --project sample --outDir _published app

TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /Users/h1d3mun3/GitHub/hoshi/src/cli/src/index.ts
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:160:9)
    at defaultGetFormat (node:internal/modules/esm/get_format:203:36)
    at defaultLoad (node:internal/modules/esm/load:143:22)
    at async nextLoad (node:internal/modules/esm/hooks:865:22)
    at async nextLoad (node:internal/modules/esm/hooks:865:22)
    at async Hooks.load (node:internal/modules/esm/hooks:448:20)
    at async MessagePort.handleMessage (node:internal/modules/esm/worker:196:18) {
  code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
h1d3mun3@h1d3mun3s-Laptop hoshi % 

esmをtrueにすると動くよ的な投稿もあるけど、tsconfig.cli.jsonを見るとtrueに設定されているようだし、なぜ動かないのかわからない...

"esm": true,

おそらく、npm or node-js or ts-nodeのバージョンによるものな気がしますが原因の切り分けができておりません。

[Editor] バージョン編集のリデザイン

現場で使用してきた印象では、そのバージョンで定義されている文言にフォーカスして編集できた方が作業がしやすく感じている。
編集可能な範囲を現在のバージョンだけにしたうえで、プレビューとして全定義を使用できるようにしたほうが良いと思われる。

エディタの実装難易度もその方が下がる。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.