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

mete-cli

v1.2.0

Published

Universal front end cli, we just support react enviroment now, maybe support angular, vue and wechat miniprogram in the future

Downloads

64

Readme

npm version npm downloads Github All Releases

Universal front-end cli, we just support react enviroment now.

Features

  • Dynamic Import
  • Code Splitting
  • i18n
  • Decorator Support
  • react-erro-overlay support
  • Auto restart server after modified config(mete.config.js and .eslintrc)
  • HMR support
  • Custom webpack, eslint, babel config support
  • Redux ecosystem support
  • Displaying lint output in the editor
  • Sass support
  • Less support
  • Launch editor support (Please sure that editor command has been intalled in PATH)
  • Production server support
  • DLL support

TODO:

  • 自动安装缺失依赖
  • 打开浏览器窗口
  • 自动选择端口
  • 升级postcss-prese-env
  • 升级browserlist 到3

Getting Started

Installation

$ npm install -g mete-cli
or 
$ yarn global add mete-cli (recommend)

Usage

  1. Create an new project
$ mete init my-app --temp=react-h5
  1. Start in development
$ mete dev

Development Environment

Before starting your project, you should run mete dll for building dll files! Otherwise, you will get the following error message.

The following Webpack DLL manifest is missing: react_vendor_manifest.json
Expected to find it in /Volumes/Mac2/CHUKUI/PROJECTS/mete-react-app/dll
Please run: mete dll
$ mete dev

you can run mete dev -h for more help message.

Production Build Environment

$ mete build [dir]

the default dir is dist.

you can run mete build -h for more help message.

Production Environment

$ mete prod [-H] [-p]

you can run mete prod -h for more help message.

DLL Build

$ mete dll

Gennerator

We provide some code template for coding quickly.

Just use

$ mete generate

If something ok, you will see the list of generators.

More

Show more usage.

$ mete -h

Custom Config

For custom advanced behavior of mete, you can create a mete.config.js in the root of your project directory (next to app and package.json).

mete.config.js is a regular Node.js module, not a JSON file. It gets used by the mete dev server and build phases, and not included in the browser build.

Custom webpack config

In order to extend our usage of webpack, you can define a function that extends its config via mete.config.js.

Example:

use a function:

// Example mete.config.js for adding a loader that depends on scss-loader
module.exports = {
  webpack: (config, {}) => {
    config.module.rules.push({
      test: /\.scss/,
      loader: 'scss-loader'
    })

    return config
  }
}

Customizing babel config

In order to extend our usage of babel, you can simply edit a .babelrc file at the root of your app mete had provided.

Customizing eslint config

In order to extend our usage of eslint, you can simply edit a .eslintrc file at the root of your app mete had provided.

Project Structure

image-20181010142046415