Publish version 0.2.2
This commit is contained in:
parent
05b5c69080
commit
dac37cd899
@ -1,6 +1,6 @@
|
|||||||
Pod::Spec.new do |s|
|
Pod::Spec.new do |s|
|
||||||
s.name = 'DoricCore'
|
s.name = 'DoricCore'
|
||||||
s.version = '0.2.1'
|
s.version = '0.2.2'
|
||||||
s.summary = 'Doric iOS SDK'
|
s.summary = 'Doric iOS SDK'
|
||||||
|
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
version=0.2.1
|
version=0.2.2
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "doric",
|
"name": "doric",
|
||||||
"version": "0.2.2-alpha.3",
|
"version": "0.2.2",
|
||||||
"description": "The JS Framework of Doric",
|
"description": "The JS Framework of Doric",
|
||||||
"main": "bundle/doric-vm.js",
|
"main": "bundle/doric-vm.js",
|
||||||
"types": "index.d.ts",
|
"types": "index.d.ts",
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name": "doric-web",
|
"name": "doric-web",
|
||||||
"version": "0.1.2",
|
"version": "0.2.2",
|
||||||
"description": "Doric library for Web",
|
"description": "Doric library for Web",
|
||||||
"main": "build/index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"build": "tsc -p .&& rollup -c"
|
"build": "tsc -p .&& rollup -c"
|
||||||
|
42
publish.sh
Normal file
42
publish.sh
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
##############################################################################
|
||||||
|
##
|
||||||
|
## Publish JS,Android,iOS,Web
|
||||||
|
##
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
CURRENT_DIR=$(cd $(dirname $0); pwd)
|
||||||
|
CURRENT_VERSION=$(cat $CURRENT_DIR/version)
|
||||||
|
|
||||||
|
echo "Current version is "$CURRENT_VERSION
|
||||||
|
|
||||||
|
# Modify
|
||||||
|
|
||||||
|
## JS
|
||||||
|
cd $CURRENT_DIR/doric-js && npm version $CURRENT_VERSION --allow-same-version
|
||||||
|
|
||||||
|
## Android
|
||||||
|
echo "version="$CURRENT_VERSION > $CURRENT_DIR/doric-android/version.properties
|
||||||
|
|
||||||
|
## iOS
|
||||||
|
sed -i "" "s/\(version[ ]*= \)'[0-9 \.]*'/\1'$CURRENT_VERSION'/g" $CURRENT_DIR/DoricCore.podspec
|
||||||
|
|
||||||
|
## Web
|
||||||
|
cd $CURRENT_DIR/doric-web && npm version $CURRENT_VERSION --allow-same-version
|
||||||
|
|
||||||
|
# git save
|
||||||
|
cd $CURRENT_DIR/
|
||||||
|
|
||||||
|
echo "Commit changes"
|
||||||
|
git add .
|
||||||
|
|
||||||
|
git commit -m "Publish version $CURRENT_VERSION"
|
||||||
|
|
||||||
|
git tag $CURRENT_VERSION
|
||||||
|
|
||||||
|
echo "Push Changes"
|
||||||
|
|
||||||
|
cd $CURRENT_DIR/doric-js && npm publish
|
||||||
|
cd $CURRENT_DIR/doric-web && npm publish
|
||||||
|
# cd $CURRENT_DIR/doric-android && ./gradlew clean publishAll
|
||||||
|
cd $CURRENT_DIR && pod trunk push --allow-warnings
|
8
setup.sh
8
setup.sh
@ -4,6 +4,8 @@
|
|||||||
## Init Develop Environment
|
## Init Develop Environment
|
||||||
##
|
##
|
||||||
##############################################################################
|
##############################################################################
|
||||||
cd doric-js && npm install && npm run build && cd ..
|
CURRENT_DIR=$(cd $(dirname $0); pwd)
|
||||||
cd doric-demo && npm install && npm run build && cd ..
|
|
||||||
cd doric-cli && npm install && npm link && cd ..
|
cd $CURRENT_DIR/doric-js && npm install && npm run build
|
||||||
|
cd $CURRENT_DIR/doric-demo && npm install && npm run build
|
||||||
|
cd $CURRENT_DIR/doric-cli && npm install && npm link
|
Reference in New Issue
Block a user