@jswork/next

自己维护多年的一个框架,基于 nx 有成百上千个小的 npm 功能包
更新于: 2022-06-13 02:30:14
项目主页: https://github.com/afeiship/next

介绍

1. 很早之前开发的一个框架 

2. 围绕 next 有很多相关的包

3. 工作中,自己的项目中都有应用

node环境

import nx from '@jswork/next';

const MyClass = nx.declare({
  statics:{
    init: function(){
      console.log('hello next!')
    }
  }
})

browser 环境

<script type="text/javascript" src="https://unpkg.com/@jswork/next"></script>
<script type="text/javascript">
(function (nx, global) {
  nx.declare('myApp', {
    statics: {
      init: function () {
        alert('hello next!');
      }
    }
  });
}(nx, nx.GLOBAL));
</script>

开源 CDN 访问

https://unpkg.com/@jswork/next
https://cdn.jsdelivr.net/npm/@jswork/next