Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Commit

Permalink
feat(refactor): Refactor to make extendable
Browse files Browse the repository at this point in the history
This is a major squashed commit where the codebase is refactored to be more
extendable. It will be able to be extended with own configs to create other clis
for other use cases.

BREAKING CHANGE: Major refactor
  • Loading branch information
adambrgmn committed Jan 3, 2018
1 parent 92da3af commit a184051
Show file tree
Hide file tree
Showing 56 changed files with 7,275 additions and 1,484 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": ["./src/config/eslintrc.js"],
"extends": ["./src/config/lint/eslint.config.js"],
"rules": {
"global-require": "off",
"no-process-exit": "off",
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,3 @@ dist
.opt-out
.DS_Store
.eslintcache

package-lock.json
yarn.lock
2 changes: 1 addition & 1 deletion babel.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/* eslint-disable import/no-unresolved */
module.exports = require('./dist/config/babelrc');
module.exports = require('./dist/config/build/babel.config');
2 changes: 1 addition & 1 deletion eslint.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/* eslint-disable import/no-unresolved */
module.exports = require('./dist/config/eslintrc');
module.exports = require('./dist/config/lint/eslint.config');
2 changes: 1 addition & 1 deletion jest.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/* eslint-disable import/no-unresolved */
module.exports = require('./dist/config/jest.config');
module.exports = require('./dist/config/test/jest.config');
27 changes: 18 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,18 @@
"npm": ">= 5"
},
"bin": {
"frans-scripts": "dist/index.js"
"frans-scripts": "dist/bin.js"
},
"scripts": {
"add-contributor": "node src contributors add",
"test": "node src test",
"test:update": "node src test --updateSnapshot",
"build": "node src build",
"lint": "node src lint",
"format": "node src format",
"validate": "node src validate",
"precommit": "node src precommit"
"add-contributor": "./src/bin.js contributors add",
"test": "./src/bin.js test",
"test:update": "./src/bin.js test --updateSnapshot",
"build": "./src/bin.js build",
"lint": "./src/bin.js lint",
"format": "./src/bin.js format",
"validate": "./src/bin.js validate",
"precommit": "./src/bin.js precommit",
"release": "./src/bin.js release"
},
"files": [
"dist",
Expand All @@ -43,12 +44,14 @@
"all-contributors-cli": "^4.10.1",
"arrify": "^1.0.1",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-eslint": "^8.0.3",
"babel-jest": "^22.0.1",
"babel-macros": "^1.2.0",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-minify-dead-code-elimination": "^0.2.0",
"babel-plugin-module-resolver": "^3.0.0",
"babel-plugin-styled-components": "^1.4.0",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-inline-environment-variables": "^0.2.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
Expand All @@ -73,10 +76,12 @@
"is-ci": "^1.0.10",
"jest": "^22.0.1",
"lint-staged": "^6.0.0",
"listr": "^0.13.0",
"lodash.camelcase": "^4.3.0",
"lodash.has": "^4.5.2",
"mkdirp": "^0.5.1",
"prettier": "^1.9.2",
"ramda": "^0.25.0",
"read-pkg-up": "^3.0.0",
"resolve": "^1.5.0",
"rimraf": "^2.6.2",
Expand All @@ -88,7 +93,11 @@
"rollup-plugin-node-globals": "^1.1.0",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup-plugin-uglify": "^2.0.1",
"sade": "^1.1.1",
"semantic-release": "11.0.2",
"strman": "^2.0.0",
"which": "^1.3.0",
"winston": "^2.4.0",
"yargs-parser": "^8.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion prettier.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/* eslint-disable import/no-unresolved */
module.exports = require('./dist/config/prettierrc');
module.exports = require('./dist/config/format/prettier.config');
3 changes: 0 additions & 3 deletions src/__mocks__/cross-spawn.js

This file was deleted.

50 changes: 0 additions & 50 deletions src/__tests__/__snapshots__/index.js.snap

This file was deleted.

27 changes: 0 additions & 27 deletions src/__tests__/__snapshots__/utils.js.snap

This file was deleted.

86 changes: 0 additions & 86 deletions src/__tests__/index.js

This file was deleted.

126 changes: 0 additions & 126 deletions src/__tests__/utils.js

This file was deleted.

Loading

0 comments on commit a184051

Please sign in to comment.