Skip to content

Commit

Permalink
Merge pull request #3 from luckymarmot/makefile-improvements
Browse files Browse the repository at this point in the history
Improve Makefile naming
  • Loading branch information
JonathanMontane committed Aug 9, 2016
2 parents fbe5bc5 + 37aedeb commit b363dc7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 28 deletions.
35 changes: 16 additions & 19 deletions Makefile
@@ -1,32 +1,29 @@
BASE=$(shell pwd)
SCRIPTS=$(BASE)/scripts

# Setup commands
install:
npm install

# Validation commands
lint:
sh "$(SCRIPTS)/lint.sh" $(BASE)

test:
sh "$(SCRIPTS)/test.sh" $(BASE)
all: configure pack

validate: lint test
# Install the requirements
configure:
npm install

# Build commands
# Build the ES5 script
build:
sh "$(SCRIPTS)/build.sh" $(BASE)

release:
# Builds a ready-to-deploy ZIP file
pack: build
sh "$(SCRIPTS)/release.sh" $(BASE) $(VERSION)

deploy: install build release

transfer:
# Install in Paw extensions folder
install: build
sh "$(SCRIPTS)/transfer.sh" $(BASE)

# Super commands
paw-extension: deploy transfer
# Validation commands
lint:
sh "$(SCRIPTS)/lint.sh" $(BASE)

test:
sh "$(SCRIPTS)/test.sh" $(BASE)

paw-fast: build release transfer
check: lint test
11 changes: 2 additions & 9 deletions README.md
Expand Up @@ -19,7 +19,7 @@ The build will be located in the `dist` folder

### Creating a release
```
make deploy VERSION="@2.3.1"
make pack VERSION="@2.3.1"
```

The `VERSION` variable is optional.
Expand All @@ -28,14 +28,7 @@ The release is only local.

### How to test locally
```
make paw-fast
```

or
```
make paw-extension
make install
```

The extension will be compiled into a build and immediately copied to the Extension folder in Paw.

**note:** `paw-extension` is basically `paw-fast` with a `make install` before.

0 comments on commit b363dc7

Please sign in to comment.