Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: v2 of the closure serializer #17

Draft
wants to merge 23 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .npmignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion .projenrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ const project = new typescript.TypeScriptProject({
"semver",
"ts-node",
"upath",
"uuid",
"immutable",
] /* Runtime dependencies of this module. */,
description:
"A fork of the nodejs closure serializer in @pulumi/pulumi" /* The description is just a string that helps people understand the purpose of the package. */,
Expand All @@ -36,11 +38,14 @@ const project = new typescript.TypeScriptProject({
"@types/normalize-package-data",
"@types/read-package-tree",
"@types/semver",
"@types/uuid",
"@typescript-eslint/eslint-plugin",
"@typescript-eslint/parser",
"eslint",
"aws-serverless-express",
"eslint-plugin-header",
"eslint-plugin-import",
"eslint",
"express",
"mockpackage@file:test/mockpackage",
] /* Build dependencies for this module. */,
peerDeps: ["typescript"],
Expand Down Expand Up @@ -76,6 +81,11 @@ const project = new typescript.TypeScriptProject({
prettier: true,
prettierOptions: {},
});
project.package.addField("gypfile", true);
project.addGitIgnore("/test-generated-closures/");
project.addGitIgnore("/build");
project.addPackageIgnore("/build/");
project.addPackageIgnore("!/native/");

new GitHooksPreCommitComponent(project);

Expand Down
17 changes: 17 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/t.js"
}
]
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ However, Pulumi's serializer had a few short comings:
* Change: `serialize` function support replacement of runtime data to be serialized on top of avoiding serialization
* Change: [Do not serialize functions and constructors that are not invoked](https://github.com/functionless/nodejs-closure-serializer/pull/8)
* Change: Anonymous functions can be injected at runtime through the serialize callback.
* Change: Allow for TypeScript TransformerFactory functions to be applied to serialized closures.

## Forked from

Expand Down
8 changes: 7 additions & 1 deletion package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

89 changes: 0 additions & 89 deletions src/asset/archive.ts

This file was deleted.

93 changes: 0 additions & 93 deletions src/asset/asset.ts

This file was deleted.

16 changes: 0 additions & 16 deletions src/asset/index.ts

This file was deleted.

Loading