Skip to content

Commit

Permalink
feat: build ts with inline sources map
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Sep 10, 2019
1 parent 2e8336d commit afa78f4
Show file tree
Hide file tree
Showing 7 changed files with 201 additions and 134 deletions.
5 changes: 1 addition & 4 deletions .remarkrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"plugins": [
"preset-lint-consistent",
"preset-lint-markdown-style-guide",
"preset-lint-recommended",
"preset-prettier"
"@1stg/remark-config"
]
}
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ script:
- yarn test

after_success:
- yarn global add codecov
- yarn global add codecov codacy-coverage
- codecov
- cat ./coverage/lcov.info | codacy-coverage

deploy:
provider: script
Expand All @@ -29,6 +30,5 @@ deploy:
branch: master

after_script:
- yarn add -D @codechecks/client @codechecks/build-size-watcher @codechecks/type-coverage-watcher codacy-coverage
- yarn add -D @codechecks/client @codechecks/build-size-watcher @codechecks/type-coverage-watcher
- yarn codechecks
- cat ./coverage/lcov.info | yarn codacy-coverage
1 change: 1 addition & 0 deletions browserslist
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extends @1stg/browserslist-config/latest
28 changes: 17 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,45 @@
{
"name": "umd-globals",
"version": "0.2.0",
"version": "0.3.0",
"description": "Union collections of umd globals mappings.",
"repository": "git@github.com:JounQin/umd-globals.git",
"author": "JounQin <admin@1stg.me>",
"license": "MIT",
"main": "lib/cjs",
"module": "lib/es",
"fesm5": "lib/esm",
"es2015": "lib/es2015",
"unpkg": "lib/umd",
"jsdelivr": "lib/umd",
"types": "lib/types",
"files": [
"lib"
"lib",
"src/index.ts"
],
"scripts": {
"build:ts": "tsc -p src",
"build:bundle": "rollup -c node_modules/@1stg/rollup-config/module.js",
"build:bundle:min": "cross-env NODE_ENV=production yarn build:bundle",
"build": "run-p build:**",
"build": "rimraf lib && run-p build:**",
"lint": "EFF_NO_LINK_RULES=true eslint . --ext js,md,ts -f friendly",
"test": "jest",
"prepublishOnly": "yarn build --force",
"type-coverage": "type-coverage --cache --detail --ignore-files *.d.ts --strict"
},
"devDependencies": {
"@1stg/babel-preset": "^0.6.0",
"@1stg/eslint-config": "^0.6.0",
"@1stg/browserslist-config": "^0.2.1",
"@1stg/eslint-config": "^0.9.2",
"@1stg/husky-config": "^0.3.0",
"@1stg/lint-staged": "^0.6.0",
"@1stg/prettier-config": "^0.2.0",
"@1stg/remark-config": "^0.2.1",
"@1stg/rollup-config": "^0.8.0",
"@1stg/tsconfig": "^0.5.0",
"@babel/core": "^7.6.0",
"@commitlint/cli": "^8.1.0",
"@commitlint/config-conventional": "^8.1.0",
"@types/jest": "^24.0.18",
"browserslist": "^4.7.0",
"cross-env": "^5.2.1",
"eslint": "^6.3.0",
"eslint-formatter-friendly": "^7.0.0",
Expand All @@ -38,15 +48,11 @@
"lint-staged": "^9.2.5",
"npm-run-all": "^4.1.5",
"prettier": "^1.18.2",
"remark-preset-lint-consistent": "^2.0.3",
"remark-preset-lint-markdown-style-guide": "^2.1.3",
"remark-preset-lint-recommended": "^3.0.3",
"remark-preset-prettier": "^0.2.0",
"rimraf": "^3.0.0",
"rollup": "^1.21.2",
"ts-jest": "^24.0.2",
"type-coverage": "^2.2.0",
"typescript": "^3.6.2",
"umd-globals": "link:."
"typescript": "^3.6.2"
},
"typeCoverage": {
"atLeast": 100
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const getGlobals = ({
asIsPkgs?: string[]
upperCamelCasePkgs?: string[]
globals?: StringMap
} = {}) => {
} = {}): StringMap => {
return {
...GLOBALS,
...AS_IS_PKGS.reduce(asIsReducer, {}),
Expand Down
1 change: 1 addition & 0 deletions src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "../tsconfig.json",
"compilerOptions": {
"declarationDir": "../lib/types",
"inlineSources": true,
"importHelpers": false,
"outDir": "../lib/es"
}
Expand Down
Loading

0 comments on commit afa78f4

Please sign in to comment.