Skip to content

Commit

Permalink
init: default-compare-with-symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelovers committed Jun 2, 2022
1 parent 54d1e45 commit 8ae84ea
Show file tree
Hide file tree
Showing 20 changed files with 1,148 additions and 0 deletions.
215 changes: 215 additions & 0 deletions packages/default-compare2/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local

# vercel
.vercel

/.*/
.idea
node_modules
~ci.list.txt
~ci.log.txt
~ci.errors.txt
*.stackdump
*.bak
*.old
package-lock.json
test/**/*.js
test/**/*.d.ts
test/*.js
test/*.d.ts
test/temp*
test/**/*.map
tests/**/*.js
tests/**/*.d.ts
tests/*.js
tests/*.d.ts
tests/temp*
tests/**/*.map
bin/*.d.ts
bin/**/*.d.ts
/packages/*/bin/*.d.ts
/packages/*/test/**/*.js
/packages/*/test/**/*.d.ts
/packages/*/test/*.js
/packages/*/test/*.d.ts
/packages/*/test/temp*
/packages/*/tests/**/*.js
/packages/*/tests/**/*.d.ts
/packages/*/tests/*.js
/packages/*/tests/*.d.ts
/packages/*/tests/temp*

test/**/*.mjs
test/**/*.d.mts
test/*.mjs
test/*.d.mts
test/temp*
test/**/*.map
tests/**/*.mjs
tests/**/*.d.mts
tests/*.mjs
tests/*.d.mts
tests/temp*
tests/**/*.map
bin/*.d.mts
bin/**/*.d.mts
/packages/*/bin/*.d.mts
/packages/*/test/**/*.mjs
/packages/*/test/**/*.d.mts
/packages/*/test/*.mjs
/packages/*/test/*.d.mts
/packages/*/test/temp*
/packages/*/tests/**/*.mjs
/packages/*/tests/**/*.d.mts
/packages/*/tests/*.mjs
/packages/*/tests/*.d.mts
/packages/*/tests/temp*

test/**/*.cjs
test/**/*.d.cts
test/*.cjs
test/*.d.cts
test/temp*
test/**/*.map
tests/**/*.cjs
tests/**/*.d.cts
tests/*.cjs
tests/*.d.cts
tests/temp*
tests/**/*.map
bin/*.d.cts
bin/**/*.d.cts
/packages/*/bin/*.d.cts
/packages/*/test/**/*.cjs
/packages/*/test/**/*.d.cts
/packages/*/test/*.cjs
/packages/*/test/*.d.cts
/packages/*/test/temp*
/packages/*/tests/**/*.cjs
/packages/*/tests/**/*.d.cts
/packages/*/tests/*.cjs
/packages/*/tests/*.d.cts
/packages/*/tests/temp*

/src/**/*.d.ts
/src/**/*.js
/src/**/*.d.cts
/src/**/*.d.mts
/src/**/*.cjs
/src/**/*.mjs

**/node_modules
*.tgz
/tsconfig.json.tpl
/.eslintrc.json.tpl
!tsconfig.json
!.eslintrc.json
yarn-error.log
*.log
.git
yarn.lock
.env.local
.env.*.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
*.vue.js
*.vue.d.ts
*.vue.js.map
vue.config.d.ts
vue.config.js.map
.nyc_output
coverage
/*.tpl
!.forestry
!.vuepress
!.github
!.gitee
!.gitlab
.git

*.tsbuildinfo
tsconfig.esm.json.tpl

.browserslistrc
.nvmrc

/.eslintignore
/package.d.ts
.nycrc
.mocharc.yml
#jest.config.js
node_modules/.cache
.yarn-integrity
jest.config.d.ts
jest.config.js.map
/report.*.json
*.js.map
*.cjs.map
*.mjs.map
*.ts.map
*.cts.map
*.mts.map
/now.json
.nyc_output
.coverage-cache
.reify-cache
*.spec.d.ts
*.spec.js
.nowignore
*/**/.github
!/.github
!npm-shrinkwrap.json
*.stat
.vercel
/test/*.tpl
/*.tpl
/report.json

.opt-in
.opt-out
/gradle
.gradle
/out
/build

/_*/
_snowpack
web_modules
tsc-multi.json.tpl
124 changes: 124 additions & 0 deletions packages/default-compare2/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
/.pnp
.pnp.js
.idea
~ci.list.txt
~ci.log.txt
~ci.errors.txt
*.stackdump
*.bak
*.old
*.log
tsconfig.json
package-lock.json
test
.github
.gitkeep
/.*/
/.*
tests
/~*
__test__
__tests__
node_modules
/node_modules/
**/node_modules/
*.ts
!*.d.ts
/bin/**/*.d.ts
/bin/*.d.ts

!*.d.mts
/bin/**/*.d.mts
/bin/*.d.mts

!*.d.cts
/bin/**/*.d.cts
/bin/*.d.cts

/src/**/*.d.ts
/src/**/*.js
/src/**/*.d.cts
/src/**/*.d.mts
/src/**/*.cjs
/src/**/*.mjs

*.tgz
/tsconfig.json.tpl
yarn-error.log
.git
yarn.lock
.env.local
.env.*.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
*.vue.js
*.vue.d.ts
*.vue.js.map
.nyc_output
coverage
/*.tpl
webpack.config.js
vue.config.js
/jestconfig.json
/tslint.json
.git
webpack.*.config.js
webpack.*.config.d.ts
webpack.*.config.js.map
webpack.*.config.ts
karma.conf.js
/_config.yml
intellij-style-guide.xml
jest.config.js
*.tsbuildinfo
tsconfig.*.json
tsconfig.esm.json.tpl
/package.d.ts
.mocharc.yml
jest.config.js
jest.config.*
/report.*.json
now.json
/Makefile
*.spec.d.ts
*.spec.js
*.spec.ts

*.spec.d.cts
*.spec.cjs
*.spec.cts

*.spec.d.mts
*.spec.mjs
*.spec.mts

*.spec.tsx
__mocks__
__tests__
__snapshots__
*.snap
npm-shrinkwrap.json
/example/
*.stat
.vercel
tsdx.config.js
/report.json

/_*/
_snowpack

/snowpack.config.js
web_modules
cz-adapter

tsc-multi.json.tpl
tsc-multi.json

changelog-option.js
13 changes: 13 additions & 0 deletions packages/default-compare2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# README.md

Basic sort algorithm that has similar behavior to Array.prototype.sort for null and undefined, but also support symbol.

## install

```bash
yarn add default-compare-with-symbol
yarn-tool add default-compare-with-symbol
yt add default-compare-with-symbol
```

- https://github.com/doowb/default-compare
8 changes: 8 additions & 0 deletions packages/default-compare2/dist/index.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

'use strict'

if (typeof process !== 'undefined' && process.env.NODE_ENV === 'production') {
module.exports = require('./index.cjs.production.min.cjs')
} else {
module.exports = require('./index.cjs.development.cjs')
}
Loading

0 comments on commit 8ae84ea

Please sign in to comment.