Skip to content

Commit 62cd801

Browse files
authored
chore(version bump and guess test): bump the version, and add a guess test (#241)
1 parent 78c0d61 commit 62cd801

9 files changed

Lines changed: 46 additions & 122 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,4 @@ scully/bin
5050
projects/sampleBlog/src/assets/scully-routes.json
5151
scully/node_modules
5252
scully/.vscode/settings.json
53+
gp.js

angular.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"build": {
1414
"builder": "@angular-devkit/build-angular:browser",
1515
"options": {
16+
"extractCss": true,
1617
"outputPath": "dist/sampleBlog",
1718
"index": "projects/sampleBlog/src/index.html",
1819
"main": "projects/sampleBlog/src/main.ts",

gp.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import {parseAngularRoutes} from 'guess-parser';
2+
import {join} from 'path';
3+
4+
const folder = join(__dirname, './src/app');
5+
6+
const r = parseAngularRoutes(folder).map(r => r.path);
7+
8+
console.table(r);

package-lock.json

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

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"commit:select": "npx git-cz",
1818
"build-bazel": "bazel build //...",
1919
"test-bazel": "bazel test //...",
20+
"gp": "npx tsc gp && node gp",
2021
"compile-scully-watch": "ibazel build //scully:compile"
2122
},
2223
"private": true,
@@ -65,7 +66,7 @@
6566
"express": "^4.17.1",
6667
"front-matter": "^3.0.2",
6768
"fs-extra": "^8.1.0",
68-
"guess-parser": "^0.4.13",
69+
"guess-parser": "^0.4.14",
6970
"husky": "^4.0.0-beta.5",
7071
"jasmine-core": "~3.5.0",
7172
"jasmine-spec-reporter": "~4.2.1",
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"workbench.colorCustomizations": {
3+
"activityBar.background": "#352cea",
4+
"activityBar.activeBorder": "#3a0806",
5+
"activityBar.foreground": "#e7e7e7",
6+
"activityBar.inactiveForeground": "#e7e7e799",
7+
"activityBarBadge.background": "#3a0806",
8+
"activityBarBadge.foreground": "#e7e7e7",
9+
"statusBar.background": "#1d15ce",
10+
"statusBarItem.hoverBackground": "#352cea",
11+
"statusBar.foreground": "#e7e7e7"
12+
},
13+
"peacock.color": "#1d15ce"
14+
}

scully.config.js

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

scully.sampleBlog.config.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ exports.config = {
99
/** outDir is where the static distribution files end up */
1010
outDir: './dist/static',
1111
// hostName: '0.0.0.0',
12-
extraRoutes: [''],
12+
extraRoutes: ['', '/user/:userId/post/:postId'],
1313
routes: {
1414
'/demo/:id': {
1515
type: 'extra',
@@ -34,6 +34,21 @@ exports.config = {
3434
property: 'id',
3535
},
3636
},
37+
'/user/:userId/post/:postId': {
38+
// Type is mandatory
39+
type: 'json',
40+
/**
41+
* Every parameter in the route must exist here
42+
*/
43+
userId: {
44+
url: 'https://jsonplaceholder.typicode.com/users',
45+
property: 'id',
46+
},
47+
postId: {
48+
url: 'https://jsonplaceholder.typicode.com/posts?userId=${userId}',
49+
property: 'id',
50+
},
51+
},
3752
'/nouser/:userId/:friendCode': {
3853
// Type is mandatory
3954
type: 'json',

scully/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@scullyio/scully",
3-
"version": "0.0.61",
3+
"version": "0.0.62",
44
"description": "Scully CLI",
55
"repository": {
66
"type": "GIT",

0 commit comments

Comments
 (0)