Code Monkey home page Code Monkey logo

threecad's Introduction

全端 Express + Webpack + Live-Reload 開發環境 for Three.js CAD

教學文章列表

https://ithelp.ithome.com.tw/users/20107175/ironman/1316

全端測試使用

系統安裝

這裡是安裝開發環境所需的所有套件,並且使用supervisor套件省去重新載入的時間。

npm install
npm install supervisor -g

執行測試

這裡將會根據webpack.config的設定,並啟動webpack hot middleware協助開發人員快速調教。

npm start

產品包裝 與 測試發布

系統安裝

這裡需要安裝所有套件,包含測試包裝的套件。

npm install

包裝 與 執行服務

這裡會清除public目錄下所有資料,並且根據webpack.production.config的設定,接著重新生成bundle檔案,最後執行服務。

npm run production

正式產品發布

系統安裝 (install-production.bat)

這裡僅需要安裝少許系統所需的檔案。

SET NODE_ENV=production
npm install

執行服務 (start-production.bat)

這裡需要事先生成public目錄下所有檔案。

SET NODE_ENV=production
node app.js

threecad's People

Contributors

qqboxy avatar

Watchers

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