-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SCSSでビジュアルデザインを見ながらコードを書くための環境構築 #7
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
みたよー!いいじゃん!:+1:
いくつかコメントしたので確認してくださいー 😄
.gitignore
Outdated
yarn-error.log | ||
src/css/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これを ignore するのはあくまで my-standard-layout-scss
配下の話なので、ここに書くのではなく、my-standard-layout-scss/.gitignore
に書くのが良さそうです。
合わせて、.gitignore を復習しておきましょう。
my-standard-layout-scss/.gitignore
に
src/css/
と書いたときと/src/css
と書いたときとsrc/css
と書いたときとの違いが説明できるようなっていたら良いと思います。
あと、この html5-css3-modern-coding/.gitignore
に src/css/
と書くことでどういうマズいことが起こり得るかが説明できると良いと思います。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
この赤い印(警告)は、ファイルの末尾に改行を入れてねという意味です。詳細は下記。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
おっと! ぼけてました!!! ルート直下の.gitignoreに書いてしまったら、他のstandard-layoutとかのフォルダ含め全てのsrc/css/が、監視されなくなっちゃう…
my-standard-layout-scss/.gitignore に
- src/css/ と書いたときと
- /src/css と書いたときと
- src/css と書いたときとの違いが説明できるようなっていたら良いと思います。
my-standard-layout-scss/.gitignore に
- src/css/ と書いたとき ↓
こうすると、 サブディレクトリ 配下のすべてのsrc/css配下のファイルが監視対象から外れる。
( my-standard-layout-scss/src/css配下も、my-standard-layout-scss/src/src/css配下も監視対象から外れる )
cssディレクトリ自体は無視されない- /src/css と書いたとき ↓
コレは、.gitignoreがおいてあるmy-standard-layout-scssの絶対パスになるので、my-standard-layout-scss/src/src/cssとかあったとしたら、無視されない- src/css と書いたとき ↓
上に書いた1. と似ているけど、これだとcssディレクトリ自体が無視されちゃう
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
はっっ
警告も消しときます--!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
今修正しました(・ω・)っ 続きはまたお昼にやります!!
my-standard-layout-scss/MEMO.md
Outdated
@@ -0,0 +1,235 @@ | |||
# Chapter-02 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
このメモは my-standard-layout
のものなので、ここでは真っ新にして良いのでは?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
中身まっさらにしました👍
my-standard-layout-scss/README.md
Outdated
@@ -0,0 +1,20 @@ | |||
My Standard LayOut SCSS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
細かいけど、LayOut ではなく Layout かなと。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
正しい文字を使いましょう委員会ですね! ありがとうございます〜
my-standard-layout-scss/package.json
Outdated
"license": "MIT", | ||
"scripts": { | ||
"build:scss": "node-sass --recursive src/scss --output src/css", | ||
"build:scss:watch": "node-sass --recursive src/scss --output src/css --watch", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build:scss に変更があったときに、こちらにその変更が反映されるように、
"build:scss:watch": "yarn run build:scss --watch",
とするほうがベターかなと思いました。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ありがとうございます!
(そして、nodemon見ました、ブランチきって別プルリクしときますー)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あ、別プルリクにするんですね、了解ですー
my-standard-layout-scss/README.md
Outdated
``` | ||
|
||
``` | ||
open http://localhost:3001 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
僕も勘違いしていたのですが、port はデフォルトで 3000 のようです。
Browsersync options
https://browsersync.io/docs/options#option-port
これまで 3000 を他の環境で使っていたから、代わりに 3001 が選ばれていたという...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
なるほどですね。
に変更しました。こうすると、変更する場合でも1箇所だけで済む!ステキ!
まままマージしてもよろしいでしょうか…? |
よし! 隊長どのの環境と見比べて問題なさそうなので、まままマージしちゃいます‥! |
見ますー 👀 |
あっっっ タッチの差… |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
scssでスタンダードレイアウトをコーディングしていくための、環境構築。
完了条件