New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fie-toolkit-nb

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fie-toolkit-nb

nuke主题及业务组件开发套件

  • 0.1.18
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

fie-toolkit-nb

针对nuke的业务组件及场景主题开发套件,rax业务沉淀必备工具。

初始化项目

可选择开发内容及底层依赖


fie init 

开启调试


fie start

构建

组件:babel源代码到lib目录

主题:打包出bundlejs及demo展示目录

fie build  

发布

组件:发布demo目录,用于demo展示

主题:发布打包出bundlejs、demo

 fie update-scene  更新场景字段,部分字段需手动修改package.json


fie publish

fie publish development 发布主题信息到日常[脚手架维护者debug使用]

nuke-bin或fie-toolkit-nbiz业务组件迁移指南

相比于nuke-bin及nbiz,本脚手架可以指定基础库如rax或nuke的版本,适合rax业务组件及nuke主题的开发。

step1: 其中业务组件在项目根目录添加fie.config.js

module.exports = {
  // 当前项目使用的fie套件
  toolkit: 'fie-toolkit-nb',

  toolkitConfig: {
    // 本地服务器端口号
    // qap开发中客户端需要通过此接口获得qap.json,请不要修改,如果该端口被占用,请修改apache或其他服务配置
    port: 8080,
    // 是否自动打开浏览器
    open: true,
    // 打开浏览器后 自动打开的 目标页面
    openTarget: 'demos/index.html',
    // 文件修改后是否自动刷新浏览器
    liveload: true,
    path:{
      simple:''
    },
    type:'component'
  },
  tasks: {
    build: [
      {
        // 同步版本号
        command: 'fie git sync'
      },
      {
        // 检测dependencies中的版本依赖
        command: 'fie check'
      }
    ],
    publish: [],
    open: [
      {
        // 打开gitlab上的项目
        command: 'fie git open'
      }
    ]
  }
};


step2:在package.json中添加,并在本地安装

"peerDependencies": {
    "rax":"^0.2.x",
    "nuke": "^0.6.x"
 }

step3: 自定义template.html作为渲染模板

可不定义,默认使用

执行 fie start 开启调试

demo项目 http://gitlab.alibaba-inc.com/nuke-biz/qn-chart

详细内容请参考nuke工具文档场景复用章节

场景命名规范 scene-card-list

nuke-theme group下,以scene开头,后跟功能及说明性字段,能够说明场景关键词.

场景开放性规则

必须通过仓库初始化的eslint规则。结合业务脚手架的自动化拷贝功能,仅pages/index/下的文件内容可被拷贝复制。

FAQs

Package last updated on 23 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc