2.5.4 • Published 2 years ago

@builder/app-helpers v2.5.4

Weekly downloads
364
License
MIT
Repository
github
Last release
2 years ago

English | 简体中文

A universal framework based on React.js

Features

  • 🐒 Engineering:Out of the box support for ES6+、TypeScript、Less、Sass、 CSS Modules,etc
  • 🦊 Routing:Powerful Routing System, supports configured routing and conventions routing
  • 🐯 State management:Built-in icestore, lightweight state management solution based on React Hooks
  • 🐦 Config:Modes and Environment Variables configuration in the config file
  • 🐶 Logger:Built-in logger solution, it's a flexible abstraction over using console.log as well
  • 🐱 Helpers:Built-in helpers, provide some useful utility functions
  • 🦁 Application configuration:Provide powerful and extensible application configuration
  • 🐴 Hooks:Provide Hooks APIs such as useModel and useHistory, etc
  • 🐌 Plugin system:The plugin system provides rich features and allow the community to build reusable solutions
  • 🐘 TypeScript:Support TypeScript
  • 🐂 Modern:Support SPA、SSR、MPA and Micro-frontend

Quick start

Setup by Iceworks

We recommend creating a new icejs app using Iceworks:

demo

See Quick start by Iceworks for more details.

Setup by CLI

We recommend creating a new icejs app using create-ice, which sets up everything automatically for you. To create a project, run:

$ npm init ice <project-name>

npm init <initializer> is available in npm 6+

Start local server to launch project:

$ cd <project-name>
$ npm install
$ npm run start # running on http://localhost:3333.

It's as simple as that!

Manual Setup

icejs is really easy to get started with. Install ice.js, react and react-dom in your project:

$ mkdir <project-name> && cd <project-name>
$ npm install ice.js react react-dom

Open package.json and add the following scripts:

{
  "name": "project-name",
  "scripts": {
    "start": "icejs start",
    "build": "icejs build"
  },
  "dependencies": {
    "ice.js": "^1.0.0",
    "react": "^16.12.0",
    "react-dom": "^16.12.0"
  }
}

Create the pages directory, then create the first page in pages/index.jsx:

import React from 'react'

const HomePage = () => {
  return <div>Welcome to icejs!</div>
}

export default HomePage

Configure an application information in the src/app.js file, but it is optional:

import { runApp } from 'ice'

const appConfig = {
  router: {
    type: 'browser',
  },

  // more...
}

runApp(appConfig)

Finally, To start developing your application run npm run start. The application is now running on http://localhost:3333.

Examples

Contributing

Please see our CONTRIBUTING.md

Ecosystem

ProjectVersionDocsDescription
icejsicejs-statusdocsA universal framework based on react.js
icestarkicestark-statusdocsMicro Frontends solution for large application
icestoreicestore-statusdocsSimple and friendly state for React
iceworksiceworks-statusdocsVisual Intelligent Development Assistant
formilyformily-statusdocsPerformant, flexible and extensible form solusion
ahooksahooks-statusdocsReact Hooks Library

Community

DingTalk communityGitHub issuesGitter
issuesgitter

License

MIT

2.5.3-beta.1

2 years ago

2.5.4-beta.1

2 years ago

2.5.2-beta.1

2 years ago

2.5.2-beta.3

2 years ago

2.5.2-beta.2

2 years ago

2.5.2

2 years ago

2.5.4

2 years ago

2.5.3

2 years ago

2.5.1-beta.1

2 years ago

2.5.1-beta.2

2 years ago

2.4.2-alpha.0

2 years ago

2.4.3

2 years ago

2.4.2

2 years ago

2.5.0-beta.1

2 years ago

2.5.0-beta.2

2 years ago

2.5.0-beta.3

2 years ago

2.4.1-alpha.1

2 years ago

2.4.1-alpha.0

2 years ago

2.5.0

2 years ago

2.5.1

2 years ago

2.4.2-beta.1

2 years ago

2.4.1

3 years ago

2.4.1-beta.4

3 years ago

2.4.1-beta.2

3 years ago

2.4.1-beta.3

3 years ago

2.4.1-beta.1

3 years ago

2.4.0

3 years ago

2.4.0-rc.5

3 years ago

2.4.0-rc.4

3 years ago

2.4.0-rc.3

3 years ago

2.4.0-rc.2

3 years ago

2.4.0-next.12

3 years ago

2.4.0-next.11

3 years ago

2.4.0-next.14

3 years ago

2.4.0-next.13

3 years ago

2.4.0-rc.1

3 years ago

2.3.5

3 years ago

2.4.0-next.9

3 years ago

2.4.0-next.10

3 years ago

2.4.0-next.8

3 years ago

2.4.0-next.7

3 years ago

2.4.0-next.6

3 years ago

2.4.0-next.5

3 years ago

2.4.0-next.3

3 years ago

2.4.0-next.2

3 years ago

2.4.0-next.4

3 years ago

2.4.0-next.1

3 years ago

2.3.4

3 years ago

2.3.4-beta.2

3 years ago

2.3.4-beta.1

3 years ago

2.3.2

3 years ago

2.3.2-beta.2

3 years ago

2.3.3

3 years ago

2.3.3-beta.1

3 years ago

2.3.2-beta.1

3 years ago

2.3.1

3 years ago

2.3.0

3 years ago

2.3.0-beta.2

3 years ago

2.3.0-beta.1

3 years ago

2.2.0-beta.1

3 years ago

2.2.0

3 years ago

2.1.1-3

3 years ago

2.1.1-2

3 years ago

2.1.1-1

3 years ago

2.1.1-0

3 years ago

2.1.0

3 years ago

2.1.0-beta.1

3 years ago

2.1.0-0

3 years ago

2.0.3

3 years ago

2.0.3-beta.2

3 years ago

2.0.3-beta.1

3 years ago

2.0.2

3 years ago

2.0.2-0

3 years ago

2.0.1

3 years ago

1.0.3-beta.4

3 years ago

2.0.1-0

3 years ago

2.0.0

3 years ago

1.0.3-beta.3

3 years ago

1.0.3-beta.2

3 years ago

1.0.3-beta.1

3 years ago

1.0.3-0

3 years ago

1.0.2

3 years ago

1.0.2-beta.5

3 years ago

1.0.2-beta.4

3 years ago

1.0.2-beta.3

3 years ago

1.0.2-beta.2

3 years ago

1.0.2-beta.1

3 years ago

1.0.1

3 years ago

1.0.1-0

3 years ago

1.0.0

3 years ago

1.0.0-1

3 years ago

1.0.0-0

3 years ago