Skip to content

Commit

Permalink
Update build process
Browse files Browse the repository at this point in the history
  • Loading branch information
inc2734 committed Aug 9, 2018
1 parent 4e61819 commit 0b7c88d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 51 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ release/
mimizuku.zip
.travis/github_deploy_key
yarn-error.log
mimizuku/
11 changes: 0 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ cache:
- node_modules
- resources/vendor
- "$HOME/.composer/cache"
before_install:
- openssl aes-256-cbc -K $encrypted_73c066875ca0_key -iv $encrypted_73c066875ca0_iv
-in .travis/github_deploy_key.enc -out .travis/github_deploy_key -d
- mv .travis/github_deploy_key ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
install:
- nvm install 8
- npm install
Expand All @@ -34,13 +29,7 @@ before_script:
script:
- ls -la resources/style.css resources/index.php resources/vendor/autoload.php
- composer test
- bash bin/create-release-branch.sh
after_success:
- pwd
- ls -al
before_deploy:
- rm -rf resources/vendor
- composer install --no-dev
- npm run zip
- ls -la mimizuku.zip
- export RELEASE_FILE=$(ls .zip)mimizuku
Expand Down
Binary file removed .travis/github_deploy_key.enc
Binary file not shown.
39 changes: 0 additions & 39 deletions bin/create-release-branch.sh

This file was deleted.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"cleanup:js": "rimraf resources/assets/js && mkdir -p resources/assets/js",
"cleanup:packages": "rimraf resources/assets/packages && mkdir -p resources/assets/packages",
"cleanup:img": "rimraf resources/assets/img && mkdir -p resources/assets/img",
"cleanup:zip": "rimraf mimizuku.zip",
"minify:css": "find resources/assets/css -name '*.css' | xargs -I{} cssnano {} {}.min --no-zindex && find resources/assets/css -name '*.css.min' | sed 'p;s/.css.min/.min.css/' | xargs -n2 mv",
"minify:js": "find resources/assets/js -name '*.js' | xargs -I{} uglifyjs {} -o {}.min -mc && find resources/assets/js -name '*.js.min' | sed 'p;s/.js.min/.min.js/' | xargs -n2 mv",
"css:sass": "node-sass --include-path=node_modules/node-normalize-scss resources/src/css -o resources/assets/css",
Expand All @@ -46,6 +47,8 @@
"img": "npm run cleanup:img && cpy '**' '../../assets/img' --cwd=resources/src/img --parents",
"build": "npm-run-all -p img packages && npm-run-all -p js css",
"browsersync": "browser-sync start -p '127.0.0.1:8080' -f '**/*' 'resources/assets/**'",
"zip": "rimraf mimizuku.zip && cp -R resources mimizuku && zip -mr mimizuku.zip mimizuku -x '.*'"
"zip:pack": "composer install --no-dev && rsync -a --exclude='.*' resources/ mimizuku",
"zip:archive": "zip -9 -qmr mimizuku.zip mimizuku",
"zip": "npm run cleanup:zip && npm run zip:pack && npm run zip:archive"
}
}

0 comments on commit 0b7c88d

Please sign in to comment.