Skip to content

Commit fe970ef

Browse files
authored
2.0.0-alpha-2 (#2)
* refactoring to support both workspaces and single projects * renaming * rename * fixing filenames * moving * moving back * moving * moving back * fixing casing * fixing references * fixing build * adding travis file * badges * refactoring workspaces * updating travis * fixing travis badges * updating badges * typo * fixing exported typings * moving * moving back * bumping version in develop * adding coveralls support * fixing coverage * ignore nyc output * adding test for invalid projects * adding tests * fixing coverage badge * added tests for Chest.run * fixing import statement and npmignore * removing nyc output from published package * updating readme * fixing version since it's still the same PR
1 parent 8190d3f commit fe970ef

4 files changed

Lines changed: 36 additions & 4 deletions

File tree

‎.npmignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
.nyc_output/
12
node_modules/
23
src/
34

45
*.log
56

67
.npmignore
8+
.travis.yml
9+
mocha.opts
710
tsconfig.json
811
tslint.json
912
yarn.lock

‎README.md‎

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
It's a chest. With TypeScript inside.
2121

22-
Actually, it's a set of tools to manage TypeScript projects, whether they are stand-alone or workspace-based (either [Yarn](https://yarnpkg.com) or [Lerna](https://lernajs.io).
22+
Actually, it's a set of tools to manage TypeScript projects, whether they are stand-alone or workspace-based (either [Yarn](https://yarnpkg.com) or [Lerna](https://lernajs.io)).
2323

2424
# What Problems Get Solved
2525

@@ -28,6 +28,36 @@ CHEST will...
2828
- Link `@types` dependencies as a `types` array in your `tsconfig.json`, explicitly listing your declaration dependencies.
2929
- Propogate desriptive `package.json` properties down to child projects if using [Yarn](https://yarnpkg.com) workspaces.
3030

31+
# Getting Started
32+
33+
## Command-Line
34+
35+
If you plan on running `chest` from the command-line:
36+
37+
```bash
38+
yarn global add @beard/chest
39+
chest
40+
```
41+
42+
## Project Package
43+
44+
If you prefer to install `chest` into a local project:
45+
46+
```bash
47+
yarn add -D @beard/chest
48+
```
49+
50+
Edit your `package.json` file script to perform a post-build action.
51+
52+
```json
53+
{
54+
scripts: {
55+
"build": "...",
56+
"postbuild": "chest"
57+
}
58+
}
59+
```
60+
3161
# Supported Project Management Tools
3262

3363
- [Yarn](https://yarnpkg.com) 1.3.2+

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "MIT",
66
"main": "./lib/CLI.js",
77
"typings": "./lib/index.d.ts",
8-
"version": "2.0.0-alpha-1",
8+
"version": "2.0.0-alpha-2",
99
"dependencies": {
1010
"chalk": "^2.3.0"
1111
},

‎src/Chest.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import * as path from 'path'
22

3-
import { Files, NPM, Project, UpdaterType } from './Core'
4-
import { Registry } from 'src';
3+
import { Files, NPM, Project, Registry, UpdaterType } from './Core'
54

65
export class Chest {
76
public static async run(root: string, ...args: string[]): Promise<void> {

0 commit comments

Comments
 (0)