Skip to content

Commit

Permalink
fix: Fixed release versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
rubyboy committed Apr 30, 2017
1 parent 4c42874 commit b798a44
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ script:
- npm run test
after_success:
- cd ..
# - npm run semantic-release
- npm run semantic-release
branches:
except:
- "/^v\\d+\\.\\d+\\.\\d+$/"
10 changes: 5 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ rm -rf dist

# Define commands
NGC="node node_modules/.bin/ngc"
ROLLUP="node node_modules/.bin/rollup"
# ROLLUP="node node_modules/.bin/rollup"

# Run Angular Compiler to generate build directory
$NGC -p src/tsconfig.json

# Run rollup to generate dist directory
$ROLLUP build/index.js -o dist/index.js -f umd -n angular2-materialize -u angular2-materialize
# $ROLLUP build/index.js -o dist/index.js -f umd -n angular2-materialize -u angular2-materialize

# Copy all files from build to dist, except for JavaScript files
rsync -a build/ dist

# Copy package.json and other resources to dist
cp README.md dist
cp LICENSE dist
cp .npmignore dist
# cp README.md dist
# cp LICENSE dist
# cp .npmignore dist

# Clean up build directory
rm -rf build
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
"url": "https://github.com/InfomediaLtd/angular2-materialize/issues"
},
"homepage": "https://github.com/InfomediaLtd/angular2-materialize#readme",
"main": "index.js",
"main": "dist/index.js",
"scripts": {
"commit": "git-cz",
"build": "sh build.sh",
"presemantic-release": "semantic-release pre",
"semantic-release": "cp package.json dist && npm publish dist",
"semantic-release": "npm publish",
"postsemantic-release": "semantic-release post"
},
"peerDependencies": {
Expand Down

0 comments on commit b798a44

Please sign in to comment.