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

@z1399/reta-cli

v1.1.5

Published

封装webpack,配合reta-start-kit的脚手架。

Downloads

4

Readme

reta-cli

前端开发、调试、构建工具。

docker创建镜像

  1. 先发reta-cli 到内网
  2. 写一个 dockerfile
  2. docker build -t docker-dtd .  // .代表dockerfile的位置
  3.docker run -p 8080:8080 docker-dtd  // -p端口映射出来
  

  docker ps:列出所有正在运行的容器
  docker image ls:列出所有的镜像
  docker stop <name>:暂停容器
  docker rm <name>:删除容器

  上传docker镜像
  docker image ls
  打包tag
  docker tag docker-dtd hub.dopware.tech/reta/dtd:latest
  登录
  docker login hub.dopware.tech
  上传
  docker push hub.dopware.tech/reta/dtd:latest

dockerfile 参考

FROM hub.dopware.tech/library/nodejs:8-alpine
MAINTAINER daip<[email protected]>
RUN npm install -g dtd-cli
RUN npm install --registry http://registry.reta-develop.dophz.dtdream.com

更新日志

  • < 1.0.0
    • webpack 3版本。
  • 1.0.0
    • 升级到webpack 4,提高编译速度。
  • 1.1.0
    • babel 6升级到babel 7,更新依赖。
    • 项目中需要去除.reta.js配置中的"transform-runtime"、"transform-decorators-legacy"、"transform-class-properties",因为已经内置。
    • 拥抱变化,去除了babel-plugin-add-module-exports,当require一个es6模块时,需要使用标准语法:require('xxx') -> require('xxx').default。因此,在项目中使用require的地方,需要进行更改。
    • .reta.js配置项增加openBrowser,是否自动打开浏览器,默认为true。
    • .reta.js配置项增加PORT,可以配置浏览器端口;若设置,此处的优先级先于通过process.env的设置。
    • .reta.js配置项增加enableEslint,可以配置是否开启js的eslint。默认为false。
    • .reta.js配置项增加eslintLoaderOptions,可以配置eslint loader相关。默认为{}。
    • .reta.js配置项增加transformRuntime,可以对@babel/plugin-transform-runtime进行相关配置。默认为{}。
    • .reta.js配置项增加babelPresetsConfig,可以传入一些babel的preset的相关配置。默认为{ useBuiltIns: false, loose: false, targets: { browsers: ['last 2 versions'] }, env = {}}。具体参数的作用请参照babel文档。
    • .reta.js配置项增加useIePolyfill,默认为false。若开启将会加入一些ie下的polyfill。
  • 1.1.2
    • 固定了webpack的版本为4.28.4。
    • webpack4.29版本存在无法动态使用import的问题。详见[https://github.com/webpack/webpack/issues/8656]。在1.1.2以前版本中,若存在上述问题,可按此pr进行解决或升级1.1.2以上的版本。
  • 1.1.3
    • 增加版本信息注入首页。config.noVersionInfo,不启用自动加入版本信息,默认false,即自动注入。config.versionStr,可配置的版本信息,可以是函数、字符串、数字等。