-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: export list of industry categories, sorted in alphabetical order
- Loading branch information
Harrison Ifeanyichukwu
authored and
Harrison Ifeanyichukwu
committed
Sep 20, 2019
1 parent
06b305b
commit 4c4effc
Showing
12 changed files
with
10,052 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"env": { | ||
"test": { | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": { | ||
"node": "current" | ||
} | ||
} | ||
], | ||
"@babel/preset-typescript" | ||
], | ||
"plugins": [ | ||
"@babel/plugin-transform-runtime", | ||
"@babel/proposal-class-properties", | ||
"@babel/proposal-object-rest-spread" | ||
] | ||
}, | ||
"build": { | ||
"presets": [ | ||
[ | ||
"@babel/env", | ||
{ | ||
"modules": false | ||
} | ||
], | ||
"@babel/preset-typescript" | ||
], | ||
"plugins": [ | ||
"@babel/plugin-transform-runtime", | ||
"@babel/proposal-class-properties", | ||
"@babel/proposal-object-rest-spread" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": ["@typescript-eslint"], | ||
"extends": ["plugin:@typescript-eslint/recommended", "eslint:recommended"], | ||
"parserOptions": { | ||
"ecmaVersion": 2018, | ||
"sourceType": "module" | ||
}, | ||
"env": { | ||
"browser": true, | ||
"commonjs": true, | ||
"es6": true, | ||
"node": true, | ||
"jest": true | ||
}, | ||
"rules": { | ||
"indent": [ | ||
"error", | ||
4, | ||
{ | ||
"SwitchCase": 1 | ||
} | ||
], | ||
"linebreak-style": ["error", "unix"], | ||
"quotes": [ | ||
"error", | ||
"single", | ||
{ | ||
"allowTemplateLiterals": true | ||
} | ||
], | ||
"semi": ["error", "always"], | ||
"no-console": "off", | ||
"no-unused-vars": "error", | ||
"no-unused-labels": "error" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,3 +59,7 @@ typings/ | |
|
||
# next.js build output | ||
.next | ||
|
||
/lib | ||
|
||
/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
language: node_js | ||
cache: yarn | ||
notifications: | ||
email: false | ||
node_js: | ||
- '10' | ||
- '8' | ||
script: | ||
- yarn test | ||
jobs: | ||
include: | ||
- stage: release | ||
node_js: '10' | ||
script: | ||
- yarn test | ||
- yarn build | ||
after_success: | ||
- yarn report-coverage | ||
- yarn semantic-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# industries | ||
Export list of industry categories, reusable for website implementations | ||
|
||
Exports list of industry categories, reusable for website implementations. such as list of industry categories seen in Linkedin, and many other websites. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = { | ||
testEnvironment: 'node', | ||
collectCoverage: true, | ||
transform: { | ||
'^.+\\.tsx?$': 'babel-jest', | ||
}, | ||
testRegex: '\\.spec\\.ts', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"name": "industries", | ||
"version": "0.0.0-development", | ||
"description": "Exports list of industry categories, reusable for web project implementation", | ||
"main": "lib/index", | ||
"typings": "lib/typings/index", | ||
"author": "Harrison Ifeanyichukwu <[email protected]> (https://github.com/harrison-ifeanyichukwu)", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/harrison-ifeanyichukwu/industries.git" | ||
}, | ||
"scripts": { | ||
"commit": "git-cz", | ||
"test": "BABEL_ENV=test jest", | ||
"watch-test": "BABEL_ENV=test jest --watch", | ||
"build": "rimraf lib && tsc && BABEL_ENV=build rollup --config", | ||
"report-coverage": "jest --coverage --coverageReporters=text-lcov | coveralls", | ||
"semantic-release": "semantic-release" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "7.4.5", | ||
"@babel/node": "7.4.5", | ||
"@babel/plugin-proposal-class-properties": "7.4.4", | ||
"@babel/plugin-proposal-object-rest-spread": "7.4.4", | ||
"@babel/preset-env": "7.4.5", | ||
"@babel/preset-typescript": "7.3.3", | ||
"@types/jest": "24.0.11", | ||
"@typescript-eslint/eslint-plugin": "1.6.0", | ||
"@typescript-eslint/parser": "1.6.0", | ||
"babel-jest": "24.3.1", | ||
"commitizen": "3.1.1", | ||
"cz-conventional-changelog": "2.1.0", | ||
"jest": "24.8.0", | ||
"nodemon": "1.19.1", | ||
"rimraf": "2.6.2", | ||
"rollup": "1.15.6", | ||
"rollup-all": "1.6.16", | ||
"rollup-plugin-babel": "4.3.2", | ||
"rollup-plugin-commonjs": "10.0.0", | ||
"rollup-plugin-node-resolve": "5.0.3", | ||
"rollup-plugin-uglify": "6.0.2", | ||
"semantic-release-cli": "5.2.1", | ||
"typescript": "3.5.2", | ||
"semantic-release": "^15.13.24" | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "cz-conventional-changelog" | ||
} | ||
}, | ||
"dependencies": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import resolve from 'rollup-plugin-node-resolve'; | ||
import commonjs from 'rollup-plugin-commonjs'; | ||
import babel from 'rollup-plugin-babel'; | ||
import { uglify } from 'rollup-plugin-uglify'; | ||
|
||
import rollupAll from 'rollup-all'; | ||
|
||
const plugins = [ | ||
resolve({ | ||
extensions: ['.ts', '.js'], | ||
}), | ||
commonjs({ | ||
include: 'node_modules/**', | ||
}), | ||
babel({ | ||
exclude: 'node_modules/**', | ||
extensions: ['.ts', '.js'], | ||
runtimeHelpers: true, | ||
}), | ||
]; | ||
|
||
export default rollupAll.getExports(uglify(), plugins, { | ||
moduleName: 'Industries', | ||
entryFile: 'index.ts', | ||
libConfig: { | ||
enabled: true, | ||
}, | ||
distConfig: { | ||
enabled: true, | ||
}, | ||
}); |
Oops, something went wrong.