Skip to content

Instantly share code, notes, and snippets.

View harshq's full-sized avatar
👋

Harshana Abeyaratne harshq

👋
View GitHub Profile
module.exports = {
en: {
linkGroups: [
{
id: 229,
name: 'Electronics',
links: [
{
name: 'Desktop Computers',
slug: 'desktop-computers',
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:
@harshq
harshq / tsconfig.json
Last active October 8, 2021 04:14
serverless tsconfig
{
"compilerOptions": {
"target": "esnext",
"module": "commonjs",
"lib": ["esnext"],
"sourceMap": true,
"outDir": "lib",
"moduleResolution": "node",
"removeComments": true,
"noImplicitAny": true,
@harshq
harshq / webpack.config.js
Created June 6, 2021 09:19
serverless-webpack config
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'],
},
import {
DynamoDBClient,
PutItemCommand,
GetItemCommand,
UpdateItemCommand,
DeleteItemCommand,
} from '@aws-sdk/client-dynamodb';
import {
marshall,
unmarshall
import React, { Component } from 'react';
import {
Text,
View,
} from 'react-native';
import {
DrawerNavigator,
StackNavigator,
TabNavigator,
NavigationActions