Giter VIP home page Giter VIP logo

Comments (5)

oxUnd avatar oxUnd commented on May 30, 2024

不能用之前的方法去封装,FIS3 需要新的方式进行封装。参考代码;

https://github.com/fex-team/fis3/blob/master/bin/fis.js#L1-L31

#!/usr/bin/env node

var Liftoff = require('liftoff');
var argv = require('minimist')(process.argv.slice(2));
var path = require('path');
var cli = new Liftoff({
  name: 'fis3',
  processTitle: 'fis',
  moduleName: 'fis3',
  configName: 'fis-conf',

  // only js supported!
  extensions: {
    '.js': null
  }
});

cli.launch({
  cwd: argv.r || argv.root,
  configPath: argv.f || argv.file
}, function(env) {
  var fis;
  if (!env.modulePath) {
    fis = require('../');
  } else {
    fis = require(env.modulePath);
  }
  fis.set('localNPMFolder', path.join(env.cwd, 'node_modules/fis3'));
  fis.set('globalNPMFolder', path.dirname(__dirname));
  fis.cli.run(argv, env);
});

from fis3.

vaseala avatar vaseala commented on May 30, 2024

回复这么快!谢了!

from fis3.

vaseala avatar vaseala commented on May 30, 2024

image
新的封装方案 可不可以理解为 和fis3 是同级别的,或者说是fis3的一个别名 现在fis3依赖的所有的模块 ,在新的方案里面也都需要全部引入

from fis3.

oxUnd avatar oxUnd commented on May 30, 2024

FIS 定制的时候也跟 FIS3 一样的呀,所有 FIS 依赖的模块都会安装呀;而且这些依赖都是一些关键依赖,几乎任何解决方案都能用到。

FIS 把核心代码提取为 fis-kernel 在 FIS3 里面没有这么做,因为直接从 fis-kernel 去做定制的人比较少。

from fis3.

vaseala avatar vaseala commented on May 30, 2024

嗯 明白了 谢谢!

from fis3.

Related Issues (20)

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.