kat-tax / ult Goto Github PK
View Code? Open in Web Editor NEWThe Ultimate React Native Dev Kit
Home Page: https://ult.dev
License: MIT License
The Ultimate React Native Dev Kit
Home Page: https://ult.dev
License: MIT License
Trying to look into how to get started with this. Any examples available for MacOS? Really appreciate your effort.
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 ]
Status: Experimental, partially supported. No templates yet.
Blocked until MacOS 0.61 RN support released by MS: React Native for Windows & Mac Fork
Update: 0.61 support arrived, MacOS support implemented ๐
Create wrappers around the react-native-web app for other environments
Platforms
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
Hi, is there any video explaining this project? It is difficult to know what does it actually do?
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
Hi Cavitt,
For a new project, I get this message for some days:
'react-native-template-ult-template-default@latest' is not in the npm registry.
It is a new error, isn't it. You are updating?
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?
$ npx ult my-project-ult
npx: installed 43 in 2.748s
Creating project, please wait...
Failed to create project. (1)
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.
npx ult testult
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
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
** 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"?
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.
GUI for ULT and other npm based 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.
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
)
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.
Show current branch, list all branches & tags, accept commit hash
Click on the version to show the release dialog. Prompt below items:
- version text field
- changelog text area
- channel select (
alpha
,beta
,production
)
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.