Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

feat: 支持使用 TypeScript 和 CSS 预处理语言编写小程序原生页面/组件 #1512

Merged
merged 1 commit into from
Apr 7, 2021

Conversation

Hopsken
Copy link
Contributor

@Hopsken Hopsken commented Mar 24, 2021

Remax 已经支持了混合开发模式,这可以很方便将已有项目迁移到 Remax 或者在 Remax 项目使用小程序原生语法编写对性能要求较高的页面。

但是目前 Remax 在编译的时候只能够识别出 js 和小程序原生 css 格式的,对于使用 ts 编写的页面没有处理。对此,我做了一些调整,使得 Remax 在编译的时候能够正确处理原生的 TS 和 Less 文件。这样我们在 Remax 项目中使用小程序原生语法的时候仍能使用 TypeScript 书写逻辑代码,以及使用 Less / Sass / Stylus 等 CSS 预处理语言编写样式文件。

@vercel
Copy link

vercel bot commented Mar 24, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/remaxjs/remax/2AB4RVsJShps8E1U1TPDambMcbZh
✅ Preview: https://remax-git-fork-hopsken-feat-native-ts-less-remaxjs.vercel.app

@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 24, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 03287ae:

Sandbox Source
one Configuration

@codecov
Copy link

codecov bot commented Mar 30, 2021

Codecov Report

Merging #1512 (03287ae) into master (5adf05f) will increase coverage by 0.00%.
The diff coverage is 96.96%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1512   +/-   ##
=======================================
  Coverage   90.91%   90.91%           
=======================================
  Files         363      363           
  Lines        4401     4415   +14     
  Branches      677      677           
=======================================
+ Hits         4001     4014   +13     
- Misses        392      393    +1     
  Partials        8        8           
Impacted Files Coverage Δ
...ackages/remax-cli/src/build/entries/NativeEntry.ts 94.64% <92.85%> (-1.52%) ⬇️
packages/remax-cli/src/build/NativeAssets.ts 91.39% <100.00%> (+0.18%) ⬆️
...ckages/remax-cli/src/build/entries/VirtualEntry.ts 93.10% <100.00%> (+0.24%) ⬆️
...x-cli/src/build/webpack/loaders/nativeComponent.ts 100.00% <100.00%> (ø)
packages/remax-cli/src/extensions.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5adf05f...03287ae. Read the comment docs.

@Hopsken Hopsken changed the title feat: 支持使用 TypeScript 和 CSS 预处理语言编写小程序原生页面/组件 [WIP]feat: 支持使用 TypeScript 和 CSS 预处理语言编写小程序原生页面/组件 Mar 30, 2021
@Hopsken Hopsken changed the title [WIP]feat: 支持使用 TypeScript 和 CSS 预处理语言编写小程序原生页面/组件 feat: 支持使用 TypeScript 和 CSS 预处理语言编写小程序原生页面/组件 Mar 31, 2021
@yesmeck yesmeck merged commit 1778e48 into remaxjs:master Apr 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants