Giter Club home page Giter Club logo

lap_cal's Introduction

說明

須先安裝 node.js。 使用react作為主要的邏輯框架,webpack作為打包工具。

開發環境

# 切換到專案目錄
cd $(dirname $0)
# 依照 package.json 安裝本專案的依賴包
npm install

啟動測試環境

執行專案目錄內的 npm_start_webpack_dev.command,會啟動 webpack_dev_server,監聽專案資料夾的變化並自動更新畫面。 webpack_dev_server的相關設定(address/port)在launch_webpack_dev_server.js內 若要停止webpack_dev_server,則執行專案目錄內的 npm_stop_webpack_dev.command。

修改 webpack dev server 的設定

Port

launch_webpack_dev_server.js內修改三個地方

// ...

config.entry.app.unshift("webpack-dev-server/client?http://localhost:6060/", "webpack/hot/dev-server");

new WebpackDevServer(webpack(config), {
  // ...
}).listen(6060, 'localhost', function (err, result) {
  // ...

  console.log('Listening at http://localhost:6060/');
});
// ...

目前預設使用 6060 port,若要使用別的 port 則把 6060改為需要的數字,然後重新啟動 webpack_dev_server 即可。

發佈

執行專案目錄內的 npm_build_release

lap_cal's People

Contributors

qqjckimo avatar

Watchers

James Cloos 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.