This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
DynamoDBClient, | |
PutItemCommand, | |
GetItemCommand, | |
UpdateItemCommand, | |
DeleteItemCommand, | |
} from '@aws-sdk/client-dynamodb'; | |
import { | |
marshall, | |
unmarshall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path'); | |
const slsw = require('serverless-webpack'); | |
module.exports = { | |
mode: slsw.lib.webpack.isLocal ? 'development' : 'production', | |
entry: slsw.lib.entries, | |
stats: 'summary', | |
resolve: { | |
extensions: ['.ts'], | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "esnext", | |
"module": "commonjs", | |
"lib": ["esnext"], | |
"sourceMap": true, | |
"outDir": "lib", | |
"moduleResolution": "node", | |
"removeComments": true, | |
"noImplicitAny": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service: sls-server | |
frameworkVersion: '2' | |
plugins: | |
- serverless-webpack # serverless webpack plugin | |
package: | |
individually: true # to package functions individually. You can toggle this and check the difference webpack generates | |
custom: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
en: { | |
linkGroups: [ | |
{ | |
id: 229, | |
name: 'Electronics', | |
links: [ | |
{ | |
name: 'Desktop Computers', | |
slug: 'desktop-computers', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require("path"); | |
const HtmlWebpackPlugin = require("html-webpack-plugin"); | |
const ModuleFederationPlugin = require("webpack/lib/container/ModuleFederationPlugin"); | |
const dependencies = require("./package.json").dependencies; | |
const PORT = 3001; | |
module.exports = { | |
entry: path.resolve(__dirname, "./src/index.js"), | |
devServer: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"presets": ["@babel/preset-env", ["@babel/preset-react", { | |
"runtime": "automatic" | |
}]] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
"scripts": { | |
"start": "webpack serve --open --mode development", | |
"build": "webpack --mode production", | |
"serve": "serve dist -p 3001", | |
"clean": "rm -rf dist" | |
}, | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require("path"); | |
const HtmlWebpackPlugin = require("html-webpack-plugin"); | |
const PORT = 3001; | |
module.exports = { | |
entry: path.resolve(__dirname, "./src/index.js"), | |
devServer: { | |
contentBase: path.join(__dirname, "dist"), | |
port: PORT, |
OlderNewer