Skip to content

How to build the app without hbuilderx (from cli)? #111

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

Open
WebKieth opened this issue May 5, 2025 · 1 comment
Open

How to build the app without hbuilderx (from cli)? #111

WebKieth opened this issue May 5, 2025 · 1 comment

Comments

@WebKieth
Copy link

WebKieth commented May 5, 2025

I try to run npm commands as written in readme, but in package.json you haven't any of it so I get an error missing script. So how can I launch build from command line?

@WebKieth WebKieth changed the title How to build the app without hbuilderx? How to build the app without hbuilderx (from cli)? May 5, 2025
@WebKieth
Copy link
Author

WebKieth commented May 5, 2025

my package.json

{
	"id": "hello-uniapp",
	"name": "hello-uniapp",
	"displayName": "hello-uniapp 示例工程",
	"version": "3.4.4",
	"description": "uni-app 框架示例,一套代码,同时发行到iOS、Android、H5、小程序等多个平台,请使用手机扫码快速体验 uni-app 的强大功能",
	"scripts": {
		"test": "echo \"Error: no test specified\" && exit 1"
	},
	"repository": "https://github.com/dcloudio/hello-uniapp.git",
	"keywords": [
		"hello-uniapp",
		"uni-app",
		"uni-ui",
		"示例工程"
	],
	"author": "",
	"license": "MIT",
	"bugs": {
		"url": "https://github.com/dcloudio/hello-uniapp/issues"
	},
	"homepage": "https://github.com/dcloudio/hello-uniapp#readme",
	"dependencies": {
		"compressorjs": "^1.2.1"
	},
	"dcloudext": {
		"category": [
			"前端页面模板",
			"uni-app前端项目模板"
		],
		"sale": {
			"regular": {
				"price": "0.00"
			},
			"sourcecode": {
				"price": "0.00"
			}
		},
		"contact": {
			"qq": ""
		},
		"declaration": {
			"ads": "",
			"data": "",
			"permissions": ""
		},
		"npmurl": ""
	},
	"uni_modules": {
		"dependencies": [],
		"encrypt": [],
		"platforms": {
			"cloud": {
				"tcb": "y",
				"aliyun": "y"
			},
			"client": {
				"App": {
					"app-vue": "y",
					"app-nvue": "y"
				},
				"H5-mobile": {
					"Safari": "y",
					"Android Browser": "y",
					"微信浏览器(Android)": "y",
					"QQ浏览器(Android)": "y"
				},
				"H5-pc": {
					"Chrome": "y",
					"IE": "y",
					"Edge": "y",
					"Firefox": "y",
					"Safari": "y"
				},
				"小程序": {
					"微信": "y",
					"阿里": "y",
					"百度": "y",
					"字节跳动": "y",
					"QQ": "y",
					"京东": "y"
				},
				"快应用": {
					"华为": "u",
					"联盟": "u"
				},
				"Vue": {
					"vue2": "y",
					"vue3": "y"
				}
			}
		}
	},
	"uni-app": {
		"scripts": {
			"mp-dingtalk": {
				"title": "钉钉小程序",
				"env": {
					"UNI_PLATFORM": "mp-alipay"
				},
				"define": {
					"MP-DINGTALK": true
				}
			}
		}
	}
}

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

No branches or pull requests

1 participant