diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..9f2f128b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,5 @@ +language: node_js +node_js: + - '8' +script: + - echo 0 diff --git a/circle.yml b/circle.yml deleted file mode 100644 index b0b99858..00000000 --- a/circle.yml +++ /dev/null @@ -1,45 +0,0 @@ -machine: - pre: - - git config --global user.email "circleci@joyent.zone" - - git config --global user.name "circlebot" - - curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0 - services: - - docker - node: - version: 8.1.2 - -dependencies: - override: - # add rethinkdb sources - - source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list - - wget -qO- https://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add - - # install zmq and rdb - - sudo apt-get update && sudo apt-get install libzmq3-dev rethinkdb - # install node dependencies - - yarn install - -test: - pre: - # mkdir lint reports - - mkdir -p $CIRCLE_TEST_REPORTS/lint - # mkdir test reports - - mkdir -p $CIRCLE_TEST_REPORTS/test - # mkdir coverage artifact folders - - ls -1 packages | xargs -I % mkdir -p $CIRCLE_ARTIFACTS/"%" - override: - # lint - - yarn run lint-ci - # test - - yarn run test-ci - -# deployment: -# pre: -# # install docker-compose -# - sudo curl -L https://github.com/docker/compose/releases/download/1.13.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose -# - sudo chmod +x /usr/local/bin/docker-compose -# # install and setup triton -# - yarn global add triton@4.15.0 || cat /home/ubuntu/.yarn-config/global/yarn-error.log -# development: -# branch: master -# commands: -# - ./scripts/deploy diff --git a/package.json b/package.json index 21a8d7e8..3ce85302 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,6 @@ "license": "MPL-2.0", "repository": "github:yldio/joyent-portal", "scripts": { - "wizard": "lerna-wizard", "release": "./scripts/release", "format": "./scripts/format", "test-staged": "./scripts/run-staged-pkg --test", @@ -13,9 +12,8 @@ "format-staged": "./scripts/format --staged", "lint-license": "./scripts/license-to-fail", "lint-docs": "./scripts/quality-docs", - "lint-ci:root": - "echo 0 `# eslint scripts/* --format junit --output-file $CIRCLE_TEST_REPORTS/lint/joyent-portal.xml`", - "lint:root": "echo 0 `# eslint scripts/* --fix`", + "lint-ci:root": "eslint scripts/*", + "lint:root": "eslint scripts/* --fix", "lint-ci:packages": "lerna run lint-ci", "lint:packages": "lerna run lint", "lint-ci": "redrun -s lint-ci:*", @@ -42,18 +40,13 @@ "apr-awaitify": "^1.0.4", "apr-filter": "^1.0.5", "apr-for-each": "^1.0.6", - "apr-intercept": "^1.0.4", "apr-main": "^1.0.7", "apr-map": "^1.0.5", "apr-parallel": "^1.0.5", "apr-reduce": "^1.0.5", - "apr-series": "^1.0.5", - "apr-sort-by": "^1.0.5", "babel-eslint": "^7.2.3", - "chalk": "^2.1.0", "checksum": "^0.1.1", "cross-env": "^5.0.5", - "dotenv": "^4.0.0", "eslint": "^4.5.0", "eslint-config-prettier": "^2.3.0", "eslint-config-react-app": "^2.0.0", @@ -63,30 +56,18 @@ "eslint-plugin-jsx-a11y": "^6.0.2", "eslint-plugin-prettier": "^2.2.0", "eslint-plugin-react": "^7.3.0", - "eslint-tap": "^2.0.1", "execa": "^0.8.0", - "figures": "^2.0.0", "force-array": "^3.1.0", "husky": "^0.14.3", - "inquirer": "^3.2.3", "lerna": "^2.1.2", - "lerna-wizard": "ramitos/lerna-wizard#7bcdc11", "license-to-fail": "^2.2.0", - "lodash.flatten": "^4.4.0", - "lodash.isplainobject": "^4.0.6", - "lodash.isstring": "^4.0.1", "lodash.uniq": "^4.5.0", - "lodash.uniqby": "^4.7.0", "prettier": "1.6.1", "quality-docs": "^3.3.0", "read-pkg": "^2.0.0", "redrun": "^5.9.17", - "semver": "^5.4.1", "staged-git-files": "0.0.4", "yargs": "^8.0.2" }, - "config": { - "fmt-opt-out": ["portal-data", "portal-api", "control-tower"] - }, "workspaces": ["packages/*"] } diff --git a/packages/babel-preset/.eslintrc b/packages/babel-preset/.eslintrc deleted file mode 100644 index 14dc524b..00000000 --- a/packages/babel-preset/.eslintrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "joyent-portal" -} diff --git a/packages/babel-preset/.tern-project b/packages/babel-preset/.tern-project deleted file mode 100644 index 960bbe87..00000000 --- a/packages/babel-preset/.tern-project +++ /dev/null @@ -1,9 +0,0 @@ -{ - "libs": [ - "ecmascript" - ], - "plugins": { - "doc_comment": true, - "local-scope": true - } -} diff --git a/packages/babel-preset/README.md b/packages/babel-preset/README.md deleted file mode 100644 index a9535c86..00000000 --- a/packages/babel-preset/README.md +++ /dev/null @@ -1,30 +0,0 @@ -# babel-preset-joyent-portal - -[![License: MPL 2.0](https://img.shields.io/badge/License-MPL%202.0-brightgreen.svg)](https://opensource.org/licenses/MPL-2.0) -[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg)](https://github.com/RichardLitt/standard-readme) - -[`babel`](http://github.com/babel/babel) preset to be used across this repo. At the moment it only extends the one used by [`create-react-app`](https://github.com/facebookincubator/create-react-app/tree/master/packages/babel-preset-react-app) but it can be extended as needed. - -## Table of Contents - -- [Install](#install) -- [Usage](#usage) -- [License](#license) - -## Install - -``` -yarn add --dev babel-preset-joyent-portal -``` - -## Usage - -```json -{ - "presets": "joyent-portal" -} -``` - -## License - -MPL-2.0 diff --git a/packages/babel-preset/index.js b/packages/babel-preset/index.js deleted file mode 100644 index b373bf79..00000000 --- a/packages/babel-preset/index.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = (ctx, opts) => ({ - presets: [require('babel-preset-react-app')] -}); diff --git a/packages/babel-preset/package.json b/packages/babel-preset/package.json deleted file mode 100644 index 46b6c5cd..00000000 --- a/packages/babel-preset/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "babel-preset-joyent-portal", - "version": "2.0.0", - "license": "MPL-2.0", - "repository": "github:yldio/joyent-portal", - "main": "index.js", - "scripts": { - "lint": "eslint . --fix", - "lint-ci": "eslint . --format junit --output-file $CIRCLE_TEST_REPORTS/lint/babel-preset-joyent-portal.xml", - "test": "echo 0", - "test-ci": "echo 0", - "prepublish": "echo 0" - }, - "dependencies": { - "babel-preset-react-app": "^3.0.2" - }, - "devDependencies": { - "eslint": "^4.5.0", - "eslint-config-joyent-portal": "3.0.0" - } -} \ No newline at end of file diff --git a/packages/cloudapi-gql/CHANGELOG.md b/packages/cloudapi-gql/CHANGELOG.md deleted file mode 100644 index 2620f585..00000000 --- a/packages/cloudapi-gql/CHANGELOG.md +++ /dev/null @@ -1,13 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. - - -## 1.0.4 (2017-05-25) - - - - - -## 1.0.3 (2017-05-25) diff --git a/packages/cloudapi-gql/package.json b/packages/cloudapi-gql/package.json index bbdd0a37..e1f3e390 100644 --- a/packages/cloudapi-gql/package.json +++ b/packages/cloudapi-gql/package.json @@ -7,8 +7,6 @@ "main": "src/index.js", "scripts": { "lint": "eslint . --fix", - "lint-ci": - "eslint . --format junit --output-file $CIRCLE_TEST_REPORTS/lint/cloudapi-gql.xml", "test": "echo 0", "test-ci": "echo 0", "start": "node src/index.js", diff --git a/packages/eslint-config/.eslintrc b/packages/eslint-config/.eslintrc deleted file mode 100644 index d811f404..00000000 --- a/packages/eslint-config/.eslintrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "./index.js" -} diff --git a/packages/eslint-config/.tern-project b/packages/eslint-config/.tern-project deleted file mode 100644 index 6d78dea5..00000000 --- a/packages/eslint-config/.tern-project +++ /dev/null @@ -1,10 +0,0 @@ -{ - "libs": [ - "ecmascript" - ], - "plugins": { - "doc_comment": true, - "local-scope": true, - "node": true - } -} \ No newline at end of file diff --git a/packages/eslint-config/README.md b/packages/eslint-config/README.md deleted file mode 100644 index 0aa3dbfa..00000000 --- a/packages/eslint-config/README.md +++ /dev/null @@ -1,28 +0,0 @@ -# eslint-config-joyent-portal - -[![License: MPL 2.0](https://img.shields.io/badge/License-MPL%202.0-brightgreen.svg)](https://opensource.org/licenses/MPL-2.0) -[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg)](https://github.com/RichardLitt/standard-readme) - -## Table of Contents - -- [Install](#install) -- [Usage](#usage) -- [License](#license) - -## Install - -``` -yarn add eslint-config-joyent-portal -``` - -## Usage - -```json -{ - "extends": "joyent-portal" -} -``` - -## License - -MPL-2.0 diff --git a/packages/eslint-config/index.js b/packages/eslint-config/index.js deleted file mode 100644 index d7fe165d..00000000 --- a/packages/eslint-config/index.js +++ /dev/null @@ -1,9 +0,0 @@ -// eslint-disable-next-line no-warning-comments -// TODO wait for eslint/eslint#3458 - -module.exports = { - extends: ['eslint:recommended', 'xo-space/esnext', 'react-app', 'prettier', 'prettier/react'], - rules: { - 'capitalized-comments': 0 - } -}; diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json deleted file mode 100644 index d7a8ec9c..00000000 --- a/packages/eslint-config/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "eslint-config-joyent-portal", - "version": "3.0.0", - "license": "MPL-2.0", - "repository": "github:yldio/joyent-portal", - "main": "index.js", - "scripts": { - "lint": "eslint . --fix", - "lint-ci": "eslint . --format junit --output-file $CIRCLE_TEST_REPORTS/lint/eslint-config-joyent-portal.xml", - "test": "echo 0", - "test-ci": "echo 0", - "prepublish": "echo 0" - }, - "devDependencies": { - "babel-eslint": "^7.2.3", - "eslint": "^4.5.0", - "eslint-config-prettier": "^2.3.0", - "eslint-config-react-app": "^2.0.0", - "eslint-config-xo-space": "^0.16.0", - "eslint-plugin-flowtype": "^2.35.1", - "eslint-plugin-import": "^2.7.0", - "eslint-plugin-jsx-a11y": "^6.0.2", - "eslint-plugin-prettier": "^2.2.0", - "eslint-plugin-react": "^7.3.0" - }, - "peerDependencies": { - "babel-eslint": "^7.2.3", - "eslint": "^4.5.0", - "eslint-config-prettier": "^2.3.0", - "eslint-config-react-app": "^2.0.0", - "eslint-config-xo-space": "^0.16.0", - "eslint-plugin-flowtype": "^2.35.1", - "eslint-plugin-import": "^2.7.0", - "eslint-plugin-jsx-a11y": "^6.0.2", - "eslint-plugin-prettier": "^2.2.0", - "eslint-plugin-react": "^7.3.0" - } -} \ No newline at end of file diff --git a/packages/joyent-boilerplate/CHANGELOG.md b/packages/joyent-boilerplate/CHANGELOG.md deleted file mode 100644 index a519a6d0..00000000 --- a/packages/joyent-boilerplate/CHANGELOG.md +++ /dev/null @@ -1,4 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. diff --git a/packages/joyent-boilerplate/package.json b/packages/joyent-boilerplate/package.json index 2add9109..4db88542 100644 --- a/packages/joyent-boilerplate/package.json +++ b/packages/joyent-boilerplate/package.json @@ -11,11 +11,8 @@ "lint:css": "stylelint './src/**/*.js'", "lint:js": "eslint . --fix", "lint": "redrun -s lint:*", - "lint-ci:css": "stylelint './src/**/*.js'", - "lint-ci:js": "eslint . --format junit --output-file $CIRCLE_TEST_REPORTS/lint/cp-frontend.xml", - "lint-ci": "redrun -p lint-ci:*", "test": "NODE_ENV=test ./test/run --env=jsdom", - "test-ci": "echo 0 `# NODE_ENV=test JEST_JUNIT_OUTPUT=$CIRCLE_TEST_REPORTS/test/cp-frontend.xml ./test/run --env=jsdom --coverage --coverageDirectory=$CIRCLE_ARTIFACTS/cp-frontend --testResultsProcessor=$(node -e \"console.log(require.resolve('jest-junit'))\")`", + "test-ci": "echo 0 `# NODE_ENV=test ./test/run --env=jsdom --coverage`", "prepublish": "node scripts/postinstall" }, "dependencies": { diff --git a/packages/manifest-editor/.babelrc b/packages/manifest-editor/.babelrc deleted file mode 100644 index 8dfc222e..00000000 --- a/packages/manifest-editor/.babelrc +++ /dev/null @@ -1,35 +0,0 @@ -{ - "sourceMaps": true, - "presets": [ - ["babel-preset-env", { - "targets": { - "ie": 9, - "uglify": true - }, - "useBuiltIns": false - }] - ], - "plugins": [ - "transform-react-jsx", - "syntax-jsx", - "transform-react-display-name", - "transform-class-properties", - ["transform-object-rest-spread", { - "useBuiltIns": true - }], - ["transform-react-jsx", { - "useBuiltIns": true - }], - ["transform-runtime", { - "helpers": false, - "polyfill": false, - "regenerator": true - }], - "transform-react-jsx-source", - "transform-react-jsx-self", - ["transform-regenerator", { - "async": false - }], - "syntax-dynamic-import" - ] -} \ No newline at end of file diff --git a/packages/manifest-editor/.eslintignore b/packages/manifest-editor/.eslintignore deleted file mode 100644 index 6db80622..00000000 --- a/packages/manifest-editor/.eslintignore +++ /dev/null @@ -1,3 +0,0 @@ -.nyc_output -coverage -dist \ No newline at end of file diff --git a/packages/manifest-editor/.eslintrc b/packages/manifest-editor/.eslintrc deleted file mode 100644 index 14dc524b..00000000 --- a/packages/manifest-editor/.eslintrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "joyent-portal" -} diff --git a/packages/manifest-editor/.tern-project b/packages/manifest-editor/.tern-project deleted file mode 100644 index 6d78dea5..00000000 --- a/packages/manifest-editor/.tern-project +++ /dev/null @@ -1,10 +0,0 @@ -{ - "libs": [ - "ecmascript" - ], - "plugins": { - "doc_comment": true, - "local-scope": true, - "node": true - } -} \ No newline at end of file diff --git a/packages/manifest-editor/README.md b/packages/manifest-editor/README.md deleted file mode 100644 index 8e807b35..00000000 --- a/packages/manifest-editor/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# manifest-editor - -[![License: MPL 2.0](https://img.shields.io/badge/License-MPL%202.0-brightgreen.svg)](https://opensource.org/licenses/MPL-2.0) -[![npm](https://img.shields.io/npm/v/manifest-editor.svg)](https://npmjs.com/package/manifest-editor) -[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg)](https://github.com/RichardLitt/standard-readme) - -## Table of Contents - -- [Install](#install) -- [Usage](#usage) -- [License](#license) - -## Install - -## Usage - -## License - -MPL-2.0 diff --git a/packages/manifest-editor/package.json b/packages/manifest-editor/package.json deleted file mode 100644 index f1d391d4..00000000 --- a/packages/manifest-editor/package.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "name": "joyent-manifest-editor", - "version": "1.2.1", - "license": "MPL-2.0", - "description": "", - "keywords": [], - "repository": "github:yldio/joyent-portal", - "main": "dist/joyent-manifest-editor.umd.js", - "jsnext:main": "dist/joyent-manifest-editor.es.js", - "module": "dist/joyent-manifest-editor.es.js", - "entry": "src/index.js", - "scripts": { - "lint:css": "echo 0", - "lint-ci:css": "echo 0", - "lint:js": "eslint . --fix", - "lint-ci:js": "eslint . --format junit --output-file $CIRCLE_TEST_REPORTS/lint/manifest-editor.xml", - "lint": "redrun -s lint:*", - "lint-ci": "redrun -p lint-ci:*", - "test": "echo 0 `# bup && NODE_ENV=test jest --coverage`", - "test-ci": "echo 0 `# NODE_ENV=test JEST_JUNIT_OUTPUT=$CIRCLE_TEST_REPORTS/test/manifest-editor.xml jest --coverage --coverageDirectory=$CIRCLE_ARTIFACTS/manifest-editor --testResultsProcessor=$(node -e \"console.log(require.resolve('jest-junit'))\")`", - "build": "bup", - "prepublish": "redrun build" - }, - "dependencies": { - "prop-types": "^15.5.10", - "react-codemirror": "^1.0.0" - }, - "devDependencies": { - "babel-preset-react-app": "^3.0.2", - "bup": "^1.0.9", - "eslint": "^4.5.0", - "eslint-config-joyent-portal": "3.0.0", - "jest": "^20.0.4", - "react": "^15.6.1", - "react-test-renderer": "^15.6.1", - "redrun": "^5.9.16" - }, - "peerDependencies": { - "react": "*" - }, - "jest": { - "testEnvironment": "jsdom", - "testRegex": "test/index.js" - } -} \ No newline at end of file diff --git a/packages/manifest-editor/src/index.js b/packages/manifest-editor/src/index.js deleted file mode 100644 index b8d88a88..00000000 --- a/packages/manifest-editor/src/index.js +++ /dev/null @@ -1,108 +0,0 @@ -import 'codemirror/lib/codemirror.css'; -import 'codemirror/theme/eclipse.css'; -import 'codemirror/addon/fold/foldgutter.css'; -import 'codemirror/addon/lint/lint.css'; -import 'codemirror/mode/yaml/yaml'; -import 'codemirror/mode/javascript/javascript'; -import 'codemirror/mode/properties/properties'; -import 'codemirror/addon/edit/closebrackets'; -import 'codemirror/addon/edit/matchbrackets'; -import 'codemirror/addon/fold/foldcode'; -import 'codemirror/addon/fold/foldgutter'; -import 'codemirror/addon/fold/brace-fold'; -import 'codemirror/addon/fold/indent-fold'; -import 'codemirror/addon/fold/comment-fold'; -import 'codemirror/addon/hint/show-hint'; -import 'codemirror/addon/selection/active-line'; -import 'codemirror/addon/edit/closetag'; - -import React, { Component } from 'react'; -import ReactCodeMirror from 'react-codemirror'; -import PropTypes from 'prop-types'; - -const options = { - theme: 'eclipse', - indentUnit: 2, - smartIndent: true, - tabSize: 2, - indentWithTabs: false, - electricChars: true, - lineNumbers: true, - inputStyle: 'contenteditable', - lint: true, - autoCloseBrackets: true, - styleActiveLine: true, - matchBrackets: true, - lineWrapping: true, - foldGutter: true, - autoCloseTags: true, - viewportMargin: Infinity, - gutters: [ - 'CodeMirror-lint-markers', - 'CodeMirror-foldgutter', - 'CodeMirror-linenumbers' - ] -}; - -class ManifestEditor extends Component { - constructor() { - super(); - - this._refs = {}; - } - ref(name) { - return ref => { - this._refs[name] = ref; - }; - } - options({ mode, readOnly }) { - const modes = { - json: { - name: 'javascript', - json: true - }, - yaml: 'yaml', - ini: 'properties' - }; - - return Object.assign({}, options, { - mode: modes[mode.toLowerCase()], - readOnly - }); - } - render() { - return ( - - ); - } -} - -ManifestEditor.defaultProps = { - mode: 'json', - defaultValue: '', - onChange: () => null, - onFocusChange: () => null, - autoSave: true, - preserveScrollPosition: true, - readOnly: false -}; - -ManifestEditor.propTypes = { - mode: PropTypes.oneOf(['json', 'yaml', 'ini']), - value: PropTypes.string, - onChange: PropTypes.func, - onFocusChange: PropTypes.func, - autoSave: PropTypes.bool, - preserveScrollPosition: PropTypes.bool, - readOnly: PropTypes.bool -}; - -export default ManifestEditor; diff --git a/packages/manifest-editor/test/index.js b/packages/manifest-editor/test/index.js deleted file mode 100644 index 7bd1408c..00000000 --- a/packages/manifest-editor/test/index.js +++ /dev/null @@ -1,8 +0,0 @@ -// import React from 'react'; -// import renderer from 'react-test-renderer'; -// import ManifestEditor from '../src/index'; - -// It('renders correctly', () => { -// const tree = renderer.create().toJSON(); -// expect(tree).toMatchSnapshot(); -// }); diff --git a/packages/my-joyent/CHANGELOG.md b/packages/my-joyent/CHANGELOG.md deleted file mode 100644 index a519a6d0..00000000 --- a/packages/my-joyent/CHANGELOG.md +++ /dev/null @@ -1,4 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. diff --git a/packages/my-joyent/package.json b/packages/my-joyent/package.json index 66073b41..1831221b 100644 --- a/packages/my-joyent/package.json +++ b/packages/my-joyent/package.json @@ -11,11 +11,8 @@ "lint:css": "stylelint './src/**/*.js'", "lint:js": "eslint . --fix", "lint": "redrun -s lint:*", - "lint-ci:css": "stylelint './src/**/*.js'", - "lint-ci:js": "eslint . --format junit --output-file $CIRCLE_TEST_REPORTS/lint/cp-frontend.xml", - "lint-ci": "redrun -p lint-ci:*", "test": "NODE_ENV=test ./test/run --env=jsdom", - "test-ci": "echo 0 `# NODE_ENV=test JEST_JUNIT_OUTPUT=$CIRCLE_TEST_REPORTS/test/cp-frontend.xml ./test/run --env=jsdom --coverage --coverageDirectory=$CIRCLE_ARTIFACTS/cp-frontend --testResultsProcessor=$(node -e \"console.log(require.resolve('jest-junit'))\")`", + "test-ci": "echo 0 `# NODE_ENV=test ./test/run --env=jsdom --coverage`", "prepublish": "node scripts/postinstall" }, "dependencies": { @@ -23,7 +20,6 @@ "graphql-tag": "^2.4.2", "jest-cli": "^21.0.1", "joyent-ui-toolkit": "^2.0.0", - "lodash.isequal": "^4.5.0", "normalized-styled-components": "^1.0.9", "prop-types": "^15.5.10", "react": "^15.6.1", diff --git a/packages/normalized-styled-components/.babelrc b/packages/normalized-styled-components/.babelrc deleted file mode 100644 index 8914de81..00000000 --- a/packages/normalized-styled-components/.babelrc +++ /dev/null @@ -1,13 +0,0 @@ -{ - "sourceMaps": "inline", - "plugins": [ - "styled-components" - ], - "env": { - "test": { - "presets": [ - "react-app" - ] - } - } -} diff --git a/packages/normalized-styled-components/.eslintignore b/packages/normalized-styled-components/.eslintignore deleted file mode 100644 index 6db80622..00000000 --- a/packages/normalized-styled-components/.eslintignore +++ /dev/null @@ -1,3 +0,0 @@ -.nyc_output -coverage -dist \ No newline at end of file diff --git a/packages/normalized-styled-components/.eslintrc b/packages/normalized-styled-components/.eslintrc deleted file mode 100644 index 14dc524b..00000000 --- a/packages/normalized-styled-components/.eslintrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "joyent-portal" -} diff --git a/packages/normalized-styled-components/.stylelintrc b/packages/normalized-styled-components/.stylelintrc deleted file mode 100644 index 42c893e9..00000000 --- a/packages/normalized-styled-components/.stylelintrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "syntax": "scss", - "processors": ["stylelint-processor-styled-components"], - "extends": ["stylelint-config-standard", "stylelint-config-primer"] -} \ No newline at end of file diff --git a/packages/normalized-styled-components/.tern-project b/packages/normalized-styled-components/.tern-project deleted file mode 100644 index 6d78dea5..00000000 --- a/packages/normalized-styled-components/.tern-project +++ /dev/null @@ -1,10 +0,0 @@ -{ - "libs": [ - "ecmascript" - ], - "plugins": { - "doc_comment": true, - "local-scope": true, - "node": true - } -} \ No newline at end of file diff --git a/packages/normalized-styled-components/CHANGELOG.md b/packages/normalized-styled-components/CHANGELOG.md deleted file mode 100644 index 4771c951..00000000 --- a/packages/normalized-styled-components/CHANGELOG.md +++ /dev/null @@ -1,13 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. - - -## 1.0.5 (2017-05-25) - - - - - -## 1.0.4 (2017-05-25) diff --git a/packages/normalized-styled-components/README.md b/packages/normalized-styled-components/README.md deleted file mode 100644 index 0cfa6250..00000000 --- a/packages/normalized-styled-components/README.md +++ /dev/null @@ -1,64 +0,0 @@ -# normalized-styled-components - -[![License: MPL 2.0](https://img.shields.io/badge/License-MPL%202.0-brightgreen.svg)](https://opensource.org/licenses/MPL-2.0) -[![npm](https://img.shields.io/npm/v/normalized-styled-components.svg)](https://npmjs.com/package/normalized-styled-components) -[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg)](https://github.com/RichardLitt/standard-readme) - -[`normalize.css`](https://github.com/necolas/normalize.css) with a [`styled-components`](https://github.com/styled-components/styled-components) mindset. - -## Table of Contents - -- [Install](#install) -- [Usage](#usage) -- [License](#license) - -## Install - -``` -yarn add --dev normalized-styled-components -``` - -## Usage - -```js -import { Button } from 'normalized-styled-components'; - -export default () => ( - -) -``` -```css -.jdhBdT { - font-family: sans-serif; - font-size: 100%; - line-height: 1.15; - margin: 0; - overflow: visible; - text-transform: none; - appearance: button; - -moz-appearance: button; - -webkit-appearance: button; -} - -.jdhBdT::-moz-focus-inner, -.jdhBdT[type="button"]::-moz-focus-inner, -.jdhBdT[type="reset"]::-moz-focus-inner, -.jdhBdT[type="submit"]::-moz-focus-inner { - border-style: none; - padding: 0; -} - -.jdhBdT:-moz-focusring, -.jdhBdT[type="button"]:-moz-focusring, -.jdhBdT[type="reset"]:-moz-focusring, -.jdhBdT[type="submit"]:-moz-focusring { - outline: 0.0625rem dotted ButtonText; -} -``` -```html - -``` - -## License - -MPL-2.0 diff --git a/packages/normalized-styled-components/package.json b/packages/normalized-styled-components/package.json deleted file mode 100644 index 9de375b9..00000000 --- a/packages/normalized-styled-components/package.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "name": "normalized-styled-components", - "version": "1.0.10", - "license": "MPL-2.0", - "description": "normalize.css with a styled-components mindset", - "keywords": [ - "normalizations", - "style", - "css", - "react", - "css", - "css-in-js", - "styled-components" - ], - "repository": "github:yldio/joyent-portal", - "main": "dist/normalized-styled-components.umd.js", - "jsnext:main": "dist/normalized-styled-components.es.js", - "module": "dist/normalized-styled-components.es.js", - "entry": "src/index.js", - "scripts": { - "lint:css": "echo 0", - "lint-ci:css": "echo 0", - "lint:js": "eslint . --fix", - "lint-ci:js": "eslint . --format junit --output-file $CIRCLE_TEST_REPORTS/lint/normalized-styled-components.xml", - "lint": "redrun -s lint:*", - "lint-ci": "redrun -p lint-ci:*", - "test": "bup && NODE_ENV=test jest --coverage", - "test-ci": "NODE_ENV=test JEST_JUNIT_OUTPUT=$CIRCLE_TEST_REPORTS/test/normalized-styled-components.xml jest --coverage --coverageDirectory=$CIRCLE_ARTIFACTS/normalized-styled-components --testResultsProcessor=$(node -e \"console.log(require.resolve('jest-junit'))\")", - "build": "bup", - "prepublish": "redrun build" - }, - "dependencies": { - "remcalc": "^1.0.8" - }, - "devDependencies": { - "babel-plugin-styled-components": "^1.2.0", - "babel-preset-react-app": "^3.0.2", - "bup": "^1.0.9", - "chalk": "^2.1.0", - "eslint": "^4.5.0", - "eslint-config-joyent-portal": "3.0.0", - "jest": "^20.0.4", - "jest-diff": "^20.0.3", - "jest-junit": "^3.0.0", - "jest-matcher-utils": "^20.0.3", - "jest-snapshot": "^20.0.3", - "jest-styled-components": "^4.4.1", - "react": "^15.6.1", - "react-scripts": "^1.0.12", - "react-test-renderer": "^15.6.1", - "redrun": "^5.9.17", - "strip-ansi": "^4.0.0", - "styled-components": "^2.1.2", - "stylelint": "^8.0.0", - "stylelint-config-primer": "^2.0.1", - "stylelint-config-standard": "^17.0.0", - "stylelint-processor-styled-components": "styled-components/stylelint-processor-styled-components#2a33b5f" - }, - "peerDependencies": { - "react": "*", - "styled-components": "*" - }, - "jest": { - "testEnvironment": "jsdom", - "testRegex": "test/index.js", - "setupFiles": [ - "/../../node_modules/react-scripts/config/polyfills.js" - ], - "testEnvironment": "node", - "transform": { - "^.+\\.(js|jsx)$": "/../../node_modules/react-scripts/config/jest/babelTransform.js", - "^(?!.*\\.(js|jsx|css|json)$)": "/../../node_modules/react-scripts/config/jest/fileTransform.js" - }, - "transformIgnorePatterns": [ - "[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$" - ], - "rootDir": "." - } -} \ No newline at end of file diff --git a/packages/normalized-styled-components/src/index.js b/packages/normalized-styled-components/src/index.js deleted file mode 100644 index 6fd45b8d..00000000 --- a/packages/normalized-styled-components/src/index.js +++ /dev/null @@ -1,259 +0,0 @@ -import styled from 'styled-components'; -import remcalc from 'remcalc'; - -export const Article = styled.article` - display: block; -`; - -export const Aside = styled.aside` - display: block; -`; - -export const Footer = styled.footer` - display: block; -`; - -export const Header = styled.header` - display: block; -`; - -export const Nav = styled.nav` - display: block; -`; - -export const Section = styled.section` - display: block; -`; - -export const FigCaption = styled.figcaption` - display: block; -`; - -export const Figure = styled.figure` - display: block; - margin: ${remcalc(16)} ${remcalc(40)}; -`; - -export const Main = styled.main` - display: block; -`; - -export const H1 = styled.h1` - font-size: ${remcalc(32)}; - margin: ${remcalc(10)} 0; -`; - -export const Hr = styled.hr` - box-sizing: content-box; - height: 0; - overflow: visible; -`; - -export const Pre = styled.pre` - font-family: monospace, monospace; - font-size: ${remcalc(16)}; -`; - -export const A = styled.a` - background-color: transparent; - text-decoration-skip: objects; -`; - -export const Abbr = styled.abbr` - &[title] { - border-bottom: none; - text-decoration: underline; - text-decoration: underline dotted; - } -`; - -export const B = styled.b` - font-weight: bolder; -`; - -export const Strong = styled.strong` - font-weight: bolder; -`; - -export const Code = styled.code` - font-family: monospace, monospace; - font-size: ${remcalc(16)}; -`; - -export const Kbd = styled.kbd` - font-family: monospace, monospace; - font-size: ${remcalc(16)}; -`; - -export const Samp = styled.samp` - font-family: monospace, monospace; - font-size: ${remcalc(16)}; -`; - -export const Dfn = styled.dfn` - font-style: italic; -`; - -export const Mark = styled.mark` - background-color: #ff0; - color: #000; -`; - -export const Small = styled.small` - font-size: 80%; -`; - -export const Sub = styled.sub` - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; - bottom: -0.25em; -`; - -export const Sup = styled.sup` - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; - top: -0.5em; -`; - -export const Audio = styled.audio` - display: inline-block; - - &:not([controls]) { - display: none; - height: 0; - } -`; - -export const Video = styled.video` - display: inline-block; -`; - -export const Img = styled.img` - border-style: none; -`; - -export const Svg = styled.svg` - &:not(:root) { - overflow: hidden; - } -`; - -export const Button = styled.button` - font-family: sans-serif; - font-size: 100%; - line-height: 1.15; - margin: 0; - overflow: visible; - text-transform: none; - appearance: button; - - &::-moz-focus-inner, - &[type='button']::-moz-focus-inner, - &[type='reset']::-moz-focus-inner, - &[type='submit']::-moz-focus-inner { - border-style: none; - padding: 0; - } - - &:-moz-focusring, - &[type='button']:-moz-focusring, - &[type='reset']:-moz-focusring, - &[type='submit']:-moz-focusring { - outline: ${remcalc(1)} dotted ButtonText; - } -`; - -export const Input = styled.input` - font-family: sans-serif; - font-size: 100%; - line-height: 1.15; - margin: 0; - overflow: visible; - - &[type='checkbox'], - &[type='radio'] { - box-sizing: border-box; - padding: 0; - } - - &[type='number']::-webkit-inner-spin-button, - &[type='number']::-webkit-outer-spin-button { - height: auto; - } - - &[type='search'] { - appearance: textfield; - outline-offset: ${remcalc(-2)}; - } - - &[type='search']::-webkit-search-cancel-button, - &[type='search']::-webkit-search-decoration { - appearance: none; - } - - &::-webkit-file-upload-button { - appearance: button; - font: inherit; - } -`; - -export const Optgroup = styled.optgroup` - font-family: sans-serif; - font-size: 100%; - line-height: 1.15; - margin: 0; -`; - -export const Select = styled.select` - font-family: sans-serif; - font-size: 100%; - line-height: 1.15; - margin: 0; - text-transform: none; -`; - -export const Textarea = styled.textarea` - font-family: sans-serif; - font-size: 100%; - line-height: 1.15; - margin: 0; - overflow: auto; -`; - -export const Fieldset = styled.fieldset` - padding: 0.35em 0.75em 0.625em; -`; - -export const Legend = styled.legend` - box-sizing: border-box; - color: inherit; - display: table; - max-width: 100%; - padding: 0; - white-space: normal; -`; - -export const Progress = styled.progress` - display: inline-block; - vertical-align: baseline; -`; - -export const Details = styled.details` - display: block; -`; - -export const Menu = styled.menu` - display: block; -`; - -export const Summary = styled.summary` - display: list-item; -`; - -export const Canvas = styled.canvas` - display: inline-block; -`; diff --git a/packages/normalized-styled-components/test/__snapshots__/index.js.snap b/packages/normalized-styled-components/test/__snapshots__/index.js.snap deleted file mode 100644 index 90160bbe..00000000 --- a/packages/normalized-styled-components/test/__snapshots__/index.js.snap +++ /dev/null @@ -1,502 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`renders correctly 1`] = ` -.c0 { - background-color: transparent; - text-decoration-skip: objects; -} - - -`; - -exports[`renders correctly 1`] = ` -.c0[title] { - border-bottom: none; - text-decoration: underline; - text-decoration: underline dotted; -} - - -`; - -exports[`renders
correctly 1`] = ` -.c0 { - display: block; -} - -
-`; - -exports[`renders