Skip to content

Commit

Permalink
feat: 更改名字
Browse files Browse the repository at this point in the history
  • Loading branch information
yanhaijing committed Oct 9, 2018
1 parent 8485231 commit 8a64449
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 27 deletions.
36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# [base](https://github.com/jsmini/base)
# [extend](https://github.com/jsmini/extend)

[![](https://img.shields.io/badge/Powered%20by-jslib%20base-brightgreen.svg)](https://github.com/yanhaijing/jslib-base)
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/jsmini/base/blob/master/LICENSE)
[![Build Status](https://travis-ci.org/jsmini/base.svg?branch=master)](https://travis-ci.org/jsmini/base)
[![npm](https://img.shields.io/badge/npm-0.2.0-orange.svg)](https://www.npmjs.com/package/base)
[![NPM downloads](http://img.shields.io/npm/dm/@jsmini/base.svg?style=flat-square)](http://www.npmtrends.com/@jsmini/base)
[![Percentage of issues still open](http://isitmaintained.com/badge/open/jsmini/base.svg)](http://isitmaintained.com/project/jsmini/base "Percentage of issues still open")
[![](https://img.shields.io/badge/Powered%20by-jslib%20extend-brightgreen.svg)](https://github.com/yanhaijing/jslib-extend)
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/jsmini/extend/blob/master/LICENSE)
[![Build Status](https://travis-ci.org/jsmini/extend.svg?branch=master)](https://travis-ci.org/jsmini/extend)
[![npm](https://img.shields.io/badge/npm-0.2.0-orange.svg)](https://www.npmjs.com/package/extend)
[![NPM downloads](http://img.shields.io/npm/dm/@jsmini/extend.svg?style=flat-square)](http://www.npmtrends.com/@jsmini/extend)
[![Percentage of issues still open](http://isitmaintained.com/badge/open/jsmini/extend.svg)](http://isitmaintained.com/project/jsmini/extend "Percentage of issues still open")

最好用的js第三方库脚手架,fork或clone本仓库,即可搭建完成一个新库的基础框架

Expand Down Expand Up @@ -52,41 +52,41 @@
通过npm下载安装代码

```bash
$ npm install --save @jsmini/base
$ npm install --save @jsmini/extend
```

如果你是node环境

```js
var name = require('@jsmini/base').name;
var name = require('@jsmini/extend').name;
```

如果你是webpack等环境

```js
import { name } from '@jsmini/base';
import { name } from '@jsmini/extend';
```

如果你是requirejs环境

```js
requirejs(['node_modules/@jsmini/base/dist/index.aio.js'], function (jsmini_base) {
var name = jsmini_base.name;
requirejs(['node_modules/@jsmini/extend/dist/index.aio.js'], function (jsmini_extend) {
var name = jsmini_extend.name;
})
```

如果你是浏览器环境

```html
<script src="node_modules/@jsmini/base/dist/index.aio.js"></script>
<script src="node_modules/@jsmini/extend/dist/index.aio.js"></script>

<script>
var name = jsmini_base.name;
var name = jsmini_extend.name;
</script>
```

## 文档
[API](https://github.com/jsmini/base/blob/master/doc/api.md)
[API](https://github.com/jsmini/extend/blob/master/doc/api.md)

## 贡献指南
首次运行需要先安装依赖
Expand Down Expand Up @@ -131,13 +131,13 @@ $ npm run rename # 重命名命令
```

## 贡献者列表
[contributors](https://github.com/jsmini/base/graphs/contributors)
[contributors](https://github.com/jsmini/extend/graphs/contributors)

## 更新日志
[CHANGELOG.md](https://github.com/jsmini/base/blob/master/CHANGELOG.md)
[CHANGELOG.md](https://github.com/jsmini/extend/blob/master/CHANGELOG.md)

## 计划列表
[TODO.md](https://github.com/jsmini/base/blob/master/TODO.md)
[TODO.md](https://github.com/jsmini/extend/blob/master/TODO.md)

## 谁在使用

Expand Down
8 changes: 4 additions & 4 deletions config/rollup.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
var pkg = require('../package.json');

// 兼容 base 和 @jsmini/base,@jsmini/base 替换为 jsmini_base
// 兼容 extend 和 @jsmini/extend,@jsmini/extend 替换为 jsmini_extend
var name = pkg.name.replace('@', '').replace(/\//g, '_');
var version = pkg.version;

var banner =
`/*!
* base ${version} (https://github.com/jsmini/base)
* API https://github.com/jsmini/base/blob/master/doc/api.md
* extend ${version} (https://github.com/jsmini/extend)
* API https://github.com/jsmini/extend/blob/master/doc/api.md
* Copyright 2017-${(new Date).getFullYear()} jsmini. All Rights Reserved
* Licensed under MIT (https://github.com/jsmini/base/blob/master/LICENSE)
* Licensed under MIT (https://github.com/jsmini/extend/blob/master/LICENSE)
*/
`;

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@jsmini/base",
"name": "@jsmini/extend",
"version": "0.2.0",
"description": "最好用的js第三方库脚手架",
"main": "dist/index.js",
Expand All @@ -21,10 +21,10 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/jsmini/base.git"
"url": "git://github.com/jsmini/extend.git"
},
"bugs": {
"url": "https://github.com/jsmini/base/issues"
"url": "https://github.com/jsmini/extend/issues"
},
"devDependencies": {
"babel-core": "6.26.0",
Expand Down
2 changes: 1 addition & 1 deletion rename.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var path = require('path');
var cdkit = require('cdkit')

var fromName = 'base';
var toName = 'yanhajing';
var toName = 'extend';

var curPathName = __dirname.split('/').pop();

Expand Down
2 changes: 1 addition & 1 deletion test/browser/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<script>
var libs = {
'expect.js': expect,
'../dist/index.js': jslib_base
'../dist/index.js': jslib_extend
};
var require = function(path) {
return libs[path];
Expand Down

0 comments on commit 8a64449

Please sign in to comment.