-
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
20 changed files
with
121 additions
and
173 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
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,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
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-is-promise'); | ||
|
||
describe('api.basic test', () => { | ||
test('nx.isPromise', function() { | ||
const obj1 = { name: 'fei' }; | ||
const obj2 = { email: '1290657123@qq.com' }; | ||
const result = {}; | ||
nx.isPromise(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 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
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
/*! | ||
* name: next-is-promise | ||
* url: https://github.com/afeiship/next-is-promise | ||
* name: @feizheng/next-is-promise | ||
* description: Test whether an object looks like a promises-a+ promise. | ||
* homepage: https://github.com/afeiship/next-is-promise | ||
* version: 1.0.0 | ||
* date: 2020-05-06T00:25:49.825Z | ||
* license: MIT | ||
*/ | ||
!function(){var e=e||this||window||Function("return this")(),o=e.nx||require("next-js-core2");o.isPromise=function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof obj.then},"undefined"!=typeof module&&module.exports&&(module.exports=o.isPromise)}(); | ||
!function(){var e=e||this||window||Function("return this")(),o=e.nx||require("@feizheng/next-js-core2"),n="function";o.isPromise=function(e){return!!e&&("object"==typeof e||typeof e==n)&&typeof obj.then==n},"undefined"!=typeof module&&module.exports&&(module.exports=o.isPromise)}(); |
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
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.