npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vfis-cli

v1.0.1

Published

The make fis3 to support vue、es6 and make it more easy !

Downloads

8

Readme

vfis-cli

Build Status

这个项目是把基于fis3构建的比较常用的功能集成一起的构建工具。包含功能以下功能:

  • [x] 支持vue
  • [x] 支持sass
  • [x] autoprefixer兼容css
  • [x] babel兼容es6
  • [x] js依赖及引入
  • [x] 按需合并文件
  • [x] 图片合并
  • [x] 图片压缩

安装及使用

安装

npm i -g vfis-cli

由于依赖的各种库比较大,请耐心等待。

使用

生成

vfis release -d ./output

生成并监控

vfis release -wL ./output

预览

vfis server start --root ./output

更多使用移步到 fis3 起步构建

设置

配合简易的设置可简化更多工作,下面是简单的使用例子,如想了解更多可看详细文档

快速上手

第一步,安装

// 安装vfis构建优化模块
$ npm i -D vfis

第二步,开始使用

//设置
# fis-conf.js
const vfis = require('vfis');

vfis({
    input: 'src/(*.html)',
    output: {
        default:{
            basePath: 'assets'
        }
    },
    pack: {
        vendor: {
            'vender.js': ['node_modules/**'],
            'main.js': ['src/**']
        }
    }
});

// 生成并监控文件变化自动刷新页面
$ fis3 release -d ./output -wL

// 预览
$ fis3 server start --root ./output

第三步,理解输出设置

fis.set('vfis.config', {
    input: '**/(*.html)',       //访问的文件入口
    output: {                   //输出文件目录及相关的设置
        default: {
            basePath: 'assets', //静态资源目录
            pagePath: '',       //页面生成目录
            url: '',            //静态资源访问的虚拟目录(指虚拟目录路径)
            domain: '',         //静态资源访问的域(指网站访问域,如:http://uxfeel.com)
        }
    }
})

运行环境

node 4.4.x
npm 3.10.x
python 2.7.x

win系统还需 Microsoft Visual Studio 2010以上
linux系统需要 c++运行环境

环境安装细节

win下需要管理者权限

# 更新npm
sudo npm update -g npm

# 安装fis3
sudo npm install -g fis3

安装依赖

命令行进入项目目录根

npm i

安装其他问题

假如运行出错,或很久不动,可能是node-sass安装问题,使用ctrl+c停止命令,然后重装。

npm rebuild node-sass