open-index/open-npm huggingface dataset:
npm package: @minix-iot/ets-loader
Description: minix ets loader to transpile UI syntax
Latest version: 0.0.2

# 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.
npm package: @minix-iot/etsbridge-sdk
Description: <!--  * @Description:  * @Autor: tangsj  * @Date: 2022-02-11 14:21:23  * @LastEditTime: 2022-11-05 15:47:19 -->
Author: tangsj
Latest version: 1.0.3

<!--
 * @Description:
 * @Autor: tangsj
 * @Date: 2022-02-11 14:21:23
 * @LastEditTime: 2022-11-05 15:47:19
-->

# minix-etsbridge-sdk

## 安装依赖

```bash
    npm install @minix-iot/etsbridge-sdk --save
```

## 启动开发模式

```bash
    npm run dev
```

## 生产模式打包

```bash
    npm run build
```

## 生产模式预览

```bash
    npm run preview
```

## default config

`vite.config.ts`中配置`vite`打包项
npm package: @minix-iot/jsbridge-sdk
Description: <!--  * @Description:  * @Autor: tangsj  * @Date: 2022-02-11 14:21:23  * @LastEditTime: 2022-04-15 18:33:50 -->
Author: tangsj
Latest version: 1.0.0

<!--
 * @Description:
 * @Autor: tangsj
 * @Date: 2022-02-11 14:21:23
 * @LastEditTime: 2022-04-15 18:33:50
-->

# minix-jsbridge-sdk

## 安装依赖

```bash
    npm install
```

## 启动开发模式

```bash
    npm run dev
```

## 生产模式打包

```bash
    npm run build
```

## 生产模式预览

```bash
    npm run preview
```

## default config

`vite.config.ts`中配置`vite`打包项
npm package: @minix-iot/minix-loader
Description: a webpack loader for minix
Latest version: 0.1.6

# Ace Loader

A webpack loader for Ace.

## Install Dependencies under the ace-loader dir.

npm install

## Build built-in sample for Rich devices under the ace-loader dir.

npm run rich

## Build built-in sample for Lite devices under the ace-loader dir.

npm run lite

## How to build custom ace project

Windows:
Step 1. set aceModuleRoot=path/to/your/ace/project
Step 2. set aceModuleBuild=path/to/your/jsbundle/build
Step 3. node ./node_modules/webpack/bin/webpack.js --config webpack.rich.config.js

Linux:
Step 1. export aceModuleRoot=path/to/your/ace/project
Step 2. export aceModuleBuild=path/to/your/jsbundle/build
Step 3. node ./node_modules/webpack/bin/webpack.js --config webpack.rich.config.js