Go to file
wuhailong 12a4e37ca1 Add error message to getOhmUrl
Issue: #IB22PI

Signed-off-by: wuhailong <wuhailong22@huawei.com>
Change-Id: Ie67942844a36e0c9104e121972470c3e6284f93a
2024-11-05 18:19:01 +08:00
.gitee Add pr description template 2024-10-26 09:27:39 +08:00
compiler Add error message to getOhmUrl 2024-11-05 18:19:01 +08:00
.gitignore shijiakai2@huawei.com 2024-10-21 12:00:04 +08:00
build_ets_loader_library.py lihong67@huawei.com 2024-05-20 15:42:41 +08:00
BUILD.gn Confusion optimization 2024-08-02 17:18:30 +08:00
bundle.json lihong67@huawei.com 2023-06-25 15:30:40 +08:00
generateSysResource.py 新增symbol资源类型 2023-11-22 14:00:02 +08:00
install_arkguard_tsc.py Build typescript and arkguard in product building 2023-12-05 15:01:28 +00:00
LICENSE houhaoyu 2021-12-21 17:15:23 +08:00
OAT.xml houhaoyu@huawei.com 2023-07-24 17:48:02 +08:00
README_zh.md wangyongfei6@huawei.com 2022-08-16 21:17:51 +08:00
README.md wangyongfei6@huawei.com 2022-08-16 21:17:51 +08:00

developtools_ace_ets2bundle

Description

Provide declarative paradigm syntax compilation conversion, syntax verification, rich and friendly syntax error prompting capabilities.

Software Architecture

  • compiler/src: source code
  • test: unit test file
  • .eslintrc: eslint configure
  • babel.config.js: babel configure
  • main.js: source code
  • package.json: define what libraries will be installed into node_modules when you run npm install
  • tsconfig.json: the compiler options required to compile the project
  • webpack.config.js: webpack configuration information

Prerequisites

> npm -v
  6.14.8
> node -v
  v12.18.3

Please install the latest stable version.

Installing

Enter the root directory of the compiler:

npm config set registry http://registry.npm.taobao.org
npm config set strict-ssl false
npm cache clean -f
npm install

Quick Start

Enter the root directory of the compiler:

npm run build
npm run compile

The sample project will be compiled. The output is in the sample/build directory.

Creating a Project

Enter the root directory of the compiler:

npm run create [projectName]

Note: If projectName is not specified, the HelloAce project will be compiled. For example, use the following line to create a project named foo:

$ npm run create foo

The directory structure of project foo:

  • foo
    • pages
      • index.ets
    • app.ets
    • manifest.json

Creating a Page

For example, create a file bar.ets in the pages directory. And then add the following lines to "pages" field in manifest.json:

  "pages": [
    "pages/index",
    "pages/bar"
  ]

Compiling a Project

Enter the root directory of the compiler:

$ npm run build
$ npm run compile [projectName]

Note: If projectName is not specified, the sample project will be compiled. In the project root directory, the compilation result is in the build directory.