Skip to content

Commit 9980f5f

Browse files
authored
Postrenderers addition (#160)
* 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
1 parent 2f6f0a1 commit 9980f5f

17 files changed

Lines changed: 88 additions & 2437 deletions

extraPlugin/extra-plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const {configValidator, routeSplit, registerPlugin} = require('../scully/bin');
1+
const {configValidator, routeSplit, registerPlugin} = require('../dist/scully');
22

33
console.log(__dirname);
44

nodemon.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"restartable": "rs",
3+
"ignore": [
4+
".git",
5+
"./node_modules",
6+
"./projects",
7+
"./scully",
8+
"./blog"
9+
],
10+
"verbose": true,
11+
"execMap": {
12+
"js": "node"
13+
},
14+
"events": {
15+
"restart": "osascript -e 'display notification \"App restarted due to:\n'$FILENAME'\" with title \"nodemon\"'"
16+
},
17+
"watch": [
18+
"dist/scully/"
19+
],
20+
"env": {
21+
"NODE_ENV": "development"
22+
},
23+
"ext": "js"
24+
}

package.json

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,15 @@
44
"scripts": {
55
"ng": "ng",
66
"tsc": "tsc",
7-
"start": "ng serve",
8-
"build": "ng build",
9-
"test": "ng test",
10-
"lint": "ng lint",
11-
"e2e": "ng e2e",
12-
"compile:server_bak": "webpack --config webpack.server.config.js --progress --colors",
13-
"build:ssr_bak": "npm run build:client-and-server-bundles && npm run compile:server",
14-
"serve:ssr_bak": "node dist/server",
15-
"build:client-and-server-bundles_bak": "ng build --prod && ng run sampleBlog:server:production --bundleDependencies all",
16-
"serve:ssr": "node dist/server/main.js",
17-
"build:ssr": "ng build --prod && ng run sampleBlog:server:production",
187
"generate": "tsc -p ./scully/tsconfig.scully.json && node ./scully/bin",
19-
"scully:dev:watch": "tsc -w -p ./scully/tsconfig.scully.json",
20-
"scully:dev:compile": "tsc -p ./scully/tsconfig.scully.json",
21-
"scully:dev:run": "nodemon ./scully/bin/scully.js --ext js",
22-
"scully:serve": "nodemon ./scully/bin/scully.js serve --ext js ",
23-
"scully:dev:all": "ng build @scullyio/ng-lib && ng build && npm run scully:dev:compile && node ./scully/bin/scully",
8+
"scully:dev:watch": "tsc -w -p ./scully/tsconfig.scully.json",
9+
"scully:dev:compile": "tsc -p ./scully/tsconfig.scully.json",
10+
"scully:dev:run": "nodemon ./dist/scully/scully.js --ext js",
11+
"scully:serve": "nodemon ./dist/scully/scully.js serve --ext js ",
12+
"scully:dev:all": "ng build @scullyio/ng-lib && ng build && npm run scully:dev:compile && node ./dist/scully/scully",
13+
"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",
14+
"scully:publish:minor": "tsc -p ./tsconfig.scully.json && npm version minor",
15+
"scully:publish:major": "tsc -p ./tsconfig.scully.json && npm version major",
2416
"commit": "git add . && npx git-cz",
2517
"commit:select": "npx git-cz",
2618
"build-bazel": "bazel build //...",

scully/index.d.ts

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

0 commit comments

Comments
 (0)