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

x-site-common-web

v2.1.5-BETA-goods-1.10

Published

###项目描述 >落地页——嵌入到各个业务线的建站入口和展示页面,此项目只是生成每个建站页面的js和css, 各业务线如果想展示建站落地页,调用js和css渲染到相应的dom上就可以了。

Downloads

14

Readme

##建站落地页整体流程

###项目描述

落地页——嵌入到各个业务线的建站入口和展示页面,此项目只是生成每个建站页面的js和css, 各业务线如果想展示建站落地页,调用js和css渲染到相应的dom上就可以了。

###新增模块流程

落地页暂时有四个页面 landing-page ——店铺总览,page-manage ——页面管理, template-manage ——模板管理,pad-advertising ——客显广告; 在各个业务线里如:admin-d2c-web ——云商城,admin-d2p-web ——云订货,会有对应的模块都在 x-site 目录下,并且添加对应的路由展示对应的页面。

  1. 要新增页面的话,在此项目x-site 目录下添加对应的模块,本地开发的话需在src目录下添加相应的路由,部署的话需在webpack.production.js添加相应的入口文件,打包的时候就会生成对应的js和css。
  2. 在业务线项目的 x-site 目录下添加相应的页面模块,并在路由文件里添加页面路由。
  • 云订货项目地址 http://git.dev.qianmi.com/gcs/admin-d2p-web.git
  • 云商城项目地址 http://git.dev.qianmi.com/gcs/admin-d2c-web.git

###本地开发

  1. 本地host新增
  • 127.0.0.1 land-page.qianmi1.com
  1. 项目搭建&启动
  • git clone http://git.dev.qianmi.com/x-site-ui/x-site-common-web.git
  • cd x-site-common-web
  • npm run init
  • npm run start
  1. 前端访问
  • 登录测试1环境 http://login1.qianmi.com:8080 (这样cookie就可以带入建站,落地页就能调通openApi接口)
  • 访问 http://land-page.qianmi1.com:8089/#/+页面路由

###部署流程

  1. 执行命令 npm run build 选择要部署的环境 test gray prod 把控制台最后的hash值复制到 x-site 项目下 auto/landing-page-hash.js 文件里 alt text
  2. 下面就是 x-site 项目的部署流程了
    • public目录下执行命令 npm run build
    • 修改根目录下package.json文件里的版本号
    • 执行命令 npm publish
  3. 布加迪部署项目 x-site 对应的版本