1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Merge pull request #393 from BoostIO/feature-use-yarn

Using yarn
This commit is contained in:
Kohei TAKATA
2017-04-08 12:51:48 +09:00
committed by GitHub
4 changed files with 6683 additions and 9 deletions

View File

@@ -8,16 +8,16 @@ You can use following commands to use default configuration at the top of projec
Install requirement packages.
```
$ npm install
$ yarn
```
Build codes and run.
```
$ npm run dev-start
$ yarn run dev-start
```
This command runs `npm run webpack` and `npm run hot` in parallel. It means it is the same thing to run those commands in 2 terminals.
This command runs `yarn run webpack` and `yarn run hot` in parallel. It means it is the same thing to run those commands in 2 terminals.
And webpack will watch the code changes and apply it automatically.

View File

@@ -8,16 +8,16 @@ Webpack HRMを使います。
依存するパッケージをインストールします。
```
$ npm install
$ yarn
```
ビルドして実行します。
```
$ npm run dev-start
$ yarn run dev-start
```
このコマンドは `npm run webpack``npm run hot`を並列に実行します。つまりこのコマンドは2つのターミナルで同時にこれらのコマンドを実行するのと同じことです。
このコマンドは `yarn run webpack``yarn run hot`を並列に実行します。つまりこのコマンドは2つのターミナルで同時にこれらのコマンドを実行するのと同じことです。
そして、Webpackが自動的にコードの変更を確認し、それを適用してくれるようになります。

View File

@@ -6,7 +6,7 @@ Webpack HRM을 개발을 위해 사용합니다.
다음 명령을 통해 저희가 해둔 설정을 사용 할 수 있습니다.
```
npm run webpack
yarn run webpack
```
몇 초 후, 다음 메세지를 보게 될겁니다.
@@ -18,10 +18,10 @@ webpack: bundle is now VALID.
그럼 앱을 실행합시다.
```
npm run hot
yarn run hot
```
> 원래 앱은 `npm start`로 실행가능합니다. 하지만 이 경우, 컴파일된 스크립트를 사용할 것입니다.
> 원래 앱은 `yarn start`로 실행가능합니다. 하지만 이 경우, 컴파일된 스크립트를 사용할 것입니다.
이로써 웹팩이 자동적으로 코드변경을 확인하고 적용해줄 것입니다.

6674
yarn.lock Normal file

File diff suppressed because it is too large Load Diff