Skip to content

Commit ec8a8f9

Browse files
feat: library now publishes to UMD format (#27)
1 parent b3768da commit ec8a8f9

File tree

6 files changed

+25
-42
lines changed

6 files changed

+25
-42
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,5 @@ fabric.properties
139139
# *.ipr
140140

141141
# Sonarlint plugin
142-
.idea/sonarlint
142+
.idea/sonarlint
143+
.tmp

circle.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ jobs:
4747
- run:
4848
name: Build
4949
command: npm run build
50-
- run:
51-
name: Build.System
52-
command: npm run build.system
5350
- run:
5451
name: Semantic Release
5552
command: node_modules/.bin/semantic-release

package-lock.json

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
"scripts": {
2222
"test": "jest",
2323
"test.watch": "jest --watch",
24-
"build": "tsc",
25-
"build.system": "tsc -p tsconfig.system.json && uglifyjs dist/packages/system/index.js -o dist/packages/system/index.min.js --source-map",
24+
"build": "tsc && npm run rollup && uglifyjs dist/index.js -o dist/index.min.js --source-map",
2625
"dist": "ts-node ./scripts/publish-prep.ts",
27-
"lint": "tslint --project tsconfig.json --config tslint.json"
26+
"lint": "tslint --project tsconfig.json --config tslint.json",
27+
"rollup": "rollup dist/index.js --file dist/index.js -m --format umd --name \"typescript-monads\""
2828
},
2929
"release": {
3030
"pkgRoot": "dist"
@@ -35,6 +35,7 @@
3535
"codecov": "^3.1.0",
3636
"jest": "23.6.0",
3737
"jest-junit": "^5.2.0",
38+
"rollup": "^0.66.4",
3839
"semantic-release": "^15.9.17",
3940
"ts-jest": "23.10.3",
4041
"ts-node": "^7.0.1",

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"target": "es5",
4-
"module": "commonjs",
4+
"module": "es2015",
55
"moduleResolution": "node",
66
"lib": ["es2015", "dom"],
77
"outDir": "dist",
@@ -21,7 +21,8 @@
2121
"strictNullChecks": true,
2222
"strictFunctionTypes": true,
2323
"forceConsistentCasingInFileNames": true,
24-
"declaration": true
24+
"declaration": true,
25+
"sourceMap": true
2526
},
2627
"include": [
2728
"src/**/*.ts"

tsconfig.system.json

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)