Giter Club home page Giter Club logo

toolkit2-example's Introduction

发布工具案例说明

这是一个使用打包工具打包前端代码的WEB工程案例,项目仅包含前端相关的代码,其中各目录的说明如下所示

目录结构

准备工作

  1. 安装nodejs环境(>=0.12.x)

  2. 安装打包工具

    npm install nej –g
  3. 如果跑本案例需要起本地WEB服务可安装puer

    npm install puer -g

查看案例

在webapp目录下运行本地WEB服务器后,通过浏览器访问以下路径查看案例

查看案例

执行打包

通过执行以下命令对本案例的工作前端做打包,可以通过配置deploy/release.conf中的不同参数输出不同的结果

nej build /path/to/release.conf

查看发布结果

按照默认的配置页面会输出到webapp/pub/下,通过浏览器访问以下路径查看打包后的结果

打包结果

toolkit2-example's People

Contributors

genify avatar

Stargazers

Yiming avatar  avatar cheng-lin avatar 熊鑫 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.