Skip to content

Commit ae578e1

Browse files
committed
docs
1 parent 20c7eca commit ae578e1

File tree

7 files changed

+117
-12
lines changed

7 files changed

+117
-12
lines changed

.gitignore

+44-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,44 @@
1-
node_modules/
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
6+
# Runtime data
7+
pids
8+
*.pid
9+
*.seed
10+
11+
# Directory for instrumented libs generated by jscoverage/JSCover
12+
lib-cov
13+
14+
# Coverage directory used by tools like istanbul
15+
coverage
16+
17+
# nyc test coverage
18+
.nyc_output
19+
20+
# Compiled binary addons (http://nodejs.org/api/addons.html)
21+
build/Release
22+
23+
# Dependency directories
24+
node_modules
25+
jspm_packages
26+
27+
# Optional npm cache directory
28+
.npm
29+
30+
# Optional REPL history
31+
.node_repl_history
32+
33+
# Editors
34+
.idea
35+
36+
# Lib
37+
lib
38+
39+
# npm package lock
40+
package-lock.json
41+
yarn.lock
42+
43+
others
44+
.DS_Store

.npmignore

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
*.log
2+
npm-debug.log*
3+
4+
# Coverage directory used by tools like istanbul
5+
coverage
6+
.nyc_output
7+
8+
# Dependency directories
9+
node_modules
10+
11+
# npm package lock
12+
package-lock.json
13+
yarn.lock
14+
15+
# project files
16+
src
17+
test
18+
examples
19+
CHANGELOG.md
20+
.travis.yml
21+
.editorconfig
22+
.eslintignore
23+
.eslintrc
24+
.babelrc
25+
.gitignore

README.md

+25-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,27 @@
11
# scratch
22

3-
##### Scratch takes one argument, a npm package name. Scratch create an environment to easily figure out how a package works
4-
5-
scratch will
6-
* create new folder in projects folder named "package_testing"
7-
* npm init -y
8-
* npm install "package"
9-
* opens vscode
10-
* open a index.js
11-
* creates a variable with a require statement
12-
* npm home "package"
3+
> Need to learn what a package can do? Scratch sets up an environment quickly so you can learn what a package can do.
4+
>
5+
6+
## Usage
7+
8+
```shell
9+
$ scratch chalk
10+
```
11+
OR
12+
```shell
13+
$ scr chalk
14+
```
15+
16+
## Install
17+
18+
With [npm](https://npmjs.org/) installed, run
19+
20+
```
21+
$ npm install -g scratch
22+
```
23+
24+
## License
25+
26+
MIT
27+

docs/.vuepress/config.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
title: "scratch",
3+
description: "description",
4+
themeConfig: {
5+
nav: [
6+
{ text: 'Home', link: '/'},
7+
{ text: 'Usage', link: '/usage/'},
8+
{ text: 'Github', link: 'https://github.com/dittmaraz/scratch'}
9+
]
10+
}
11+
}

docs/README.md

Whitespace-only changes.

index.js

+11
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,15 @@ cmdNode.get(
4747

4848
function log(txt){
4949
console.log(txt)
50+
}
51+
52+
53+
const usage = function() {
54+
const usageText = `
55+
scratch sets up an en
56+
57+
usage:
58+
scratch <package-name>
59+
`
60+
console.log(usageText)
5061
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"dependencies": {
1515
"chalk": "^2.4.2",
1616
"node-cmd": "^3.0.0",
17-
"open": "^6.3.0"
17+
"open": "^6.4.0"
1818
}
1919
}

0 commit comments

Comments
 (0)