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

aec-loader

v0.1.5

Published

* 简介 > 想必你也不喜欢`ref()`,`.value`... > 如果我猜对了,你一定会喜欢`AE.JS`的 > 它兼具alins的优雅格式,vue的响应式,aguilar的组件化编程,react的JSX模板 > 语法和springboot的声明结构 > 原生支持路由 > 自带ajax库 * 快速上手 > 目前AE.JS只上传到了npm仓库 > 使用cli工具: > `npm install -g aec-cli`

Downloads

6

Readme

#AE.JS-极致优雅的前端框架

  • 简介

    想必你也不喜欢ref(),.value...
    如果我猜对了,你一定会喜欢AE.JS
    它兼具alins的优雅格式,vue的响应式,aguilar的组件化编程,react的JSX模板 语法和springboot的声明结构
    原生支持路由
    自带ajax库

  • 快速上手

    目前AE.JS只上传到了npm仓库
    使用cli工具:
    npm install -g aec-cli
    ae cli create
    由于技术问题,可能创建失败

  • 语法

    AE.JS使用JSX描述界面
    一个计数器的实例

    const name='组件名'
    var count=0
    function counts(){
        count++
    }
    <button onclick="count()">{{count}}</button>

    之后只需要通过如下方法注册到AE.JS中

    import Ae from 'aets'
    import 组件名 from '你的组件.jsx'
    var app=new Ae.core.AE()
    app.addComponent(组件名,路径)
    app.start(端口)
  • jsx编译产物

    计数器实例的编译产物

    import Ae from 'aets'
    var count=Ae.core.ref(0)
    function counts(){
        count.value++
    }
    var $='<button onclick="count()">{{count}}</button>'
    export default {
        name: '组件名',
        data:{
            count: ref(0),
            counts: ()=>{
                count.value++
            }
        },
        $: $
    }
  • 优点

    快、集众家之所长、去众家之所短、写法优雅、集成ajax和路由

  • 缺点

    由学生制作、更新较慢、无法及时修复BUG ###实现原理

  • 如何解析jsx

    通过webpack loader实现, 在用户import jsx文件时,loader这些文件, loader首先会获取文件的代码, 获取jsx中的html标签。 ###如何搭建本地服务器