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

ilearn-web

v1.43.3

Published

Compal e-learning site

Downloads

2

Readme

Compal iCare - Web badge

Front structure

Resource

  • webpack v4 building tool for react-router, redux
  • linting tool eslint
  • react-storybook for module development
  • Syntax ES6stage-3.

How to begin

  • install node.js v6 or further
  • install node module: npm i or yarn install

Start server

start demo server

yarn start

You canc see the project demo server running on http://localhost:3000

start storybook server

yarn storybook

You can see the storybook server running on http://localhost:6006

You also can see the storybook on github page https://redesigned-engine-831ba07b.pages.github.io/

npm script

  • npm start: start server at port 3000
  • npm run build:dev: build react project by webpack.dev.config
  • npm run build: build react project by webpack.prod.config
  • npm run lint: run eslint to check coding style
  • npm run storybook: run storybook

Project Structure

Following is the file structure of this project

  • .storybook: storybook config
  • src
    • images: pictures for react frontend
    • react
      • actions: define action function
      • components: react components
      • constants: redux action type constants.
      • reducers: redux states
      • request: request api function and endpoint
      • routes: define the routing rule
    • styles: universal usage styles, css files.
  • .storybook: storybook storise
  • storise: storybook storise

參數設定

Environment

以下是 yarn build:dev, yarn build:sit, yarn build:uat, yarn build 各自對應的環境變數

script | NODE_ENV | process.env.NODE_ENV | process.env.PROXY | process.env.API --------- | ---------- | ---------------------- | ------------------- | ----------------- build:dev | dev | dev | dev | dev build:sit | production | production | sit | sit build:uat | production | production | uat | uat build | production | production | NULL | production

CSS

CSS variables is setting at src/styles/variables, you have to import it in your target file to use it.

export default {
  standard: '#999',
  secondary: '#DDD',
  darkBlack: '#404040',
};