Git Product home page Git Product logo

web2019's Introduction

Website

研究室のWebサイト

主なファイル構造

いじるとこ

  • dist: 実際に公開するファイルを入れておく.
    • npm run build するとここが更新される.
    • npm run watch しても同様.
    • npm run publish すると公開できる.
  • sass: cssを便利に書けるsassのファイルを入れるところ
  • pages: htmlを便利に書けるnunjucksのファイルを入れるところ
  • font: フォントを入れるところ
  • js: JSファイルを入れるところ
  • image: 画像を入れるところ

いじらないところ

  • node_modules: node.jsのパッケージがインストールされる場所

開発の準備

  • Node.jsいれましょう
  • gitいれましょう

Node.jsのインストール

  • 各位ググってくれ!!
  • nodebrewを使うのがおすすめ
  • Macの人はHomebrewを入れて...
$ brew install nodebrew
$ nodebrew install latest
$ nodebrew use latest
$ node -v
  • これでちゃんとバージョンが出ればOK

gitのインストール,repo clone

  • Macの人はgit入ってるはず.
$ git clone [email protected]:keitalab/website.git

NPM packagesのinstall

  • 開発に必要なあれこれをいれよう.
  • gulpなど諸々がはいります.
$ npm i

これで準備完了!

ワークフロー

  1. $ npm run watch
  2. 適当に編集.
  3. $ git push origin master a. 自動でwerckerがpushします

コマンド集

いまのとこ使えるコマンド

  • npm run watch: ファイルの変更を監視して保存したらhtmlとかcss生成
  • npm run nunjucks: pages/の中身をhtmlとして変換しルートに置く
  • npm run sass: sass/の中身をhtmlとして変換しcss/に置く
  • npm run build: dist/の中身を更新

後で増える予定のコマンド

  • npm run dev: 開発用
    • npm run watchの機能をベースに
    • live-reloadできるようにする

web2019's People

Contributors

patchgi avatar

Watchers

 avatar Keita Watanabe avatar Kazuma Takada avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.