Code Monkey home page Code Monkey logo

learning's Introduction

Learning

基于 Scratch 2.0 的网页项目。

创建项目

$ mkdir learning && cd learning
$ npm init
$ npm install react react-dom --save
$ npm install webpack --save-dev
$ git init
$ echo "# Learning" >> README.md    # 其他说明文档
$ echo ".DS_Store" >> .gitignore    # 其他需要忽略的文件目录
$ git add .
$ git commit -m "Init project"
$ git remote add origin [email protected]:beitaz/blocks.git
$ git push -u origin master
$ mkdir src && touch src/index.js && touch webpack.config.js
$ npm install rimraf html-webpack-plugin --save-dev
$ npm install babel-loader babel-core babel-preset-env babel-preset-react --save-dev
$ npm install copy-webpack-plugin --save-dev
$ npm install eslint eslint-loader eslint-plugin-react --save-dev
$ npm install babel-eslint --save-dev  # 解决 [error] Parsing error: Unexpected token = 问题
$ npm install css-loader style-loader sass-loader node-sass --save-dev
$ npm install postcss-loader autoprefixer --save-dev
$ npm install webpack-dev-server --save-dev
$ npm install url-loader file-loader --save-dev

提示: 使用 npm prune 删除不需要的依赖包。

注意: React 中输出 HTML 文本或者组件数据中含有字符串时,需要处理 单引号(')双引号(")

Unexpected character '@' (11:0)
You may need an appropriate loader to handle this file type.

此�错误要添加 url-loaderfile-loader,同时也要注意是否排除了 exclude: /node_moduels/ 文件夹。

符号 转义符号
> >
" "“”
' '‘’
} }

设置布局

$ npm install semantic-ui-react semantic-ui-css --save

learning's People

Contributors

quoyi avatar

Watchers

 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.