Skip to content

Commit

Permalink
Move playground to a subdirectory and make deployment work again
Browse files Browse the repository at this point in the history
  • Loading branch information
evansb committed Jun 27, 2017
1 parent 679f0a2 commit d67ebf4
Show file tree
Hide file tree
Showing 25 changed files with 3,814 additions and 1,703 deletions.
17 changes: 17 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"presets": [
[
"env",
{
"targets": {
"browsers": [
"last 2 versions"
]
}
}
]
],
"plugins": [
"transform-runtime"
]
}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.next
node_modules
dist
es6
Expand Down
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
__tests__
coverage
.next
38 changes: 21 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,40 +49,44 @@ The toolchain has three main components.

## Installation

The only package publishable to NPM is `source-toolchain`, the rests are private.
You will need Node >=6 and NPM >=3. Yarn is recommended.
You will need Node >=6 and NPM >=3.
Yarn is recommended.

```
npm install source-toolchain --save
# Or if you have Yarn
yarn add source-toolchain --save
```

## Developing

This project uses Lerna to manage dependencies between 3 internal packages.

```
packages/toolchain The toolchain as explained above.
packages/stdlib JavaScript Standard Library (list, object).
packages/playground A playground website to demonstrate the toolchain.
```

Install dependencies.
Install dependencies (do for current directory and playground)
```
npm install
# Or if you have Yarn
yarn
```

Run the task that you need, the script name is standardized among
packages.
Run the task that you need

```
npm run lint # Lint the code using tslint
npm run compile # Compiles to ES6 then ES5
npm run test # Run the test + coverage
npm run test-watch # Run the test in watch mode
# Toolchain: Run Jest in watch mode
# Playground: Run Next.js development
npm run dev
# Toolchain: Compile to ES6 then ES5
npm run compile
```

To deploy the playground using `now.sh`

```
# Make sure you compile the toolchain
npm run compile
# Deploy it
cd playground && npm run deploy
```

## License
Expand Down

0 comments on commit d67ebf4

Please sign in to comment.