-
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.
feat(build): only commonjs format files are provided
- Loading branch information
伍程凯
committed
Jul 11, 2018
1 parent
841f1ea
commit 34a0884
Showing
5 changed files
with
36 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,7 @@ | |
"name": "sewing", | ||
"version": "0.0.47", | ||
"description": "A JavaScript utility library in business scenarios", | ||
"main": "libs/index.cjs.js", | ||
"module": "libs/index.es.js", | ||
"unpkg": "libs/index.min.js", | ||
"jsdelivr": "libs/index.min.js", | ||
"types": "dist/index.d.ts", | ||
"main": "libs/index.js", | ||
"files": [ | ||
"dist", | ||
"libs" | ||
|
@@ -16,11 +12,11 @@ | |
"docs:lint": "documentation lint dist/src/**", | ||
"docs:deploy": "npm run docs && cp -r .circleci docs && gh-pages -d docs -t", | ||
"docs": "rm -rf docs/ dist/ && npm run dev && documentation build dist/src/** -f html -o docs", | ||
"build": "rm -rf dist/ libs/ && tsc && bili --format cjs,es,umd,umd-min,iife", | ||
"dev": "tsc", | ||
"build": "rm -rf dist/ libs/ && tsc && bili --format cjs --filename '[name].js'", | ||
"dev": "rm -rf dist/ && tsc", | ||
"test:unit": "jest", | ||
"postversion": "npm run build && npm run docs:deploy", | ||
"postbuild": "cp dist/src/*.d.ts libs" | ||
"postbuild": "cp dist/*.d.ts libs" | ||
}, | ||
"author": "Army-U <[email protected]>", | ||
"homepage": "https://github.com/Army-U/sewing", | ||
|
@@ -48,8 +44,7 @@ | |
}, | ||
"bili": { | ||
"input": [ | ||
"./dist/index.js", | ||
"./dist/src/*.js" | ||
"./dist/*.js" | ||
], | ||
"outDir": "libs/", | ||
"banner": true | ||
|
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,25 @@ | ||
export { default as baseCreateElement } from './internal/baseCreateElement' | ||
export { default as createStyleElement } from './createStyleElement' | ||
export { default as renameObjectKeys } from './renameObjectKeys' | ||
export { default as createSrcElement } from './createSrcElement' | ||
export { default as searchString2Map } from './searchString2Map' | ||
export { default as map2SearchString } from './map2SearchString' | ||
export { default as isEmptyValueObj } from './isEmptyValueObj' | ||
export { default as isEncodedString } from './isEncodedString' | ||
export { default as parseJSONString } from './parseJSONString' | ||
export { default as isEmptyObject } from './isEmptyObject' | ||
export { default as throttleWith } from './throttleWith' | ||
export { default as isPrimitive } from './isPrimitive' | ||
export { default as parseString } from './parseString' | ||
export { default as removeOne } from './removeOne' | ||
export { default as isMobile } from './isMobile' | ||
export { default as debounce } from './debounce' | ||
export { default as throttle } from './throttle' | ||
export { default as isEmpty } from './isEmpty' | ||
export { default as inRange } from './inRange' | ||
export { default as isType } from './isType' | ||
export { default as insert } from './insert' | ||
export { default as isDate } from './isDate' | ||
export { default as clone } from './clone' | ||
export { default as cache } from './cache' | ||
export { default as get } from './get' |
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