Skip to content

Commit

Permalink
fix(build): show version correctly, build as part of release
Browse files Browse the repository at this point in the history
  • Loading branch information
avaragado committed Mar 21, 2017
1 parent 51406aa commit fe1ab5e
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 46 deletions.
3 changes: 1 addition & 2 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
"plugins": [
"transform-runtime",
"transform-flow-strip-types",
"transform-object-rest-spread",
"inline-package-json"
"transform-object-rest-spread"
],
"env": {
// jest needs this
Expand Down
18 changes: 18 additions & 0 deletions doc/developer-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,24 @@ $ nps f # or nps flow - check flow types
$ nps f.t # or nps flow.typed - update all third-party types via flow-typed
```

## Branches and merging

When merging to master **Squash and Merge**.

In the commit message, follow [conventional-changelog-standard conventions](https://github.com/bcoe/conventional-changelog-standard/blob/master/convention.md)


## Releasing

When ready to release to npm:

1. `git checkout master`
1. `git pull origin master`
1. `nps release`
1. Engage pre-publication paranoia
1. `git push --follow-tags origin master`
1. `npm publish`


## Tests

Expand Down
32 changes: 0 additions & 32 deletions flow-typed/npm/babel-plugin-inline-package-json_vx.x.x.js

This file was deleted.

2 changes: 1 addition & 1 deletion package-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
quick: 'nps clean && nps build.es5 && nps flow.copySource',
es5: 'babel --copy-files --out-dir dist --ignore __tests__ src',
},
release: 'standard-version',
release: 'nps build && standard-version',
lint: {
default: 'concurrently "nps lint.js" "nps flow"',
js: 'eslint src',
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"babel-cli": "^6.24.0",
"babel-eslint": "^7.2.0",
"babel-jest": "^19.0.0",
"babel-plugin-inline-package-json": "^2.0.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.24.0",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
Expand Down
5 changes: 1 addition & 4 deletions src/bin/commands/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@

import chalk from 'chalk';

import { name, version } from '../../../package.json';
import log from '../../lib/log';

// babel-plugin-inline-package-json@2.0.0 only supports require, and only in this icky form.
const name = require('../../../package.json').name;
const version = require('../../../package.json').version;

export const command = 'version';
export const desc = 'Print version information';

Expand Down
8 changes: 2 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -412,10 +412,6 @@ babel-plugin-check-es2015-constants@^6.22.0:
dependencies:
babel-runtime "^6.22.0"

babel-plugin-inline-package-json@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/babel-plugin-inline-package-json/-/babel-plugin-inline-package-json-2.0.0.tgz#1f9558d96667f4b8787e807d764e6e15b4f0cd07"

babel-plugin-istanbul@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-4.0.0.tgz#36bde8fbef4837e5ff0366531a2beabd7b1ffa10"
Expand Down Expand Up @@ -789,11 +785,11 @@ babel-types@^6.18.0, babel-types@^6.19.0, babel-types@^6.22.0, babel-types@^6.23
lodash "^4.2.0"
to-fast-properties "^1.0.1"

babylon@^6.11.0, babylon@^6.13.0, babylon@^6.15.0:
babylon@^6.11.0:
version "6.15.0"
resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.15.0.tgz#ba65cfa1a80e1759b0e89fb562e27dccae70348e"

babylon@^6.16.1:
babylon@^6.13.0, babylon@^6.15.0, babylon@^6.16.1:
version "6.16.1"
resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.16.1.tgz#30c5a22f481978a9e7f8cdfdf496b11d94b404d3"

Expand Down

0 comments on commit fe1ab5e

Please # to comment.