Skip to content

Commit

Permalink
chore(config):minor changes to configuration
Browse files Browse the repository at this point in the history
- may still need to finish configuration of HMR
  • Loading branch information
Jason Hodges committed Aug 29, 2017
1 parent ffb7270 commit bfb7af2
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 20 deletions.
7 changes: 0 additions & 7 deletions config/dir-parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ fs.readdir(pathSupplied, function (err, items) {
file = pathSupplied + '/' + item;
fileContent = fs.readFileSync(file, 'utf8');
content = fm(fileContent);
console.log('*** content ***\n', content);
body = content.body;
attributes = content.attributes;
title = attributes.title;
Expand All @@ -46,12 +45,6 @@ fs.readdir(pathSupplied, function (err, items) {
return {
post: content
};
// return {
// file: file,
// title: title,
// description: description,
// body: body
// };
});

opener += JSON.stringify(posts);
Expand Down
1 change: 0 additions & 1 deletion config/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ module.exports = {
},

plugins: [

// Workaround for angular/angular#11580
new webpack.ContextReplacementPlugin(
// The (\\|\/) piece accounts for path separators in *nix and Windows
Expand Down
28 changes: 16 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,26 @@
"author": "Jason Hodges <[email protected]>",
"license": "MIT",
"scripts": {
"test:once": "karma start karma.conf.js --single-run",
"build": "rimraf dist && webpack --config config/webpack.prod.js --bail",
"serve": "lite-server -c=bs-config.json",
"prestart": "npm run build",
"start": "webpack-dev-server --inline --progress --port 8080",
"pretest": "npm run build",
"test": "karma start karma.webpack.conf.js",
"pretest:once": "npm run build",
"build:watch": "tsc -p src/ -w",
"build:upgrade": "tsc",
"serve:upgrade": "http-server",
"build:aot": "ngc -p tsconfig-aot.json && rollup -c rollup-config.js",
"serve:aot": "lite-server -c bs-config.aot.json",
"build:babel": "babel src -d src --extensions \".es6\" --source-maps",
"build:upgrade": "tsc",
"build:watch": "tsc -p src/ -w",
"commit": "git-cz",
"copy-dist-files": "node ./copy-dist-files.js",
"e2e": "ng e2e",
"i18n": "ng-xi18n",
"lint": "tslint ./src/**/*.ts -t verbose",
"ng": "ng",
"e2e": "ng e2e"
"prestart": "npm run build",
"pretest": "npm run build",
"pretest:once": "npm run build",
"serve": "lite-server -c=bs-config.json",
"serve:aot": "lite-server -c bs-config.aot.json",
"serve:upgrade": "http-server",
"start": "webpack-dev-server --inline --progress --port 8080",
"test": "karma start karma.webpack.conf.js",
"test:once": "karma start karma.conf.js --single-run"
},
"keywords": [],
"dependencies": {
Expand All @@ -39,6 +40,8 @@
"@angular/router": "~4.3.1",
"@angular/tsc-wrapped": "~4.3.1",
"@angular/upgrade": "~4.3.1",
"@angularclass/hmr": "^2.1.3",
"@angularclass/hmr-loader": "^3.0.4",
"angular-in-memory-web-api": "~0.3.2",
"core-js": "^2.4.1",
"front-matter": "^2.1.2",
Expand Down Expand Up @@ -75,6 +78,7 @@
"canonical-path": "0.0.2",
"concurrently": "^3.0.0",
"css-loader": "^0.26.1",
"cz-conventional-changelog": "^2.0.0",
"extract-text-webpack-plugin": "2.0.0-beta.5",
"file-loader": "^0.9.0",
"html-loader": "^0.4.3",
Expand Down
43 changes: 43 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,16 @@
dependencies:
tslib "^1.7.1"

"@angularclass/hmr-loader@^3.0.4":
version "3.0.4"
resolved "https://registry.yarnpkg.com/@angularclass/hmr-loader/-/hmr-loader-3.0.4.tgz#3e3a07ba835650c9015629b8e187fe8dcd5527b8"
dependencies:
loader-utils "^1.1.0"

"@angularclass/hmr@^2.1.3":
version "2.1.3"
resolved "https://registry.yarnpkg.com/@angularclass/hmr/-/hmr-2.1.3.tgz#34e658ed3da37f23b0a200e2da5a89be92bb209f"

"@ngtools/[email protected]":
version "1.1.0"
resolved "https://registry.yarnpkg.com/@ngtools/json-schema/-/json-schema-1.1.0.tgz#c3a0c544d62392acc2813a42c8a0dc6f58f86922"
Expand Down Expand Up @@ -1748,6 +1758,10 @@ content-type@~1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.2.tgz#b7d113aee7a8dd27bd21133c4dc2529df1721eed"

conventional-commit-types@^2.0.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/conventional-commit-types/-/conventional-commit-types-2.2.0.tgz#5db95739d6c212acbe7b6f656a11b940baa68946"

convert-source-map@^1.1.0, convert-source-map@^1.1.1, convert-source-map@^1.3.0:
version "1.5.0"
resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.0.tgz#9acd70851c6d5dfdd93d9282e5edf94a03ff46b5"
Expand Down Expand Up @@ -1972,6 +1986,17 @@ custom-event@~1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/custom-event/-/custom-event-1.0.1.tgz#5d02a46850adf1b4a317946a3928fccb5bfd0425"

cz-conventional-changelog@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/cz-conventional-changelog/-/cz-conventional-changelog-2.0.0.tgz#55a979afdfe95e7024879d2a0f5924630170b533"
dependencies:
conventional-commit-types "^2.0.0"
lodash.map "^4.5.1"
longest "^1.0.1"
pad-right "^0.2.2"
right-pad "^1.0.1"
word-wrap "^1.0.3"

dashdash@^1.12.0:
version "1.14.1"
resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0"
Expand Down Expand Up @@ -4005,6 +4030,10 @@ lodash.isfinite@^3.3.2:
version "3.3.2"
resolved "https://registry.yarnpkg.com/lodash.isfinite/-/lodash.isfinite-3.3.2.tgz#fb89b65a9a80281833f0b7478b3a5104f898ebb3"

lodash.map@^4.5.1:
version "4.6.0"
resolved "https://registry.yarnpkg.com/lodash.map/-/lodash.map-4.6.0.tgz#771ec7839e3473d9c4cde28b19394c3562f4f6d3"

lodash.memoize@^4.1.2:
version "4.1.2"
resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe"
Expand Down Expand Up @@ -4679,6 +4708,12 @@ output-file-sync@^1.1.0:
mkdirp "^0.5.1"
object-assign "^4.1.0"

pad-right@^0.2.2:
version "0.2.2"
resolved "https://registry.yarnpkg.com/pad-right/-/pad-right-0.2.2.tgz#6fbc924045d244f2a2a244503060d3bfc6009774"
dependencies:
repeat-string "^1.5.2"

pako@~0.2.0:
version "0.2.9"
resolved "https://registry.yarnpkg.com/pako/-/pako-0.2.9.tgz#f3f7522f4ef782348da8161bad9ecfd51bf83a75"
Expand Down Expand Up @@ -5632,6 +5667,10 @@ right-align@^0.1.1:
dependencies:
align-text "^0.1.1"

right-pad@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/right-pad/-/right-pad-1.0.1.tgz#8ca08c2cbb5b55e74dafa96bf7fd1a27d568c8d0"

rimraf@2, rimraf@^2.2.8, rimraf@^2.5.1, rimraf@^2.5.2, rimraf@^2.5.4, rimraf@^2.6.0, rimraf@^2.6.1:
version "2.6.1"
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.1.tgz#c2338ec643df7a1b7fe5c54fa86f57428a55f33d"
Expand Down Expand Up @@ -7121,6 +7160,10 @@ window-size@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.2.0.tgz#b4315bb4214a3d7058ebeee892e13fa24d98b075"

word-wrap@^1.0.3:
version "1.2.3"
resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c"

[email protected], wordwrap@~0.0.2:
version "0.0.2"
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f"
Expand Down

0 comments on commit bfb7af2

Please sign in to comment.