https://github.com/wonism/dart-poc
https://github.com/wonism/dart-poc
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/wonism/dart-poc
- Owner: wonism
- Created: 2018-07-20T15:40:03.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-29T06:12:08.000Z (almost 7 years ago)
- Last Synced: 2025-01-12T16:11:25.052Z (4 months ago)
- Language: HTML
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dart - Proof of concept
## Install
```
# Install dart
$ brew tap dart-lang/dart
# Get dev channel release:
$ brew install dart --devel
```### CLI tools
```
$ pub global activate webdev
$ pub global activate stagehand
# then, add `export PATH=$PATH:~/.pub-cache/bin` into `.profile`
# in my case, `~/.bash_profile`
```- `webdev`는 웹 앱을 빌드하고 서빙할 수 있도록 도와주는 CLI다. `Dart`의 `build_runner`를 기반으로 만들어졌으며, `pub build`와 `pub serve`를 대체한다.
- `stagehand`는 스캐폴딩 제너레이터이다.## Syntax highlighting on vim
```
" .vimrc" https://github.com/dart-lang/dart-vim-plugin
Plugin 'dart-lang/dart-vim-plugin'
```## Create a web application
```
# create directory and move to the directory
$ mkdir dart-webapp
$ cd dart-webapp
# create project
$ stagehand web-simple
# install packages
$ pub get
```## Run the application
```
$ webdev serve
```- `webdev`로 첫 빌드 및 서빙에는 속도가 느리지만, 다음부터는 파일들이 캐싱되어 빨라질 것이다.