Skip to content

Commit a14ce40

Browse files
authored
Add release makefile (#84)
1 parent 229d461 commit a14ce40

File tree

4 files changed

+88
-8
lines changed

4 files changed

+88
-8
lines changed

.gitignore

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/node_modules
2-
public/src/node_modules/
3-
public/src/package-lock.json
2+
3+
public/Lychee-front/node_modules/
4+
public/Lychee-front/package-lock.json
5+
46
/public/hot
57
/public/storage
68
/storage/*.key
@@ -13,5 +15,8 @@ Homestead.yaml
1315
npm-debug.log
1416
yarn-error.log
1517
.env
18+
1619
public/dist/user.css
17-
aliases
20+
aliases
21+
22+
Lychee-v*

makefile

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
VERSION=`cat version.md`
2+
FILES=$(wildcard *)
3+
4+
.PHONY: dist
5+
6+
dist: clean
7+
@echo "packaging..."
8+
@mkdir Lychee-v$(VERSION)
9+
@mkdir Lychee-v$(VERSION)/public
10+
@mkdir Lychee-v$(VERSION)/public/docs
11+
@mkdir Lychee-v$(VERSION)/public/Lychee-front
12+
@mkdir Lychee-v$(VERSION)/public/uploads
13+
@mkdir Lychee-v$(VERSION)/public/uploads/small
14+
@mkdir Lychee-v$(VERSION)/public/uploads/medium
15+
@mkdir Lychee-v$(VERSION)/public/uploads/big
16+
@mkdir Lychee-v$(VERSION)/public/uploads/thumb
17+
@mkdir Lychee-v$(VERSION)/public/uploads/import
18+
@cp -r public/dist Lychee-v$(VERSION)/public
19+
@cp -r public/docs/* Lychee-v$(VERSION)/public/docs
20+
@cp -r public/Lychee-front/images Lychee-v$(VERSION)/public/Lychee-front/images
21+
@cp -r public/Lychee-front/scripts Lychee-v$(VERSION)/public/Lychee-front/scripts
22+
@cp -r public/Lychee-front/styles Lychee-v$(VERSION)/public/Lychee-front/styles
23+
@cp -r public/Lychee-front/API.md Lychee-v$(VERSION)/public/Lychee-front
24+
@cp -r public/Lychee-front/gulpfile.js Lychee-v$(VERSION)/public/Lychee-front
25+
@cp -r public/Lychee-front/LICENSE Lychee-v$(VERSION)/public/Lychee-front
26+
@cp -r public/Lychee-front/package.json Lychee-v$(VERSION)/public/Lychee-front
27+
@cp -r public/Lychee-front/README.md Lychee-v$(VERSION)/public/Lychee-front
28+
@cp -r app Lychee-v$(VERSION)
29+
@cp -r bootstrap Lychee-v$(VERSION)
30+
@cp -r config Lychee-v$(VERSION)
31+
@cp -r database Lychee-v$(VERSION)
32+
@cp -r resources Lychee-v$(VERSION)
33+
@cp -r routes Lychee-v$(VERSION)
34+
@cp -r storage Lychee-v$(VERSION)
35+
@cp -r tests Lychee-v$(VERSION)
36+
@cp -r vendor Lychee-v$(VERSION) 2> /dev/null || true
37+
@cp -r public/.htaccess Lychee-v$(VERSION)/public
38+
@cp -r public/.gitignore Lychee-v$(VERSION)/public
39+
@cp -r public/.user.ini Lychee-v$(VERSION)/public
40+
@cp -r public/CODE_OF_CONDUCT.md Lychee-v$(VERSION)/public
41+
@cp -r public/favicon.ico Lychee-v$(VERSION)/public
42+
@cp -r public/index.php Lychee-v$(VERSION)/public
43+
@cp -r public/robots.txt Lychee-v$(VERSION)/public
44+
@cp -r public/web.config Lychee-v$(VERSION)/public
45+
@cp -r .env.example Lychee-v$(VERSION)
46+
@cp -r artisan Lychee-v$(VERSION)
47+
@cp -r composer.json Lychee-v$(VERSION)
48+
@cp -r composer.lock Lychee-v$(VERSION)
49+
@cp -r LICENSE Lychee-v$(VERSION)
50+
@cp -r phpunit.xml Lychee-v$(VERSION)
51+
@cp -r readme.md Lychee-v$(VERSION)
52+
@cp -r server.php Lychee-v$(VERSION)
53+
@cp -r version.md Lychee-v$(VERSION)
54+
@rm Lychee-v$(VERSION)/storage/framework/sessions/*
55+
@rm Lychee-v$(VERSION)/storage/framework/views/*
56+
@rm Lychee-v$(VERSION)/storage/logs/*
57+
@touch Lychee-v$(VERSION)/storage/logs/laravel.log
58+
@touch Lychee-v$(VERSION)/public/dist/user.css
59+
@touch Lychee-v$(VERSION)/public/uploads/big/index.html
60+
@touch Lychee-v$(VERSION)/public/uploads/small/index.html
61+
@touch Lychee-v$(VERSION)/public/uploads/medium/index.html
62+
@touch Lychee-v$(VERSION)/public/uploads/thumb/index.html
63+
@touch Lychee-v$(VERSION)/public/uploads/import/index.html
64+
@zip -r Lychee-v$(VERSION).zip Lychee-v$(VERSION)
65+
66+
contrib_add:
67+
@echo "npx all-contributors-cli add <user> <bug|code|design|doc|question|tool|test|translation>"
68+
69+
contrib_generate:
70+
npx all-contributors-cli generate
71+
72+
contrib_check:
73+
npx all-contributors-cli check
74+
75+
clean:
76+
@rm -r Lychee-v* 2> /dev/null || true

public/.gitignore

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
src/node_modules/
2-
src/bower_components/
3-
src/package-lock.json
4-
5-
data/config.php
1+
Lychee-front/node_modules/
2+
Lychee-front/bower_components/
3+
Lychee-front/package-lock.json
64

75
uploads/big/*
86
uploads/import/*

version.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
4.0.0-alpha.1

0 commit comments

Comments
 (0)