Skip to content

Commit

Permalink
chore: jswork scope
Browse files Browse the repository at this point in the history
  • Loading branch information
afeiship committed Nov 20, 2020
1 parent 59b8838 commit a5cdf64
Show file tree
Hide file tree
Showing 15 changed files with 67 additions and 87 deletions.
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ LICENSE.txt
Rakefile
express.js
.vscode
.release-it.json


# vscode localhistory
.history
.release-it.json
17 changes: 17 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"git": {
"requireCleanWorkingDir": false
},
"hooks": {
"after:init": [
"npm run test",
"t2k"
],
"after:bump": [
"npm run build"
]
},
"github": {
"release": true
}
}
5 changes: 0 additions & 5 deletions Gemfile

This file was deleted.

16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,27 @@

## installation
```bash
npm install -S @feizheng/next-const-adjective
npm install -S @jswork/next-const-adjective
```

## usage
```js
import '@feizheng/next-const-adjective';
import '@jswork/next-const-adjective';

const adjs = nx.onstAdjective; // ['xxx','yy'];
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-const-adjective/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@feizheng/next-const-adjective
[version-url]: https://npmjs.org/package/@feizheng/next-const-adjective
[version-image]: https://img.shields.io/npm/v/@jswork/next-const-adjective
[version-url]: https://npmjs.org/package/@jswork/next-const-adjective

[license-image]: https://img.shields.io/npm/l/@feizheng/next-const-adjective
[license-image]: https://img.shields.io/npm/l/@jswork/next-const-adjective
[license-url]: https://github.com/afeiship/next-const-adjective/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@feizheng/next-const-adjective
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-const-adjective
[size-url]: https://github.com/afeiship/next-const-adjective/blob/master/dist/next-const-adjective.min.js

[download-image]: https://img.shields.io/npm/dm/@feizheng/next-const-adjective
[download-url]: https://www.npmjs.com/package/@feizheng/next-const-adjective
[download-image]: https://img.shields.io/npm/dm/@jswork/next-const-adjective
[download-url]: https://www.npmjs.com/package/@jswork/next-const-adjective
4 changes: 0 additions & 4 deletions Rakefile

This file was deleted.

12 changes: 0 additions & 12 deletions __tests__/api.spec.js

This file was deleted.

16 changes: 0 additions & 16 deletions __tests__/index.html

This file was deleted.

11 changes: 11 additions & 0 deletions __tests__/index.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
(function () {
require('../src');

describe('api.basic test', () => {
test('nx.constAdjective', function () {
const obj1 = { name: 'fei' };
const obj2 = { email: '1290657123@qq.com' };
const result = {};
});
});
})();
4 changes: 2 additions & 2 deletions build/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
const gulp = require('gulp');
const saveLicense = require('uglify-save-license');
const $ = require('gulp-load-plugins')({
pattern: ['gulp-*', 'gulp.*', 'del', '@feizheng/gulp-*']
pattern: ['gulp-*', 'gulp.*', 'del', '@jswork/gulp-*']
});

gulp.task('scripts', function() {
return gulp
.src('src/*.js')
.pipe($.feizheng.pkgHeader())
.pipe($.jswork.pkgHeader())
.pipe(gulp.dest('dist'))
.pipe($.size({ title: '[ default size ]:' }))
.pipe($.uglify({ output: { comments: saveLicense } }))
Expand Down
6 changes: 3 additions & 3 deletions dist/next-const-adjective.js → dist/index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/*!
* name: @feizheng/next-const-adjective
* name: @jswork/next-const-adjective
* description: A lot of adjective.
* homepage: https://github.com/afeiship/next-const-adjective
* version: 1.0.0
* date: 2020-09-07T10:26:08.205Z
* date: 2020-11-20 11:10:29
* license: MIT
*/

(function () {
var global = global || this || window || Function('return this')();
var nx = global.nx || require('@feizheng/next-js-core2');
var nx = global.nx || require('@jswork/next');

nx.constAdjective = [
'温柔',
Expand Down
9 changes: 9 additions & 0 deletions dist/index.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions dist/next-const-adjective.min.js

This file was deleted.

13 changes: 0 additions & 13 deletions express.js

This file was deleted.

28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@feizheng/next-const-adjective",
"name": "@jswork/next-const-adjective",
"version": "1.0.0",
"description": "A lot of adjective.",
"homepage": "https://github.com/afeiship/next-const-adjective",
Expand All @@ -10,31 +10,31 @@
"scripts": {
"build": "gulp",
"test": "jest",
"start": "node ./express.js"
"start": "node ./express.js",
"release": "release-it"
},
"main": "dist/next-const-adjective.js",
"main": "dist/index.js",
"license": "MIT",
"devDependencies": {
"@feizheng/gulp-pkg-header": "^1.0.4",
"@feizheng/next-js-core2": "^2.6.0",
"@feizheng/rake-git": "^1.2.1",
"del": "^5.1.0",
"express": "^4.17.1",
"@jswork/gulp-pkg-header": "^1.0.2",
"@jswork/next": "^1.0.2",
"del": "^6.0.0",
"gulp": "^4.0.2",
"gulp-debug": "^4.0.0",
"gulp-header": "^2.0.9",
"gulp-ignore": "^3.0.0",
"gulp-load-plugins": "^2.0.3",
"gulp-load-plugins": "^2.0.5",
"gulp-rename": "^2.0.0",
"gulp-size": "^3.0.0",
"gulp-uglify": "^3.0.2",
"jest": "^26.1.0",
"prettier": "^2.0.5",
"uglify-js": "3.10.0",
"uglify-save-license": "^0.4.1",
"yargs": "^15.4.0"
"jest": "^26.6.3",
"prettier": "^2.1.2",
"release-it": "^14.2.1",
"uglify-js": "3.11.6",
"uglify-save-license": "^0.4.1"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
}
}
2 changes: 1 addition & 1 deletion src/next-const-adjective.js → src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(function () {
var global = global || this || window || Function('return this')();
var nx = global.nx || require('@feizheng/next-js-core2');
var nx = global.nx || require('@jswork/next');

nx.constAdjective = [
'温柔',
Expand Down

0 comments on commit a5cdf64

Please sign in to comment.