Skip to content

Commit

Permalink
feat: Initial configuration from mobile team
Browse files Browse the repository at this point in the history
  • Loading branch information
tomfin46 committed May 10, 2019
1 parent b209368 commit 90de175
Show file tree
Hide file tree
Showing 8 changed files with 6,124 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
version: 2.1

executors:
node_8:
working_directory: ~/workspace
docker:
- image: circleci/node:8

commands:
attach_to_workspace:
description: Attach to the workflow workspace for sharing dependencies etc
steps:
- attach_workspace:
at: ~/workspace

yarn_install:
description: Install and cache dependencies using yarn
steps:
- restore_cache:
name: 'Restoring Dependencies Cache'
keys:
- dependency-cache-v1-{{ arch }}-{{ .Branch }}-{{ checksum "package.json" }}
- dependency-cache-v1-{{ arch }}-{{ .Branch }}
- dependency-cache-v1-{{ arch }}

- run:
name: Install dependencies
command: yarn install

- save_cache:
name: 'Saving Dependencies Cache'
key: dependency-cache-v1-{{ arch }}-{{ .Branch }}-{{ checksum "package.json" }}
paths:
- node_modules

jobs:
publish:
executor: node_8
steps:
- checkout
- attach_to_workspace
- yarn_install
- run:
name: Publish semantic release to npm and GitHub
command: yarn run publish

workflows:
version: 2
publish_release:
jobs:
- publish
5 changes: 5 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": [
"plugin:@heed/heed/recommended"
]
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
save-exact = true
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('./prettier.config');
35 changes: 35 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "@heed/prettier-config-heed",
"version": "0.0.0",
"description": "Heed organisational configuration for Prettier",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/heedsoftware/prettier-config-heed"
},
"main": "index.js",
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"release": {
"verifyConditions": "condition-circle"
},
"publishConfig": {
"access": "restricted"
},
"scripts": {
"commit": "git-cz",
"publish": "semantic-release"
},
"devDependencies": {
"@heed/eslint-plugin-heed": "3.0.1",
"commitizen": "^3.1.1",
"condition-circle": "^2.0.2",
"cz-conventional-changelog": "^2.1.0",
"eslint": "^5.16.0",
"prettier": "^1.17.0",
"semantic-release": "^15.13.12"
}
}
6 changes: 6 additions & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
singleQuote: true,
printWidth: 100,
trailingComma: 'all',
arrowParens: 'always',
};
Loading

0 comments on commit 90de175

Please sign in to comment.