Skip to content

Commit

Permalink
Postrenderers addition (#160)
Browse files Browse the repository at this point in the history
* refactor(scully dist files): move scully dist files into dist

Due to a flake in typescript, we needed to move the dist files of scully outside of the scully's
source folder

* chore(move to dist cleanup): some small cleanups after moving scully bin into dist

* refactor(outfolder rename to outdir): change to name outDir to be consistem with tsconfig

* feat(postrender): postrender makes it possible to run additional render plugins on a given route
  • Loading branch information
SanderElias authored Jan 8, 2020
1 parent 2f6f0a1 commit 9980f5f
Show file tree
Hide file tree
Showing 17 changed files with 88 additions and 2,437 deletions.
2 changes: 1 addition & 1 deletion extraPlugin/extra-plugin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const {configValidator, routeSplit, registerPlugin} = require('../scully/bin');
const {configValidator, routeSplit, registerPlugin} = require('../dist/scully');

console.log(__dirname);

Expand Down
24 changes: 24 additions & 0 deletions nodemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"restartable": "rs",
"ignore": [
".git",
"./node_modules",
"./projects",
"./scully",
"./blog"
],
"verbose": true,
"execMap": {
"js": "node"
},
"events": {
"restart": "osascript -e 'display notification \"App restarted due to:\n'$FILENAME'\" with title \"nodemon\"'"
},
"watch": [
"dist/scully/"
],
"env": {
"NODE_ENV": "development"
},
"ext": "js"
}
24 changes: 8 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,15 @@
"scripts": {
"ng": "ng",
"tsc": "tsc",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"compile:server_bak": "webpack --config webpack.server.config.js --progress --colors",
"build:ssr_bak": "npm run build:client-and-server-bundles && npm run compile:server",
"serve:ssr_bak": "node dist/server",
"build:client-and-server-bundles_bak": "ng build --prod && ng run sampleBlog:server:production --bundleDependencies all",
"serve:ssr": "node dist/server/main.js",
"build:ssr": "ng build --prod && ng run sampleBlog:server:production",
"generate": "tsc -p ./scully/tsconfig.scully.json && node ./scully/bin",
"scully:dev:watch": "tsc -w -p ./scully/tsconfig.scully.json",
"scully:dev:compile": "tsc -p ./scully/tsconfig.scully.json",
"scully:dev:run": "nodemon ./scully/bin/scully.js --ext js",
"scully:serve": "nodemon ./scully/bin/scully.js serve --ext js ",
"scully:dev:all": "ng build @scullyio/ng-lib && ng build && npm run scully:dev:compile && node ./scully/bin/scully",
"scully:dev:watch": "tsc -w -p ./scully/tsconfig.scully.json",
"scully:dev:compile": "tsc -p ./scully/tsconfig.scully.json",
"scully:dev:run": "nodemon ./dist/scully/scully.js --ext js",
"scully:serve": "nodemon ./dist/scully/scully.js serve --ext js ",
"scully:dev:all": "ng build @scullyio/ng-lib && ng build && npm run scully:dev:compile && node ./dist/scully/scully",
"scully:publish:patch": "cd ./scully && tsc -p ./tsconfig.scully.json && npm version patch && cp ./package.json ../dist/scully && cd ../dist/scully && npm publish --access=public",
"scully:publish:minor": "tsc -p ./tsconfig.scully.json && npm version minor",
"scully:publish:major": "tsc -p ./tsconfig.scully.json && npm version major",
"commit": "git add . && npx git-cz",
"commit:select": "npx git-cz",
"build-bazel": "bazel build //...",
Expand Down
40 changes: 0 additions & 40 deletions scully/index.d.ts

This file was deleted.

Loading

0 comments on commit 9980f5f

Please sign in to comment.