GithubHelp home page GithubHelp logo

project-helper's Introduction

项目小助手

预览

preview

开发

环境

安装依赖

yarn -W // 会自动安装顶层和各项目的依赖包

启动

// page部分
// 见page下package.json start
// electron部分
// 见electron下package.json start

打包

  1. 先执行 page 的 build
  2. 再执行 elec 的 build

常见问题

electron 安装

  1. 打开electron-release

  2. 找到 electron-v7.1.7-win32-x64.zip, 自行对应系统和版本

  3. 打开项目下的 node_modules/electron

  4. 放入解压的 dist

  5. 添加 path.txt, 在 install.js 找到要写的内容, windows: electron.exe; mac: Electron.app/Contents/MacOS/Electron

某个包安装卡住

yarn config set registry https://registry.npm.taobao.org -g

yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g

在工作区安装依赖

yarn add some -W // 顶层需要-W
// 子项目直接yarn add即可, node_modules文件会放到顶层

project-helper's People

Contributors

lyr613 avatar

Stargazers

 avatar

Watchers

 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.