refactored Markdown components to reduce bundle size

This commit is contained in:
Alec Merdler 2017-07-31 12:40:37 -04:00
parent 66e85ec63c
commit 8dc2a99926
16 changed files with 315 additions and 73 deletions

View file

@ -4,13 +4,15 @@
"private": true,
"version": "1.0.0",
"scripts": {
"dev": "./node_modules/.bin/karma start --browsers ChromeHeadless",
"test": "./node_modules/.bin/karma start --single-run --browsers ChromeHeadless",
"test:node": "JASMINE_CONFIG_PATH=static/test/jasmine.json ./node_modules/.bin/jasmine-ts './static/js/**/*.spec.ts'",
"e2e": "./node_modules/.bin/ts-node ./node_modules/.bin/protractor static/test/protractor.conf.ts",
"build": "NODE_ENV=production ./node_modules/.bin/webpack --progress",
"watch": "./node_modules/.bin/webpack --watch",
"lint": "./node_modules/.bin/tslint --type-check -p tsconfig.json -e **/*.spec.ts"
"dev": "karma start --browsers ChromeHeadless",
"test": "karma start --single-run --browsers ChromeHeadless",
"test:node": "JASMINE_CONFIG_PATH=static/test/jasmine.json jasmine-ts './static/js/**/*.spec.ts'",
"e2e": "ts-node protractor static/test/protractor.conf.ts",
"build": "npm run clean && NODE_ENV=production webpack --progress",
"watch": "npm run clean && webpack --watch",
"lint": "tslint --type-check -p tsconfig.json -e **/*.spec.ts",
"analyze": "NODE_ENV=production webpack --profile --json | awk '{if(NR>1)print}' > static/build/stats.json && webpack-bundle-analyzer --mode static -r static/build/report.html static/build/stats.json",
"clean": "rm -f static/build/*"
},
"repository": {
"type": "git",
@ -32,13 +34,13 @@
"d3": "^3.3.3",
"eonasdan-bootstrap-datetimepicker": "^4.17.43",
"file-saver": "^1.3.3",
"highlight.js": "^9.12.0",
"jquery": "1.12.4",
"ng-metadata": "^4.0.1",
"raven-js": "^3.1.0",
"restangular": "^1.2.0",
"rxjs": "^5.0.1",
"showdown": "^1.6.4",
"showdown-highlightjs-extension": "^0.1.2",
"underscore": "^1.5.2",
"urijs": "^1.18.10",
"zeroclipboard": "^2.3.0"
@ -75,6 +77,7 @@
"ts-node": "^3.0.6",
"tslint": "^5.4.3",
"typescript": "^2.2.1",
"webpack": "^2.2"
"webpack": "^2.2",
"webpack-bundle-analyzer": "^2.8.3"
}
}