Skip to content

Commit

Permalink
build: update build process
Browse files Browse the repository at this point in the history
move build to github action;add .signore;add -e option to ncc to make @serverless-devs/core out of
ncc compile
  • Loading branch information
SquatsTonight committed Aug 13, 2021
1 parent 05fecce commit 535e360
Show file tree
Hide file tree
Showing 251 changed files with 34 additions and 72,308 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/registry-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install requests
# - name: NPM install
# run: |
# npm install --production
- name: Build
run: |
npm run build
- name: Add publish file
run: |
wget https://serverless-registry.oss-cn-hangzhou.aliyuncs.com/publish-file/python3/hub-publish.py
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ lerna-debug.log*
**/s.origin.yaml
**/.env
examples/fc-build/java/target
package-lock.json
package-lock.json
dist
doc
7 changes: 0 additions & 7 deletions .vscode/extensions.json

This file was deleted.

23 changes: 0 additions & 23 deletions .vscode/launch.json

This file was deleted.

43 changes: 0 additions & 43 deletions .vscode/settings.json

This file was deleted.

26 changes: 26 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
.PHONY: push

CURRENT_BRANCH_NAME := $(shell git symbolic-ref --short HEAD)

add:
git add .

commit: add
git-cz

rebase-main: commit
git pull --rebase origin main

push:
git push --force-with-lease origin $(CURRENT_BRANCH_NAME)

release-dev: push
-gh release delete dev -y
-git tag -d dev
-git push origin :refs/tags/dev
gh release create dev --notes "dev release" --target dev --title "Release dev"

roll-back-dev:
git reset --soft HEAD~1
git restore --staged publish.yaml
git restore publish.yaml
149 changes: 0 additions & 149 deletions dist/command/alias.d.ts

This file was deleted.

10 changes: 0 additions & 10 deletions dist/command/alias.js

This file was deleted.

25 changes: 0 additions & 25 deletions dist/command/info.d.ts

This file was deleted.

3 changes: 0 additions & 3 deletions dist/command/info.js

This file was deleted.

41 changes: 0 additions & 41 deletions dist/command/invoke.d.ts

This file was deleted.

3 changes: 0 additions & 3 deletions dist/command/invoke.js

This file was deleted.

Loading

0 comments on commit 535e360

Please sign in to comment.