Skip to content
This repository has been archived by the owner on Aug 25, 2020. It is now read-only.

Commit

Permalink
1.0.0-beta.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
navix committed Jun 24, 2017
1 parent 4bc754b commit ae3ee3a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Angular Store

Immutable store for Angular 2+ with fancy decorators.
Immutable store for Angular with fancy decorators.

Currently in a deep beta!

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngx-kit/store",
"version": "1.0.0-alpha.7",
"name": "ngx-kit-store",
"version": "0.0.0",
"description": "Immutable store for Angular with fancy decorators",
"scripts": {
"build": "npm run build:clean && npm run build:ngc && npm run build:release",
Expand Down
8 changes: 8 additions & 0 deletions release.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"version": "1.0.0-beta.1",
"vendors": {
"angular": "^4.0.0",
"immutable": "^3.8.0",
"rxjs": "^5.4.0"
}
}
16 changes: 6 additions & 10 deletions release.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
const path = require('path');
const fs = require('fs-extra');

const pkg = require('./package.json');
const version = pkg.version;
const angularVersion = pkg.dependencies['@angular/core'];
const immutableVersion = pkg.dependencies['immutable'];
const rxjsVersion = pkg.dependencies['rxjs'];
const config = require('./release.config.json');

// Copy sources
fs.copySync(path.resolve('package'), path.resolve('dist/package'));
// Generate package.json
const blueprint = fs.readFileSync(path.resolve('package/package.json'), 'utf-8');
const result = blueprint
.replace(/0\.0\.0\-PLACEHOLDER/g, version)
.replace(/0\.0\.0\-ANGULAR\-PLACEHOLDER/g, angularVersion)
.replace(/0\.0\.0\-IMMUTABLE\-PLACEHOLDER/g, immutableVersion)
.replace(/0\.0\.0\-RXJS\-PLACEHOLDER/g, rxjsVersion);
.replace(/0\.0\.0\-PLACEHOLDER/g, config.version)
.replace(/0\.0\.0\-ANGULAR\-PLACEHOLDER/g, config.vendors.angular)
.replace(/0\.0\.0\-IMMUTABLE\-PLACEHOLDER/g, config.vendors.immutable)
.replace(/0\.0\.0\-RXJS\-PLACEHOLDER/g, config.vendors.rxjs);
fs.writeFileSync(path.resolve('dist/package/package.json'), result);
// Copy README
fs.copySync(path.resolve('README.md'), path.resolve('dist/package/README.md'));

console.log('release.js finished!');
console.log('release.js finished!');

0 comments on commit ae3ee3a

Please sign in to comment.