Project boilerplate from eunikitin/modern-package-boilerplate

This commit is contained in:
Michael Vines
2018-08-22 13:30:04 -07:00
parent a39df7ee5d
commit 7e109f22c2
18 changed files with 9738 additions and 0 deletions

View File

@ -0,0 +1,6 @@
import flow from '../../src/examples/flow';
test('1 + 2 = 3', () => {
expect(flow(1, 2)).toBe(3);
});

View File

@ -0,0 +1,17 @@
import modern from '../../src/examples/modern';
const message =
'\n' +
' \x1b[42m\x1b[30m \n\x1b[0m' +
' \x1b[42m\x1b[30m Thank you for using this boilerplate! \n\x1b[0m' +
' \x1b[42m\x1b[30m \n\x1b[0m' +
'\n' +
' Getting started\n\n' +
' 1. Clone the repo from github (https://github.com/eunikitin/modern-package-boilerplate.git)\n' +
' 2. Inside the repo directory run npm install && rm -r .git && git init\n' +
' 3. Update package.json with your information' +
'\n';
test('Message on package usage', () => {
expect(modern()).toBe(message);
});