New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@roadup/smi

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@roadup/smi

小程序打包器

latest
npmnpm
Version
0.4.3
Version published
Maintainers
1
Created
Source

smi

小程序打包器

支持 subPackages, 任何不再subPackages中定义的页面将分发到主包中

node_modules中的页面和组件会提取到dist目录下

#编译结构

Files = {
    "/pages/home/home.wxml": File {
        path: "/pages/home/home.wxml",
        output: "/dist/pages/home/home.wxml",
        content: "XXXXX",
        requires: [ "/pages/me/me.wxml", "/pages/me/me.scss", "/pages/me/me.json", "/pages/me/me.js", "/pages/other/other", "/images/home.png"],
    },
    "/images/home.png": File{
        path: "/images/home.png",
        output: "/dist/images/home.png",
        content: "XXXXXX",
        requires: []
    }
}

Page {
    wxml: "/pages/home/home.wxml",
    json: "/pages/home/home.wxml",
    js: "/pages/home/home.js",
    style: "/pages/home/home.scss"
}

Component {
    wxml: "/pages/home/home.wxml",
    json: "/pages/home/home.wxml",
    js: "/pages/home/home.js",
    style: "/pages/home/home.scss"
}

completion = {
    files: Files{ },
    pages: { "/pages/home/home": Page{} },
    components: { "/components/button/button": Component{ } }
}

#build 默认会检查执行目录的 .env 文件 可在执行时添加env文件, 默认为beta.env

npx smi beta.env

Keywords

wechat

FAQs

Package last updated on 19 Nov 2020

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