react
enact
npm install -g @enact/cli
enact template install @enact/template-webostv
npm install
sandstone library에는 많은 유용한 components가 존재합니다. 그 중에서 몇 가지를 소개합니다.
Enact에선 component를 적용한 효과를 미리 볼 수 있도록 sandstone sample을 제공합니다.이를 참고하여 필요한 기능을 확인할 수 있습니다.
버튼 사용 예시
import Button from '@enact/sandstone/Button';
<Button>click me</Button>
드롭다운 사용 예시
import Dropdown from '@enact/sandstone/Dropdown';
<Dropdown
inline
title="Options"
>
{['Option 1', 'Option 2', 'Option 3', 'Option 4', 'Option 5']}
</Dropdown>
In the project directory, you can run:
Builds and serves the app in the development mode.
Open http://localhost:8080 to view it in the browser.
The page will reload if you make edits.
Builds the project in the working directory. Specifically, pack
builds in development mode with code un-minified and with debug code included, whereas pack-p
builds in production mode, with everything minified and optimized for performance. Be sure to avoid shipping or performance testing on development mode builds.
Builds the project in development mode and keeps watch over the project directory. Whenever files are changed, added, or deleted, the project will automatically get rebuilt using an active shared cache to speed up the process. This is similar to the serve
task, but without the http server.
Deletes previous build fragments from ./dist.
Runs the Enact configuration of Eslint on the project for syntax analysis.
These tasks will execute all valid tests (files that end in -specs.js
) that are within the project directory. The test
is a standard single execution pass, while test-watch
will set up a watcher to re-execute tests when files change.