Skip to content

Commit

Permalink
feat: library now publishes to UMD format (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmichalina committed Oct 5, 2018
1 parent b3768da commit ec8a8f9
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 42 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -139,4 +139,5 @@ fabric.properties
# *.ipr

# Sonarlint plugin
.idea/sonarlint
.idea/sonarlint
.tmp
3 changes: 0 additions & 3 deletions circle.yml
Expand Up @@ -47,9 +47,6 @@ jobs:
- run:
name: Build
command: npm run build
- run:
name: Build.System
command: npm run build.system
- run:
name: Semantic Release
command: node_modules/.bin/semantic-release
Expand Down
16 changes: 16 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Expand Up @@ -21,10 +21,10 @@
"scripts": {
"test": "jest",
"test.watch": "jest --watch",
"build": "tsc",
"build.system": "tsc -p tsconfig.system.json && uglifyjs dist/packages/system/index.js -o dist/packages/system/index.min.js --source-map",
"build": "tsc && npm run rollup && uglifyjs dist/index.js -o dist/index.min.js --source-map",
"dist": "ts-node ./scripts/publish-prep.ts",
"lint": "tslint --project tsconfig.json --config tslint.json"
"lint": "tslint --project tsconfig.json --config tslint.json",
"rollup": "rollup dist/index.js --file dist/index.js -m --format umd --name \"typescript-monads\""
},
"release": {
"pkgRoot": "dist"
Expand All @@ -35,6 +35,7 @@
"codecov": "^3.1.0",
"jest": "23.6.0",
"jest-junit": "^5.2.0",
"rollup": "^0.66.4",
"semantic-release": "^15.9.17",
"ts-jest": "23.10.3",
"ts-node": "^7.0.1",
Expand Down
5 changes: 3 additions & 2 deletions tsconfig.json
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"module": "es2015",
"moduleResolution": "node",
"lib": ["es2015", "dom"],
"outDir": "dist",
Expand All @@ -21,7 +21,8 @@
"strictNullChecks": true,
"strictFunctionTypes": true,
"forceConsistentCasingInFileNames": true,
"declaration": true
"declaration": true,
"sourceMap": true
},
"include": [
"src/**/*.ts"
Expand Down
33 changes: 0 additions & 33 deletions tsconfig.system.json

This file was deleted.

0 comments on commit ec8a8f9

Please sign in to comment.