Skip to content

Commit

Permalink
1.0.0-beta.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Oct 15, 2021
1 parent 0ba0d06 commit 533d0dc
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 5 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

# [1.0.0-beta.1](https://github.com/nolimits4web/atropos/compare/v0.11.2...v1.0.0-beta.1) (2021-10-15)

### Features

- remove rotateLock functionality in favor of new smooth rotation ([0ba0d06](https://github.com/nolimits4web/atropos/commit/0ba0d06abb8672a4b785b8bd5e743c2b1f7dff4a))
- removed `durationEnter` parameter
- removed `durationLeave` parameter
- removed `rotateLock` parameter
- added single `duration` parameter (defaults to `300`)

# [0.11.2](https://github.com/nolimits4web/atropos/compare/v0.11.1...v0.11.2) (2021-10-15)

### Bug Fixes
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "atropos-src",
"version": "0.11.2",
"version": "1.0.0-beta.1",
"description": "Touch-friendly 3D parallax hover effects",
"scripts": {
"/*============ Build ============*/": "============",
Expand Down
2 changes: 1 addition & 1 deletion package/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "atropos",
"version": "0.11.2",
"version": "1.0.0-beta.1",
"description": "Touch-friendly 3D parallax hover effects",
"types": "atropos.d.ts",
"type": "module",
Expand Down
56 changes: 55 additions & 1 deletion scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,54 @@ async function release() {
message: 'Version:',
default: pkg.version,
},
{
type: 'list',
name: 'alpha',
message: 'Alpha?',
when: (opts) => opts.version.indexOf('alpha') >= 0,
choices: [
{
name: 'YES',
value: true,
},
{
name: 'NO',
value: false,
},
],
},
{
type: 'list',
name: 'beta',
message: 'Beta?',
when: (opts) => opts.version.indexOf('beta') >= 0,
choices: [
{
name: 'YES',
value: true,
},
{
name: 'NO',
value: false,
},
],
},
{
type: 'list',
name: 'next',
message: 'Next?',
when: (opts) => opts.version.indexOf('next') >= 0,
choices: [
{
name: 'YES',
value: true,
},
{
name: 'NO',
value: false,
},
],
},
]);
// Set version
pkg.version = options.version;
Expand Down Expand Up @@ -59,7 +107,13 @@ async function release() {
await exec.promise('git push');
await exec.promise(`git tag v${pkg.version}`);
await exec.promise('git push origin --tags');
await exec.promise('cd ./package && npm publish');
if (options.beta) {
await exec.promise('cd ./package && npm publish --tag beta');
} else if (options.alpha || options.next) {
await exec.promise('cd ./package && npm publish --tag next');
} else {
await exec.promise('cd ./package && npm publish');
}
}

release();

0 comments on commit 533d0dc

Please sign in to comment.