Skip to content

Commit d0ac97a

Browse files
authored
feat(guess-parser): update to latest guess-parser (#244)
Update to the latest guess parser. Make sure the guess paarser uses the tsconfig.app.json. updated packacge versions. couple off small touch-ups
1 parent 81ad5e9 commit d0ac97a

File tree

16 files changed

+101
-4161
lines changed

16 files changed

+101
-4161
lines changed

blog/page-3.md

Lines changed: 1 addition & 872 deletions
Large diffs are not rendered by default.

blog/page-4.adoc

Lines changed: 65 additions & 3226 deletions
Large diffs are not rendered by default.

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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"express": "^4.17.1",
6767
"front-matter": "^3.0.2",
6868
"fs-extra": "^8.1.0",
69-
"guess-parser": "^0.4.14",
69+
"guess-parser": "^0.4.15",
7070
"husky": "^4.0.0-beta.5",
7171
"jasmine-core": "~3.5.0",
7272
"jasmine-spec-reporter": "~4.2.1",

projects/sampleBlog/src/app/user/user-routing.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const routes: Routes = [
1414
children: [
1515
{path: '', component: PostsComponent, pathMatch: 'full'},
1616
{path: 'friend/:friendCode', component: UserComponent},
17-
{path: 'post/:post', component: PostComponent},
17+
{path: 'post/:postId', component: PostComponent},
1818
],
1919
},
2020
];

projects/scullyio/ng-lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@scullyio/ng-lib",
3-
"version": "0.0.14",
3+
"version": "0.0.15",
44
"repository": {
55
"type": "GIT",
66
"url": "https://github.com/scullyio/scully/tree/master/projects/scullyio/ng-lib"

schematics/scully/src/scully/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const createScullyConfig = (options: Schema) => (tree: Tree, context: SchematicC
3434
tree.create(
3535
scullyConfigFile,
3636
`exports.config = {
37-
projectRoot: "./${srcFolder}/app",
37+
projectRoot: "./${srcFolder}",
3838
projectName: "${projectName}",
3939
outDir: './dist/static',
4040
routes: {

schematics/scully/src/scully/index_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe('scully schematic', () => {
4242
expect(appTree.files).toContain(SCULLY_PATH);
4343
const scullyConfFile = getFileContent(appTree, SCULLY_PATH);
4444
expect(scullyConfFile).toEqual(`exports.config = {
45-
projectRoot: "./src/app",
45+
projectRoot: "./src/",
4646
outDir: './dist/static',
4747
routes: {
4848
}

scully.sampleBlog.config.js

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ require('./extraPlugin/tocPlugin');
44
require('./extraPlugin/voidPlugin');
55

66
exports.config = {
7-
/** projectRoot is mandatory! */
8-
projectRoot: './projects/sampleBlog/src/app',
97
/** outDir is where the static distribution files end up */
108
outDir: './dist/static',
119
// hostName: '0.0.0.0',
12-
extraRoutes: ['', '/user/:userId/post/:postId'],
10+
extraRoutes: [''],
1311
routes: {
1412
'/demo/:id': {
1513
type: 'extra',
@@ -49,22 +47,6 @@ exports.config = {
4947
property: 'id',
5048
},
5149
},
52-
'/nouser/:userId/:friendCode': {
53-
// Type is mandatory
54-
type: 'json',
55-
/**
56-
* Every parameter in the route must exist here
57-
*/
58-
userId: {
59-
url: 'https://jsonplaceholder.typicode.com/users',
60-
property: 'id',
61-
},
62-
friendCode: {
63-
/** users are their own friend in this sample ;) */
64-
url: 'https://jsonplaceholder.typicode.com/users?userId=${userId}',
65-
property: 'id',
66-
},
67-
},
6850
'/todos/:todoId': {
6951
// Type is mandatory
7052
type: 'json',
@@ -82,25 +64,6 @@ exports.config = {
8264
},
8365
},
8466
},
85-
'/nouser/:userId/:posts/:comments': {
86-
// Type is mandatory
87-
type: 'json',
88-
/**
89-
* Every parameter in the route must exist here
90-
*/
91-
userId: {
92-
url: 'https://jsonplaceholder.typicode.com/users',
93-
property: 'id',
94-
},
95-
posts: {
96-
url: 'https://jsonplaceholder.typicode.com/posts?userId=${userId}',
97-
property: 'id',
98-
},
99-
comments: {
100-
url: 'https://jsonplaceholder.typicode.com/comments?postId=${posts}',
101-
property: 'id',
102-
},
103-
},
10467
'/blog/:slug': {
10568
type: 'contentFolder',
10669
postRenderers: ['toc'],

scully/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"express": "^4.17.1",
2121
"front-matter": "^3.0.2",
2222
"fs-extra": "^8.1.0",
23-
"guess-parser": "^0.4.13",
23+
"guess-parser": "^0.4.15",
2424
"jsonc": "2.0.0",
2525
"marked": "^0.7.0",
2626
"puppeteer": "^2.0.0",

0 commit comments

Comments
 (0)