-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
150 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,6 @@ package-lock.json | |
.DS_Store | ||
.idea | ||
.vscode | ||
|
||
# vscode localhistory | ||
.history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ | ||
package-lock=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'fileutils' | ||
gem 'sshkit' | ||
gem 'semver' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,34 @@ | ||
# next-const-adjective | ||
> A lot of adjective | ||
> A lot of adjective. | ||
## install: | ||
[![version][version-image]][version-url] | ||
[![license][license-image]][license-url] | ||
[![size][size-image]][size-url] | ||
[![download][download-image]][download-url] | ||
|
||
## installation | ||
```bash | ||
npm install -S afeiship/next-const-adjective --registry=https://registry.npm.taobao.org | ||
npm install -S @feizheng/next-const-adjective | ||
``` | ||
|
||
## usage: | ||
## usage | ||
```js | ||
//DOCS here! | ||
import '@feizheng/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 | ||
|
||
[license-image]: https://img.shields.io/npm/l/@feizheng/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-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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
Dir["./node_modules/@feizheng/rake-*/index.rake"].each do |task| | ||
load task | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const nx = require('@feizheng/next-js-core2'); | ||
require('../src/next-const-adjective'); | ||
|
||
describe('api.basic test', () => { | ||
test('nx.constAdjective', function() { | ||
const obj1 = { name: 'fei' }; | ||
const obj2 = { email: '1290657123@qq.com' }; | ||
const result = {}; | ||
nx.constAdjective(result, obj1, obj2); | ||
expect(result.name, obj1.name).toBe(null); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,21 @@ | ||
(function() { | ||
|
||
'use strict'; | ||
|
||
const gulp = require('gulp'); | ||
const config = require('./config'); | ||
const saveLicense = require('uglify-save-license'); | ||
const $ = require('gulp-load-plugins')({ | ||
pattern: ['gulp-*', 'gulp.*', 'del'] | ||
pattern: ['gulp-*', 'gulp.*', 'del', '@feizheng/gulp-*'] | ||
}); | ||
|
||
gulp.task('scripts', function () { | ||
return gulp.src('src/*.js') | ||
gulp.task('scripts', function() { | ||
return gulp | ||
.src('src/*.js') | ||
.pipe($.feizheng.pkgHeader()) | ||
.pipe(gulp.dest('dist')) | ||
.pipe($.size({title: '[ default size ]:'})) | ||
.pipe($.uglify()) | ||
.pipe($.rename({ | ||
extname: '.min.js' | ||
})) | ||
.pipe($.size({ title: '[ default size ]:' })) | ||
.pipe($.uglify({ output: { comments: saveLicense } })) | ||
.pipe($.rename({ extname: '.min.js' })) | ||
.pipe(gulp.dest('dist')) | ||
.pipe($.size({title: '[ minimize size ]:'})); | ||
.pipe($.size({ title: '[ minimize size ]:' })); | ||
}); | ||
|
||
}()); | ||
})(); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const express = require('express'); | ||
const app = express(); | ||
const portNumber = 3000; | ||
const sourceDir = 'src'; | ||
|
||
app.use(express.static('src')); | ||
app.use(express.static('node_modules')); | ||
app.use(express.static('__tests__')); | ||
|
||
app.listen(portNumber, () => { | ||
console.log(`Express web server started: http://localhost:${portNumber}`); | ||
console.log(`Serving content from /${sourceDir}/`); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// https://jestjs.io/docs/en/configuration | ||
module.exports = { | ||
verbose: true, | ||
testRegex: [/\.spec.js/], | ||
//preset: "jest-puppeteer", | ||
moduleNameMapper: { | ||
'^@/(.*)$': '<rootDir>/src/$1' | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.