developtools_ace_ets2bundle/compiler
openharmony_ci ec94b63bed
!3903 Fix codecheck for printer optimization
Merge pull request !3903 from dengxinyu/1102-printerCodeCheck
2024-11-08 10:20:23 +00:00
..
codegen revert modification of supervisual 2024-07-23 20:16:55 +08:00
components !3891 回退Canvas组件json文件 2024-10-31 12:55:15 +00:00
config Confusion optimization 2024-08-02 17:18:30 +08:00
form_components etsBundle添加customStyle 2024-04-07 13:52:10 +08:00
sample wangyongfei6@huawei.com 2022-05-13 15:30:36 +08:00
script Fix codeCheck warnings for "$target_dir" 2024-07-25 16:15:34 +08:00
server jiangbo91@huawei.com 2024-06-11 14:36:37 +08:00
src !3903 Fix codecheck for printer optimization 2024-11-08 10:20:23 +00:00
test !3903 Fix codecheck for printer optimization 2024-11-08 10:20:23 +00:00
.eslintrc !2826 eslint配置更新 2023-12-20 02:09:42 +00:00
.jscpd.json add jscpd & eslint config 2023-12-04 16:37:04 +08:00
.nycrc houhaoyu@huawei.com 2023-07-24 17:48:02 +08:00
babel.config.js lihong67@huawei.com 2022-03-11 18:41:59 +08:00
build_declarations_file.js Synchronized compilation and editing interception are consistent 2024-11-07 21:19:15 +08:00
build_kitConfigs_file.js add arkts resolve path 2024-03-26 06:31:49 +00:00
compile_plugin.js jiangbo91@huawei.com 2024-06-04 11:00:08 +08:00
main.js 【Feature】支持传入xtsMode环境变量,用于编译内置hap 2024-10-18 11:42:18 +08:00
npm-install.js Remove post npm install of ts2abc 2023-07-01 14:32:35 +08:00
package-lock.json Build typescript and arkguard in product building 2023-12-05 15:01:28 +00:00
package.json shijiakai2@huawei.com 2024-10-22 21:00:26 +08:00
README.md
rollup.config.js support to compile specialSdk 2023-05-13 03:35:35 +00:00
tsconfig.esm.json add platformview 2024-09-29 09:46:07 +08:00
tsconfig.json 添加新组件LinearIndicator的SDK配置信息 2024-08-27 19:53:09 +08:00
uglify-source.js jiangbo91@huawei.com 2024-05-19 11:21:53 +08:00
webpack.config.js jiangbo91@huawei.com 2024-05-19 11:21:53 +08:00
如何新增或修改组件指导规范.md fix public sdk contains systemapi 2024-01-13 18:56:04 +08:00

compiler

The compiler tool chain for ace2.0.

Usage

Here are simplified instructions of how to get started. The following commands work both on Windows and Linux platforms.

1. Install

First, enter the root directory of the compiler:

$ cd compiler/

And then install the npm dependencies(You must have node&npm installed):

$ npm install

Note: If some errors occur, delete the generated package node_modules, please check the following items:

First, check whether your node version is 12.x or later; Secondly, config npm proxy and run npm install again.

npm config set strict-ssl false
npm config set registry https://registry.npm.taobao.org

2. Quick Start

For a quick start

In the root directory of compiler/:

$ npm run build
$ npm run compile

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

3. Create a new project

The way to create a new project

In the root directory of compiler/:

$ npm run build
$ npm run create [projectName]

Note: If projectName is empty, create the HelloAce project by default.

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

4. Create a new page

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

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

5. Compile a project

The way to compile a project

In the root directory of compiler/:

$ npm run build
$ npm run compile [projectName]

Note: If projectName is empty, compile the sample project by default. In the project root directory, the compilation result is in the build directory.