Giter VIP home page Giter VIP logo

sheep's Introduction

Sheep

Build Status Release Version Issues Software License

A front-end rendering solution , support IE6 , IE8 and modern browser

Version 0.2

  1. rewrite all code

  2. run in IE5,IE6,IE7,IE8 and modern browser success( fix issue #1)

  3. support dom bind event

Install

start server

cd server
npm install
node app

start client

cd resources\views
npm install
npm start

release client

npm run release

install webpack version 1.13.2 , see the issue here

npm install [email protected] --save-dev

open http://127.0.0.1:8889/home/home.html in your browser

demo

demo theme

es5 support

IE8 webpack

jquery v1.83 have two CVE:

CVE-2015-9251

CVE-2016-10707

update: 2018-10-24

The issue will happen in Win10 when you execute webpack -w to package sheep:

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration.entry should be one of these:
   object { <key>: non-empty string | [non-empty string] } | non-empty string | [non-empty string] | function
   -> The entry point(s) of the compilation.
   Details:
    * configuration.entry['home'] should be a string.
      -> The string is resolved to a module which is loaded upon startup.
    * configuration.entry['home'] should not be empty.
    * configuration.entry should be a string.
      -> An entry point without name. The string is resolved to a module which is loaded upon startup.
    * configuration.entry should be an array:
      [non-empty string]
    * configuration.entry should be an instance of function
      -> A Function returning an entry object, an entry string, an entry array or a promise to these things.
 - configuration.module has an unknown property 'loaders'. These properties are valid:
   object { exprContextCritical?, exprContextRecursive?, exprContextRegExp?, exprContextRequest?, noParse?, rules?, defaultRules?, unknownContextCritical?, unknownContextRecursive?, unknownContextRegExp?, unknownContextRequest?, unsafeCache?, wrappedContextCritical?, wrappedContextRecursive?, wrappedContextRegExp?, strictExportPresence?, strictThisContextOnImports? }
   -> Options affecting the normal modules (`NormalModuleFactory`).
 - configuration.resolve.extensions[0] should not be empty.
   -> A non-empty string
 - configuration.resolveLoader has an unknown property 'fallback'. These properties are valid:
   object { alias?, aliasFields?, cachePredicate?, cacheWithContext?, descriptionFiles?, enforceExtension?, enforceModuleExtension?, extensions?, fileSystem?, mainFields?, mainFiles?, moduleExtensions?, modules?, plugins?, resolver?, symlinks?, concord?, unsafeCache?, useSyncFileSystemCalls? }
   -> Options for the resolver when resolving loaders
"release": "webpack -p --progress --colors"

You can add this to package.json

package

npm run release

Describe

兼容IE8的前端渲染方案有很多:

React v0.14 及其以前版本

Angualar v1.2 及其以前版本

Backbone

React 和 AngularJS 后续版本如果想支持,可以用 polyfilles5-shim 来解决,正如本项目一样,为了解决webpack打包中存在的IE8兼容问题,但是值得注意的是,本项目源码本身就支持IE8。

关于sheep的后期博文将在我的博客这篇文章中给出,这个项目仅仅是一个学习与探索的过程。

Tools

Build By Visual Studio Code

License

Code in sheep project is licensed under the GPL

sheep's People

Contributors

flyher avatar

Stargazers

ALex.Lin avatar

Watchers

James Cloos avatar  avatar

sheep's Issues

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.