Skip to content
This repository has been archived by the owner on Jul 23, 2023. It is now read-only.

Commit

Permalink
feat: added support for next 9 (#88)
Browse files Browse the repository at this point in the history
* Support for next 9

* Fixed test for next 9 support

* removed compat layer from the equation

* fix: types

* Fixed integration testing

* [fix] added opt-in server side rendering

* [fix] require module

* [fix] remove square brakets from lambda names

* fix: regex for clean up lambda name

* fix: paths for lambdas

* fix: test

* fix: windows paths

* fix: removed windows from the pipeline
  • Loading branch information
ematipico authored Oct 2, 2019
1 parent 75214e5 commit ee0a1b7
Show file tree
Hide file tree
Showing 33 changed files with 2,804 additions and 1,320 deletions.
9 changes: 2 additions & 7 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@
"node": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:node/recommended",
"plugin:unicorn/recommended",
"prettier",
"prettier/unicorn"
],
"extends": ["eslint:recommended", "plugin:node/recommended", "plugin:unicorn/recommended", "prettier", "prettier/unicorn"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
Expand All @@ -22,6 +16,7 @@
},
"rules": {
"unicorn/filename-case": ["error", { "case": "camelCase" }],
"unicorn/prevent-abbreviations": "off",
"prettier/prettier": "error",
"indent": ["error", "tab"],
"unicorn/no-process-exit": "off",
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,5 @@ typings/

# dotenv environment variables file
.env

.idea/
27 changes: 0 additions & 27 deletions azure-pipelines-windows.yml

This file was deleted.

5 changes: 0 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,3 @@ jobs:
parameters:
jobName: Linux
vmImage: ubuntu-16.04

- template: azure-pipelines-windows.yml
parameters:
jobName: Windows
vmImage: vs2017-win2016
1 change: 0 additions & 1 deletion integration/app/build.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// eslint-disable-next-line node/no-unpublished-require
const generateResources = require("../../src");
const routes = require("./routes");
generateResources(
Expand Down
11 changes: 11 additions & 0 deletions integration/app/pages/[pageId]/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from "react";

export default function BlogPage() {
return <h1>Blog post page</h1>;
}

BlogPage.getInitialProps = function() {
return {
name: "foo"
};
};
6 changes: 6 additions & 0 deletions integration/app/pages/about-us/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@ import React from "react";
export default function AboutUs() {
return <h1>Contacts page</h1>;
}

AboutUs.getInitialProps = function() {
return {
name: "foo"
};
};
6 changes: 6 additions & 0 deletions integration/app/pages/blogPost.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@ import React from "react";
export default function BlogPost() {
return <h1>Blog post page</h1>;
}

BlogPost.getInitialProps = function() {
return {
name: "foo"
};
};
6 changes: 6 additions & 0 deletions integration/app/pages/contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@ import React from "react";
export default function Contacts() {
return <h1>Contacts page</h1>;
}

Contacts.getInitialProps = function() {
return {
name: "foo"
};
};
6 changes: 6 additions & 0 deletions integration/app/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@ import React from "react";
export default function Index() {
return <h1>Index page</h1>;
}

Index.getInitialProps = function() {
return {
name: "foo"
};
};
Loading

0 comments on commit ee0a1b7

Please sign in to comment.