Coder Social home page Coder Social logo

hapjs-platform / hap-toolkit Goto Github PK

View Code? Open in Web Editor NEW
33.0 33.0 21.0 5.38 MB

Quickapp command line tools to support project creation, compilation, debugging support, etc.

License: Apache License 2.0

JavaScript 99.64% CSS 0.14% HTML 0.17% Shell 0.01% Less 0.03% CoffeeScript 0.01% SCSS 0.02%

hap-toolkit's People

Contributors

barats avatar caojuan1997 avatar chenwei-oppo avatar chunge66 avatar jayfate avatar oppoquickapp avatar xingfujiang avatar zhangyingchun-oppo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hap-toolkit's Issues

hap-toolkit 1.9.15 create initial demo project issues

Create demo project by hap-toolkit v1.9.15, the demo project has 2 issues:

  1. Useless code files in scripts directory

  2. Install dependencies error caused by invalid npm registry link:
    npm ERR! request to https://registry.npm.taobao.org/colors failed, reason: certificate has expired

将loader的调用方式由inline改成配置形式

"../../packages/hap-dsl-xvm/lib/loaders/script-loader.js!../../packages/hap-packager/lib/loaders/module-loader.js!../../node_modules/babel-loader/lib/index.js?cwd=/Users/111111/Documents/hhhhh/hap-toolkit/examples/sample&cacheDirectory&plugins[]=/Users/111111/Documents/hhhhh/hap-toolkit/packages/hap-dsl-xvm/lib/loaders/babel-plugin-jsx.js&comments=false&configFile=/Users/111111/Documents/hhhhh/hap-toolkit/examples/sample/babel.config.js!../../packages/hap-dsl-xvm/lib/loaders/access-loader.js!../../packages/hap-dsl-xvm/lib/loaders/fragment-loader.js?index=0&type=script!./src/home/index.ux?uxType=page"

建议:把环境变量传入webpack配置

这个地方能不能把环境变量传进来,这个可以根据环境来设置不同的插件配置。

可以判断webpack是否是函数,如果是函数,执行之后再赋值

if (customConf.webpack) {
  if (typeof customConf.webpack === 'function') {
    customConf = customConf.webpack(defaultsOptions.nodeConf)
  } else {
    customConf = customConf.webpack
  }
}

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.