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

emow-core

v1.0.9

Published

emow-cli core

Downloads

4

Readme

emow-cli

前端工程化工具套件

You can use emow-cli to generate your project:

$ npm install emow-cli -g

Emow-cli provides the following commands:

$ emo -h
Usage: emo [options] [command]

Options:
  -v --vers       output the current version
  -h, --help      display help for command

Commands:
  install [name]  install generator module by name
  init|i [name]   list all generators for you to choose
  dev             start your project
  build           build your project
  test            test your project
  help [command]  display help for command

install: Install generator to local

$ emo install @lvhh/generator-emow

开始安装:  @lvhh/generator-emow
moduleRootPath /Users/haohua/.emo/emo_modules/.generators/@lvhh/generator-emow
✔ Installed 1 packages
✔ Linked 0 latest versions
✔ Run 0 scripts
✔ All packages installed (used 345ms(network 344ms), speed 2.98kB/s, json 1(1.02kB), tarball 0B)

 安装完成,你可以继续执行以下命令开始使用:

 运行:emo init

init: Init your project by already installed 'Generator',You can also use your own Generator, In other words, you can use all the generators in the NPM repository。

Next you need to execute 'emo init',emo will lists all Generators you installed before:

$ emo init
? 请选择generator: (Use arrow keys)
❯ emow : 用于构建react项目的generator

Next select a genertor you want,generator will running

$ emo init
? 请选择generator: emow : 用于构建react项目的generator
initializing...
prompting...
? 项目名称(Project name) test
? 是否启用TypeScript? Yes
? 请选择css预处理类型 (Use arrow keys)
❯ CSS
  LESS
  SCSS

After configuration according to the prompts of the Generator,Gennerator will start building your project.

After the build is complete, you can go to your project directory and use 'emo dev' to start your project dev: start your project

$ emo dev

Compiled successfully!

You can now view emo in the browser.

  Local:            http://localhost:3000
  On Your Network:  http://192.168.0.115:3000

Note that the development build is not optimized.
To create a production build, use yarn build.

build:

$ emo build

Creating an optimized production build...
Compiled successfully.

File sizes after gzip:

  39.38 KB  build/static/js/2.54ca3501.chunk.js
  771 B     build/static/js/runtime-main.97745e36.js
  641 B     build/static/js/main.b49acc06.chunk.js
  547 B     build/static/css/main.5f361e03.chunk.css

The project was built assuming it is hosted at /.
You can control this with the homepage field in your package.json.

The build folder is ready to be deployed.
You may serve it with a static server:

  yarn global add serve
  serve -s build

Find out more about deployment here:

  bit.ly/CRA-deploy

'node' exit : 0

test:

$ emo test
 PASS  src/App.test.js
  ✓ renders learn react link (25ms)

Test Suites: 1 passed, 1 total
Tests:       1 passed, 1 total
Snapshots:   0 total
Time:        2.647s
Ran all test suites.

Watch Usage
 › Press f to run only failed tests.
 › Press o to only run tests related to changed files.
 › Press q to quit watch mode.
 › Press p to filter by a filename regex pattern.
 › Press t to filter by a test name regex pattern.
 › Press Enter to trigger a test run.

Welcome to use