developtools_ace_ets2bundle/compiler
huangyu 51c7a0a6be Fix TS file's sourcemap not generated issue
Signed-off-by: huangyu <huangyu76@huawei.com>
Change-Id: I15a80eed93d66e160ded5e1d9c64d9fad71c8b5a
2023-06-20 21:25:56 +08:00
..
codegen update supervisual codegen script 2023-04-20 10:24:39 +08:00
components !2347 多态样式支持foregroundColor, bindContentCover, bindSheet. 2023-06-20 12:10:44 +00:00
deps lihong67@huawei.com 2022-03-11 18:41:59 +08:00
form_components blank parent add flex 2023-05-16 02:17:38 +00:00
sample wangyongfei6@huawei.com 2022-05-13 15:30:36 +08:00
server houhaoyu@huawei.com 2023-03-24 02:31:59 +08:00
src Fix TS file's sourcemap not generated issue 2023-06-20 21:25:56 +08:00
test !2336 Add ohmUrl's UTs 2023-06-15 08:30:47 +00:00
.eslintrc houhaoyu@huawei.com 2021-11-23 15:58:32 +08:00
babel.config.js lihong67@huawei.com 2022-03-11 18:41:59 +08:00
build_declarations_file.js add scene 2023-06-01 11:11:20 +08:00
compile_plugin.js Extract terser and babel plugins to sdk side 2023-03-21 14:18:51 +08:00
main.js !2349 支持openharmonytestrunner.ets 2023-06-19 08:52:54 +00:00
npm-install.js Use api8 ark compiler when set compatible for api8 on api9 SDK 2022-09-27 12:22:09 +08:00
package-lock.json jiangbo91@huawei.com 2023-06-14 14:12:48 +08:00
package.json jiangbo91@huawei.com 2023-06-14 14:12:48 +08:00
README.md houhaoyu 2021-12-21 17:15:23 +08:00
rollup.config.js support to compile specialSdk 2023-05-13 03:35:35 +00:00
tsconfig.esm.json !2276 新增窗口控件和屏幕控件 2023-06-12 06:39:56 +00:00
tsconfig.json !2276 新增窗口控件和屏幕控件 2023-06-12 06:39:56 +00:00
uglify-source.js houhaoyu@huawei.com 2021-12-22 15:22:32 +08:00
webpack.config.js jiangbo91@huawei.com 2023-06-06 11:33:57 +08:00
如何新增或修改组件指导规范.md houhaoyu 2021-12-21 17:15:23 +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.