Giter Site home page Giter Site logo

royal's Introduction

Royal Components Library

启动项目

欢迎fork这个项目,然后clone到本地,使用npm安装package.json里的Node模块:

    "dependencies": {
        "react": "^15.2.0",
        "react-dom": "^15.2.0",
        "react-router": "^2.5.2"
    },
    "devDependencies": {
        "webpack": "^1.13.1",
        "babel-core": "^6.10.4",
        "babel-loader": "^6.2.4",
        "babel-preset-es2015": "^6.9.0",
        "babel-preset-react": "^6.11.1",
        "babel-preset-stage-1": "^6.5.0",
        "css-loader": "^0.23.1",
        "file-loader": "^0.9.0",
        "img-loader": "^1.2.2",
        "less": "^2.7.1",
        "less-loader": "^2.2.3",
        "style-loader": "^0.13.1",
        "url-loader": "^0.5.7"
    }

启动前,先全局安装 webpack

    $ sudo npm install webpack -g

然后启动编译

    $ webpack --progress -w

最后启动Http服务,这里我用Node写了一个最简单的本地Http服务器:

    $ node app.js

默认监听 3000 端口,输入URL http://localhost:3000/index.html 看看吧!

royal's People

Contributors

jafeney avatar

Stargazers

Jan Guan avatar Jerome avatar fenying li avatar dong avatar  avatar NoBug avatar Derek avatar  avatar

Watchers

James Cloos avatar  avatar

royal's Issues

webpack --progress -w

webpack --progress -w出现安装npm i webpack-CLI但是安装错误,我用cnpm i webpack-cli再执行webpack --progress -w还是要安装webpack-cli怎么回事?

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.