Skip to content

Commit

Permalink
Add release makefile (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria authored Feb 21, 2019
1 parent 229d461 commit a14ce40
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 8 deletions.
11 changes: 8 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/node_modules
public/src/node_modules/
public/src/package-lock.json

public/Lychee-front/node_modules/
public/Lychee-front/package-lock.json

/public/hot
/public/storage
/storage/*.key
Expand All @@ -13,5 +15,8 @@ Homestead.yaml
npm-debug.log
yarn-error.log
.env

public/dist/user.css
aliases
aliases

Lychee-v*
76 changes: 76 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
VERSION=`cat version.md`
FILES=$(wildcard *)

.PHONY: dist

dist: clean
@echo "packaging..."
@mkdir Lychee-v$(VERSION)
@mkdir Lychee-v$(VERSION)/public
@mkdir Lychee-v$(VERSION)/public/docs
@mkdir Lychee-v$(VERSION)/public/Lychee-front
@mkdir Lychee-v$(VERSION)/public/uploads
@mkdir Lychee-v$(VERSION)/public/uploads/small
@mkdir Lychee-v$(VERSION)/public/uploads/medium
@mkdir Lychee-v$(VERSION)/public/uploads/big
@mkdir Lychee-v$(VERSION)/public/uploads/thumb
@mkdir Lychee-v$(VERSION)/public/uploads/import
@cp -r public/dist Lychee-v$(VERSION)/public
@cp -r public/docs/* Lychee-v$(VERSION)/public/docs
@cp -r public/Lychee-front/images Lychee-v$(VERSION)/public/Lychee-front/images
@cp -r public/Lychee-front/scripts Lychee-v$(VERSION)/public/Lychee-front/scripts
@cp -r public/Lychee-front/styles Lychee-v$(VERSION)/public/Lychee-front/styles
@cp -r public/Lychee-front/API.md Lychee-v$(VERSION)/public/Lychee-front
@cp -r public/Lychee-front/gulpfile.js Lychee-v$(VERSION)/public/Lychee-front
@cp -r public/Lychee-front/LICENSE Lychee-v$(VERSION)/public/Lychee-front
@cp -r public/Lychee-front/package.json Lychee-v$(VERSION)/public/Lychee-front
@cp -r public/Lychee-front/README.md Lychee-v$(VERSION)/public/Lychee-front
@cp -r app Lychee-v$(VERSION)
@cp -r bootstrap Lychee-v$(VERSION)
@cp -r config Lychee-v$(VERSION)
@cp -r database Lychee-v$(VERSION)
@cp -r resources Lychee-v$(VERSION)
@cp -r routes Lychee-v$(VERSION)
@cp -r storage Lychee-v$(VERSION)
@cp -r tests Lychee-v$(VERSION)
@cp -r vendor Lychee-v$(VERSION) 2> /dev/null || true
@cp -r public/.htaccess Lychee-v$(VERSION)/public
@cp -r public/.gitignore Lychee-v$(VERSION)/public
@cp -r public/.user.ini Lychee-v$(VERSION)/public
@cp -r public/CODE_OF_CONDUCT.md Lychee-v$(VERSION)/public
@cp -r public/favicon.ico Lychee-v$(VERSION)/public
@cp -r public/index.php Lychee-v$(VERSION)/public
@cp -r public/robots.txt Lychee-v$(VERSION)/public
@cp -r public/web.config Lychee-v$(VERSION)/public
@cp -r .env.example Lychee-v$(VERSION)
@cp -r artisan Lychee-v$(VERSION)
@cp -r composer.json Lychee-v$(VERSION)
@cp -r composer.lock Lychee-v$(VERSION)
@cp -r LICENSE Lychee-v$(VERSION)
@cp -r phpunit.xml Lychee-v$(VERSION)
@cp -r readme.md Lychee-v$(VERSION)
@cp -r server.php Lychee-v$(VERSION)
@cp -r version.md Lychee-v$(VERSION)
@rm Lychee-v$(VERSION)/storage/framework/sessions/*
@rm Lychee-v$(VERSION)/storage/framework/views/*
@rm Lychee-v$(VERSION)/storage/logs/*
@touch Lychee-v$(VERSION)/storage/logs/laravel.log
@touch Lychee-v$(VERSION)/public/dist/user.css
@touch Lychee-v$(VERSION)/public/uploads/big/index.html
@touch Lychee-v$(VERSION)/public/uploads/small/index.html
@touch Lychee-v$(VERSION)/public/uploads/medium/index.html
@touch Lychee-v$(VERSION)/public/uploads/thumb/index.html
@touch Lychee-v$(VERSION)/public/uploads/import/index.html
@zip -r Lychee-v$(VERSION).zip Lychee-v$(VERSION)

contrib_add:
@echo "npx all-contributors-cli add <user> <bug|code|design|doc|question|tool|test|translation>"

contrib_generate:
npx all-contributors-cli generate

contrib_check:
npx all-contributors-cli check

clean:
@rm -r Lychee-v* 2> /dev/null || true
8 changes: 3 additions & 5 deletions public/.gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
src/node_modules/
src/bower_components/
src/package-lock.json

data/config.php
Lychee-front/node_modules/
Lychee-front/bower_components/
Lychee-front/package-lock.json

uploads/big/*
uploads/import/*
Expand Down
1 change: 1 addition & 0 deletions version.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4.0.0-alpha.1

0 comments on commit a14ce40

Please sign in to comment.