sudokar / nx-serverless Goto Github PK
View Code? Open in Web Editor NEWModern Serverless framework starter template using Nrwl Nx monorepo dev toolkit
Home Page: https://github.com/sudokar/nx-serverless
License: MIT License
Modern Serverless framework starter template using Nrwl Nx monorepo dev toolkit
Home Page: https://github.com/sudokar/nx-serverless
License: MIT License
Command no longer works: nx workspace-generator serverless <STACK_NAME>
Error:
NX Workspace Generators are no longer supported
Instead, Nx now supports executing generators or executors from
local plugins. To run a generator from a local plugin,
use `nx generate` like you would with any other generator.
For more information, see: https://nx.dev/deprecated/workspace-generators
> NX Unable to resolve @nx-serverless-template/workspace-plugin:serverless,test.
Cannot find module '@nx-serverless-template/workspace-plugin/package.json'
Require stack:
- C:\dev\sbg-web\nx-serverless\node_modules\nx\src\utils\package-json.js
- C:\dev\sbg-web\nx-serverless\node_modules\nx\src\utils\package-manager.js
- C:\dev\sbg-web\nx-serverless\node_modules\nx\bin\init-local.js
- C:\dev\sbg-web\nx-serverless\node_modules\nx\bin\nx.js
Pass --verbose to see the stacktrace.
Think this might be due NX deprecating generators in favor of Plugin's
Hello, quick question, is there any way to run serverless offline start
and execute ALL stacks at the same time? or do you need to manually run one by one?
I'm looking a way to use something like your repo but with the avility to run all functions at the same time (as I do currently with the manual setup
Thanks!
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are awaiting their schedule. Click on a checkbox to get an update now.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
@swc/cli
, @swc/core
, @swc/helpers
)@nrwl/tao
, @nx/devkit
, @nx/eslint
, @nx/eslint-plugin
, @nx/jest
, @nx/js
, @nx/node
, @nx/plugin
, @nx/workspace
).github/workflows/codeql-analysis.yml
actions/checkout v4
github/codeql-action v3
github/codeql-action v3
github/codeql-action v3
.github/workflows/main.yml
actions/checkout v4
actions/setup-node v4
package.json
@swc/helpers 0.5.6
tslib 2.6.2
@aws-sdk/types 3.535.0
@jest/transform 29.7.0
@nrwl/tao 18.2.4
@nx/devkit 18.2.4
@nx/eslint 18.2.4
@nx/eslint-plugin 18.2.4
@nx/jest 18.2.4
@nx/js 18.2.4
@nx/node 18.2.4
@nx/plugin 18.2.4
@nx/workspace 18.2.4
@swc-node/register 1.9.0
@swc/cli 0.3.9
@swc/core 1.4.8
@swc/jest 0.2.36
@types/aws-lambda 8.10.137
@types/jest 29.5.12
@types/node 20.12.7
@types/serverless 3.12.22
@typescript-eslint/eslint-plugin 7.7.0
@typescript-eslint/parser 7.7.0
esbuild 0.20.0
eslint 8.57.0
eslint-config-prettier 9.1.0
husky 9.0.11
jest 29.7.0
jest-environment-node 29.7.0
lint-staged 15.2.2
nx-cloud 18.0.0
prettier 3.2.5
serverless 3.38.0
serverless-esbuild 1.52.1
serverless-jest-plugin 0.4.0
serverless-offline 13.3.4
ts-jest 29.1.2
ts-loader 9.5.1
ts-node 10.9.2
typescript 5.4.5
node 20
yarn 4.1.1
tools/workspace-plugin/package.json
.nvmrc
When we try to add new workspace to the project, and don't have yarn installed (we don't use it with my team), we have this error :
/bin/sh: yarn: command not found
node:internal/errors:841
const err = new Error(message);
^
Error: Command failed: yarn --version
/bin/sh: yarn: command not found
at checkExecSyncError (node:child_process:828:11)
at execSync (node:child_process:899:15)
at getPackageManagerVersion (/Users/User/test/nx-serverless-main/node_modules/nx/src/utils/package-manager.js:98:41)
at Object.yarn (/Users/User/test/nx-serverless-main/node_modules/nx/src/utils/package-manager.js:40:33)
at getPackageManagerCommand (/Users/User/test/nx-serverless-main/node_modules/nx/src/utils/package-manager.js:89:36)
at compileToolsDir (/Users/User/test/nx-serverless-main/node_modules/nx/src/command-line/workspace-generators.js:72:64)
at compileTools (/Users/User/test/nx-serverless-main/node_modules/nx/src/command-line/workspace-generators.js:53:5)
at Object.<anonymous> (/Users/User/test/nx-serverless-main/node_modules/nx/src/command-line/workspace-generators.js:26:24)
at Generator.next (<anonymous>) {
status: 127,
signal: null,
output: [
null,
Buffer(0) [Uint8Array] [],
Buffer(33) [Uint8Array] [
47, 98, 105, 110, 47, 115, 104, 58,
32, 121, 97, 114, 110, 58, 32, 99,
111, 109, 109, 97, 110, 100, 32, 110,
111, 116, 32, 102, 111, 117, 110, 100,
10
]
],
pid: 66866,
stdout: Buffer(0) [Uint8Array] [],
stderr: Buffer(33) [Uint8Array] [
47, 98, 105, 110, 47, 115, 104, 58,
32, 121, 97, 114, 110, 58, 32, 99,
111, 109, 109, 97, 110, 100, 32, 110,
111, 116, 32, 102, 111, 117, 110, 100,
10
]
}
NX supports swapping files depending on configuration (i.e. production vs local dev). Any idea how to accomplish this with your pattern?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.