Skip to content

Releases: AnomalyInnovations/serverless-nodejs-starter

Adding TypeScript support

21 Jul 00:58
Compare
Choose a tag to compare

Adding TS support using serverless-bundle upgrade.

#59

Updating to Node 10 and using the dotenv plugin

09 Oct 01:14
33fa951
Compare
Choose a tag to compare
v2.1

Updating to Node 10 and dotenv

Using serverless-bundle

18 Jul 20:34
b577ac1
Compare
Choose a tag to compare

Using the serverless-bundle plugin to manage Webpack and Babel configs automatically.


Upgrading from v1.x to v2.0

Follow the steps below to upgrade your project to v2.0. Full change set available here.

  • Remove these from the devDependencies in your package.json

    "babel-core": "^6.26.3",
    "babel-loader": "^7.1.4""
    "babel-plugin-source-map-support": "^1.0.0",		
    "babel-plugin-transform-runtime": "^6.23.0",		
    "babel-preset-env": "^1.7.0",		
    "babel-preset-stage-3": "^6.24.1",		
    "jest": "^21.2.1",			
    "serverless-webpack": "^5.1.0",		
    "webpack": "^4.16.2",		
    "webpack-node-externals": "^1.6.0"
    
  • Replace it with

    "serverless-bundle": "^1.2.2",
    
  • Remove these from the dependencies in your package.json

    "babel-runtime": "^6.26.0",		
    "source-map-support": "^0.4.18"
    
  • Replace "test": "jest" in the scripts block in your package.json with "test": "serverless-bundle test"

  • Replace - serverless-webpack with - serverless-bundle in the plugins block in your serverless.yml

  • Remove these from the custom block in your serverless.yml

    webpack:
      webpackConfig: ./webpack.config.js		
      includeModules: true
  • Add the following to your serverless.yml

    package:
      individually: true
  • Remove the .babelrc file from your project root

  • Remove the webpack.config.js file from your project root

  • Remove the package-lock.json file from your project root

  • Remove your node_modules/ by running rm -rf node_modules/

  • Reinstall your NPM packages by running npm install

Final manual config update

18 Jul 20:27
Compare
Choose a tag to compare

Final update before moving to managing configs using serverless-bundle.

Updating to Lambda Node v8.10

10 Apr 23:14
d771e9f
Compare
Choose a tag to compare
v1.5

Updating to Node 8.10

Adding serverless-offline and env.yml support

26 Mar 18:41
6ba62cd
Compare
Choose a tag to compare
v1.4

Adding serverless-offline and env.yml support

Updating to Webpack 4

21 Mar 21:39
Compare
Choose a tag to compare
v1.3

Updating to Webpack 4

Updating to babel-env preset

31 Dec 00:27
Compare
Choose a tag to compare
v1.2

Updating to babel-env

Updating to use babel sourcemap plugin

25 Sep 17:47
Compare
Choose a tag to compare
v1.1

Updating to use babel sourcemap plugin

Fixing webpack config issues

25 Sep 17:49
Compare
Choose a tag to compare
v1.0.1

Fixing webpack config issues