Skip to content

Commit

Permalink
feat: export list of industry categories, sorted in alphabetical order
Browse files Browse the repository at this point in the history
  • Loading branch information
Harrison Ifeanyichukwu authored and Harrison Ifeanyichukwu committed Sep 20, 2019
1 parent 06b305b commit 4c4effc
Show file tree
Hide file tree
Showing 12 changed files with 10,052 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .babelrc
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"
]
}
}
}
37 changes: 37 additions & 0 deletions .eslintrc.json
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"
}
}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,7 @@ typings/

# next.js build output
.next

/lib

/dist
19 changes: 19 additions & 0 deletions .travis.yml
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
3 changes: 2 additions & 1 deletion README.md
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.
8 changes: 8 additions & 0 deletions jest.config.js
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',
};
53 changes: 53 additions & 0 deletions package.json
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": {}
}
31 changes: 31 additions & 0 deletions rollup.config.js
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,
},
});
Loading

0 comments on commit 4c4effc

Please sign in to comment.