Skip to content

Commit

Permalink
moving to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
yanick committed Jul 24, 2018
1 parent 96bca64 commit 297f22a
Show file tree
Hide file tree
Showing 10 changed files with 7,273 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"presets":[ "env" ]
"presets":[ [ "env", { "targets": { "node": "current" } } ], "stage-1", "stage-0" ]
}
6 changes: 5 additions & 1 deletion Changes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Revision history for docson
# Revision history for docson

## v2.0.1 - 2018-07-23

* Release to npm.

## v2.0.0 - 2018-07-18

Expand Down
11 changes: 7 additions & 4 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@

version: '2'

vars:
GREETING: Hello, World!

tasks:
build:
dependencies:
- build-widget
cmds:
- pnpx babel src -d lib

build-widget:
cmds:
- webpack
- pnpx webpack
9 changes: 9 additions & 0 deletions lib/docson-cli.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env node
'use strict';

var program = require('commander');
var server = require('./server');

program.version('0.0.0').option('-p, --port [port]', 'port on which to run the app [3000]', 3000).option('-d, --directory [dir]', 'which directory to serve [.]', '.').parse(process.argv);

server(program).listen(program.port, () => console.log("server ready and running at localhost:" + program.port));
Loading

0 comments on commit 297f22a

Please sign in to comment.