Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use "npm init" for creating new dist ? #708

Open
andersevenrud opened this issue Jan 1, 2019 · 20 comments
Open

Use "npm init" for creating new dist ? #708

andersevenrud opened this issue Jan 1, 2019 · 20 comments
Assignees

Comments

@andersevenrud
Copy link
Member

Maybe use npm init OS.js to create a new distro instead of git ?!

https://docs.npmjs.com/cli/init

@andersevenrud andersevenrud self-assigned this Jan 1, 2019
@andersevenrud andersevenrud changed the title [v3] Use "npm init" for creating new dist ? Use "npm init" for creating new dist ? Feb 18, 2020
@17lwinn
Copy link

17lwinn commented Feb 21, 2020

What about a shell script the CLI runs that compiles into a distro?

@andersevenrud
Copy link
Member Author

Into what kind of a distro exactly ?

@17lwinn
Copy link

17lwinn commented Feb 21, 2020

NPM package, whole operating system, compressed folder etc

@andersevenrud
Copy link
Member Author

I'm not sure I fully understand what you mean there.

The way I read your comment it sounds like what this issue suggests, i.e. create a npm package for it (which is compressed on npmjs).

@17lwinn
Copy link

17lwinn commented Feb 21, 2020

I mean you could use shell scripts to bundle a package which is acceptable for npmjs

Like the shell script you made to compile the source in RX/UI3

@RossComputerGuy
Copy link

Shell scripts won't work on all systems, only Unix-like systems (macOS and Linux) and I think Anders wants this to work on Windows.

@17lwinn
Copy link

17lwinn commented Feb 21, 2020

I see your point but perhaps the script could be written in typescript?

@andersevenrud
Copy link
Member Author

Like the shell script you made to compile the source in RX/UI3

The scripts in that project was bespoke and would not really work on anything else that that specific platform.

I mean you could use shell scripts to bundle a package which is acceptable for npmjs

This is what npm run build does, which already works on all platforms.

@andersevenrud
Copy link
Member Author

Another thing I should mention is that the "OS.js distro" (this repo) is not really meant to be published to npm. However, this issue will publish a package that will be used as a template (and not with npm install).

@17lwinn
Copy link

17lwinn commented Feb 21, 2020

I now get your point, how about in the next update you release a utility that allows switching between templates?

@17lwinn
Copy link

17lwinn commented Feb 21, 2020

Like a switch OS look option? So it refers to the installation in a seperate folder?

@andersevenrud
Copy link
Member Author

So it refers to the installation in a seperate folder?

Doesn't this kinda defeat the purpose of switching if it lives in another folder ?

Or am I misunderstanding this ?

@17lwinn
Copy link

17lwinn commented Feb 21, 2020

I mean switching OS's like switching users.

Install somewhere else and configure OSJS to run or write to that folder

@17lwinn
Copy link

17lwinn commented Feb 21, 2020

Like a developer utility

@andersevenrud
Copy link
Member Author

Install somewhere else and configure OSJS to run or write to that folder

Sorry, but I don't understand what you mean by this.

@17lwinn
Copy link

17lwinn commented Feb 21, 2020

Think of it like a VFS, you configure OSJS to read and write to this one folder. My idea is to do the same but we link it as a template

@17lwinn
Copy link

17lwinn commented Feb 21, 2020

And the templates are stored in a folder

@andersevenrud
Copy link
Member Author

I see. That might be useful in some cases.

I actually do something like this on my workstation (because I have a ton of different installations). I have my src/client/index.js and src/server/index.js symlinked to the current distro I'm working with.

@17lwinn
Copy link

17lwinn commented Feb 21, 2020

Exactly! Good idea

@17lwinn
Copy link

17lwinn commented Feb 21, 2020

If you want a working OSJS example, theres one here on glitch.com-
https://pws-server.glitch.me/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants