Git Product home page Git Product logo

ult's People

Contributors

cavitt avatar theultdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ult's Issues

Any MacOS examples available?

Trying to look into how to get started with this. Any examples available for MacOS? Really appreciate your effort.

npm run web returns err

EDIT: I didn't run npm install in the terminal. all good

I cd into the project and run 'npm run web' in the terminal to receive failure error. I am also building my project using Code-server on a digital ocean droplet using an ipad pro. not sure if relevant.

error log is as follows

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'web' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'preweb', 'web', 'postweb' ]
5 info lifecycle [email protected]~preweb: [email protected]
6 info lifecycle [email protected]~web: [email protected]
7 verbose lifecycle [email protected]~web: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~web: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/root/fltngmmth01/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
9 verbose lifecycle [email protected]~web: CWD: /root/fltngmmth01
10 silly lifecycle [email protected]~web: Args: [ '-c', 'ult-scripts start' ]
11 info lifecycle [email protected]~web: Failed to exec web script
12 verbose stack Error: [email protected] web: `ult-scripts start`
12 verbose stack spawn ENOENT
12 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)
12 verbose stack     at ChildProcess.emit (events.js:314:20)
12 verbose stack     at maybeClose (internal/child_process.js:1047:16)
12 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
13 verbose pkgid [email protected]
14 verbose cwd /root/fltngmmth01
15 verbose Linux 4.15.0-122-generic
16 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "web"
17 verbose node v14.13.1
18 verbose npm  v6.14.8
19 error code ELIFECYCLE
20 error syscall spawn
21 error file sh
22 error errno ENOENT
23 error [email protected] web: `ult-scripts start`
23 error spawn ENOENT
24 error Failed at the [email protected] web script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 1, true ]

image

Npm run <anything> = Error

npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /root/fltngmmth02/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/root/fltngmmth02/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-10-15T17_04_02_094Z-debug.log

......

Log says package.JSON can't be found

I'm running on a Linux 18 Virtual Machine ... Node 12.19

Any Video?

Hi, is there any video explaining this project? It is difficult to know what does it actually do?

CocoaPod prompt cannot receive input [react-native init]

When you create an ULT project on MacOS without CocoaPods installed, the react-native init command will prompt you to choose how to install it.

Unfortunately the output from react-native init is being piped and the user cannot choose.
Investigate what all it prompts you for, if it's just pods, then ignore and automate elsewhere.
If there are multiple prompts, send input from CLI to react-native init spawned process.

Severity of this is low, but it's really annoying, especially for new users.

https://github.com/react-native-community/cli/blob/master/packages/cli/src/tools/installPods.ts

Unknown script "start".

I feel like a total idiot for having to ask this but I did these exact steps (as documented):

npx ult UltTest
(squeezed a cd UltTest in between here)
npm run web

Result: Unknown script "start". Perhaps you need to update ULT?

Tried again after an npm i in the UltTest dir, but with no succes. What on earth am I doing wrong, here?

CRA 4.0.0

ULT has it's own webpack config/tools similar to CRA. In fact it's a forked CRA with all the crap removed.
It's compatible so you can swap it out or take advantage of CodeSandbox's CRA environment.
This task is to remind me to cherry-pick the recent changes, the fork is a few commits behind, last synced around June.

react-native version with npx ult <appname>

What I did:

npx ult testult

Result on my Mac:

npx react-native --version:
4.13.0
npx react-native run-windows --info:
System:
OS: macOS 10.15.7
CPU: (8) x64 Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz
Memory: 114.54 MB / 4.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 12.18.4 - /usr/local/bin/node
npm: 6.14.6 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
npmPackages:
react: 16.11.0 => 16.11.0
react-native: ^0.62.0-0 => 0.62.2
react-native-windows: ^0.62.0-0 => 0.62.12

Result on my Windows PC:

npx react-native --version:
4.13.0
npx react-native run-windows --info:
System:
OS: Windows 10 10.0.19041
CPU: (24) x64 AMD Ryzen 9 3900XT 12-Core Processor
Memory: 18.52 GB / 31.91 GB
Binaries:
Node: 12.9.1 - C:\Program Files\nodejs\node.EXE
npm: 6.10.2 - C:\Program Files\nodejs\npm.CMD
npmPackages:
react: 16.13.1 => 16.13.1
react-native: 0.63.3 => 0.63.3
react-native-windows: ^0.63.0-0 => 0.63.5
Installed UWP SDKs:
10.0.18362.0

Question 1: Why does my mac installs npx ult with 0.62.0 and on windows with 0.63.3?

Problem 1, on Windows: on https://microsoft.github.io/react-native-windows/docs/getting-started it is indicated to install with react-native 0.63.2 version and not 0.63.3 like react-ult makes it.

Problem 2, on Windows too: on https://microsoft.github.io/react-native-windows/docs/rnm-getting-started is indicated:

** Latest stable version available for React Native for macOS is 0.62** Please visit the 0.62 version of the Getting Started guide to build React Native for macOS apps. And npx on Windows installs the 0.63 version (with error on the ult-template module not found)

NB: Should I have labelled this post with "issue"?

Dependency errors when creating project

Creating a new project with

npx ult UltTestProject

yields the errors shown below. It appears to be a version conflict.

error Error: Command failed: npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"16.14.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"16.13.1" from [email protected]
npm ERR! node_modules/react-native
npm ERR!   react-native@"0.63.4" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Studio

Studio

GUI for ULT and other npm based projects

https://my.ult.dev

ULT Studio Mockup

Tasks

  • List projects
  • Terminal tabs
  • Embedded terminals
  • New project dialog
  • Release version dialog
  • Change branch dropdown
  • Run platforms action
  • Test platforms action
  • Deploy platforms action

Features

List projects

Show list of added projects on disk. Must have valid package.json file and be a git repository. Scrape name, version from package.json. Scrape icon from known locations. List platforms available depending on dependencies.

Create new project

Show the create project dialog. Prompt below items, create new terminal tab, run npx ult [name], show output in embedded terminal.

  • name text field
  • base select (default, minimal)
  • platforms multi-select (web, android, windows, macos, ios)

Add existing project

Show add existing project dialog. Allow either git or local folder as input. For local folder, on web use native filesystem api, on desktop use native folder picker. For git use js-git on web, installed git on desktop.

Change branch

Show current branch, list all branches & tags, accept commit hash

Release version

Click on the version to show the release dialog. Prompt below items:

  • version text field
  • changelog text area
  • channel select (alpha, beta, production)

Run platform

When clicking run button in toolbar show tooltip with available platforms in color, disabled greyed out. When clicking them, launch an embedded terminal and run the respective command.

Terminal tabs

List webpack and metro tabs first if they are running. Click close button in tab terminates the process. Show add button after open tabs. List npm scripts or blank terminal in tooltip when clicking add button.

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.