Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ratson committed Dec 19, 2017
1 parent 2789786 commit 4cbe24a
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 20 deletions.
9 changes: 9 additions & 0 deletions hooks/post_gen_project.sh
@@ -0,0 +1,9 @@
#!/bin/bash

git --version 2>&1 >/dev/null
GIT_IS_AVAILABLE=$?

if [ $GIT_IS_AVAILABLE -eq 0 ]; then
git init
git add -A -f
fi
1 change: 1 addition & 0 deletions {{cookiecutter.github_repo_name}}/.eslintrc.yaml
@@ -1,3 +1,4 @@
extends:
- concise
- concise-esnext
- concise-jest
1 change: 1 addition & 0 deletions {{cookiecutter.github_repo_name}}/.gitignore
Expand Up @@ -4,3 +4,4 @@ node_modules
dist
lib
coverage
yarn.lock
49 changes: 34 additions & 15 deletions {{cookiecutter.github_repo_name}}/package.json
Expand Up @@ -6,26 +6,33 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=lib/ src/",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=lib/ src/",
"clean": "rimraf lib dist coverage",
"clean": "del lib dist coverage",
"prepublish": "run-s clean build",
"lint": "eslint --ext js --ext md .",
"lint": "eslint --ext js,md .",
"size": "size-limit",
"pretest": "npm run build",
"test": "ava"
},
"dependencies": {
"test": "run-p test:* lint",
"test:jest": "jest",
"test:size": "run-s build size",
"precommit": "lint-staged"
},
"dependencies": {},
"devDependencies": {
"ava": "^0.19.1",
"babel-cli": "^6.24.1",
"babel-cli": "^6.26.0",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-preset-env": "^1.4.0",
"babel-register": "^6.24.1",
"cross-env": "^4.0.0",
"eslint": "^3.19.0",
"eslint-config-concise": "^0.6.1",
"eslint-config-concise-esnext": "^0.6.0",
"npm-run-all": "^4.0.2",
"rimraf": "^2.6.1"
"babel-preset-env": "^1.6.1",
"babel-register": "^6.26.0",
"cross-env": "^5.1.1",
"del-cli": "^1.1.0",
"eslint": "^4.13.1",
"eslint-config-concise": "^0.16.1",
"eslint-config-concise-esnext": "^0.16.1",
"eslint-config-concise-jest": "^0.16.1",
"husky": "^0.14.3",
"jest": "^22.0.2",
"lint-staged": "^6.0.0",
"npm-run-all": "^4.1.2",
"size-limit": "^0.13.2"
},
"repository": "{{ cookiecutter.github_username }}/{{ cookiecutter.github_repo_name }}",
"license": "MIT",
Expand All @@ -37,5 +44,17 @@
"LICENSE",
"lib",
"src"
],
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
]
},
"size-limit": [
{
"path": "lib/index.js",
"limit": "1 KB"
}
]
}
3 changes: 3 additions & 0 deletions {{cookiecutter.github_repo_name}}/src/index.test.js
@@ -0,0 +1,3 @@
it('work', () => {
expect(1 + 1).toBe(3)
})
5 changes: 0 additions & 5 deletions {{cookiecutter.github_repo_name}}/test/index.js

This file was deleted.

0 comments on commit 4cbe24a

Please sign in to comment.