Skip to content

Commit

Permalink
Delete Phenomic and update dependencies (#74)
Browse files Browse the repository at this point in the history
* Delete Phenomic and update dependencies

The migration to Docusaurus has worked (see #67), so this deletes Phenomic code as the old engine.

- Delete unused directories and files.
- Update dependencies.
- Use Node 12 (latest) in Travis CI.

* Set Node version via `.nvmrc`

Travis CI and Netlify recognize a `.nvmrc` file to detect needed Node version.

* Update README for new npm-run scripts

* Use Node v10 LTS instead of v12

* Arrange npm scripts

* Fix warning of `eslint-plugin-react`

> Warning: React version not specified in eslint-plugin-react settings. See https://github.com/yannickcr/eslint-plugin-react#configuration .

* Set `NODE_ENV=production` to prevent PostCSS warning

> Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.
  • Loading branch information
ybiquitous authored and hudochenkov committed Jul 14, 2019
1 parent 17b7892 commit 755681e
Show file tree
Hide file tree
Showing 60 changed files with 44 additions and 2,396 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
package-lock=false
engine-strict=true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10
6 changes: 1 addition & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
sudo: false

language: node_js
node_js:
- 8
script:
- npm run lint
- npm test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Or to update the website to the latest version of stylelint:

```shell
npm install --save-dev stylelint@latest
npm run deploy
npm run build
```

... then commit and push your dependency change.
162 changes: 35 additions & 127 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,91 +5,40 @@
"homepage": "https://stylelint.io",
"license": "MIT",
"repository": "https://github.com/stylelint/stylelint.io.git",
"twitter": "stylelint",
"googleAnalyticsUA": "UA-72480048-1",
"engines": {
"node": ">=10"
},
"scripts": {
"precommit": "lint-staged",
"postinstall": "cd website && npm install",
"lint:js": "eslint . --ignore-path .gitignore",
"lint:css": "stylelint \"src/**/*.css\"",
"lint:css": "stylelint --ignore-path .gitignore \"**/*.css\"",
"lint": "npm-run-all --parallel lint:*",
"prettier:check": "prettier '**/*.js' --list-different",
"prettier:fix": "prettier '**/*.js' --write",
"pretest": "npm run lint",
"test": "jest && npm run build",
"precopy": "rimraf content dist",
"copy": "node ./scripts/copy-stylelint-docs",
"prestart": "npm run copy",
"start": "phenomic start",
"prebuild": "npm run copy",
"build": "phenomic build",
"predeploy": "npm run build",
"deploy": "gh-pages -t -d dist -r git@github.com:stylelint/stylelint.github.io.git -b master",
"watch": "jest --watch",
"test": "npm run build",
"pregendoc": "rimraf docs",
"gendoc": "node ./scripts/generate-stylelint-docs docs"
},
"phenomic": {
"assets": false,
"CNAME": true,
"nojekyll": true
},
"babel": {
"env": {
"test": {
"presets": [
"babel-preset-env",
"babel-preset-stage-2",
"babel-preset-react"
]
},
"development": {
"presets": [
"babel-preset-env",
"babel-preset-stage-2",
"babel-preset-react"
],
"plugins": [
"babel-plugin-transform-react-jsx-source",
"babel-plugin-transform-react-jsx-self",
"react-hot-loader/babel"
]
},
"production": {
"presets": [
"babel-preset-react-optimize",
"babel-preset-env",
"babel-preset-stage-2",
"babel-preset-react"
]
},
"webpack-development": {
"presets": [
"babel-preset-env",
"babel-preset-stage-2",
"babel-preset-react"
],
"plugins": [
"babel-plugin-transform-react-jsx-source",
"babel-plugin-transform-react-jsx-self",
"react-hot-loader/babel"
]
},
"webpack-production": {
"presets": [
"babel-preset-react-optimize",
"babel-preset-env",
"babel-preset-stage-2",
"babel-preset-react"
]
}
}
"gendoc": "node ./scripts/generate-stylelint-docs docs",
"build": "npm run gendoc && cd website && NODE_ENV=production npm run build",
"start": "npm run gendoc && cd website && npm start"
},
"eslintConfig": {
"root": true,
"extends": "./node_modules/phenomic/lib/eslint-config-recommended/index.js",
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"settings": {
"react": {
"version": "16.8"
}
},
"parserOptions": {
"ecmaVersion": "2019"
},
"env": {
"node": true,
"jest": true
"browser": true,
"node": true
}
},
"stylelint": {
Expand Down Expand Up @@ -126,72 +75,31 @@
"string-quotes": "double"
}
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"prettier --write",
"git add"
]
},
"jest": {
"preset": "jest-preset-stylelint"
},
"devDependencies": {
"babel-cli": "^6.14.0",
"babel-core": "^6.14.0",
"babel-eslint": "^8.1.2",
"babel-loader": "^7.0.0-beta.1",
"babel-plugin-transform-react-jsx-self": "^6.11.0",
"babel-plugin-transform-react-jsx-source": "^6.9.0",
"babel-preset-env": "^1.3.2",
"babel-preset-react": "^6.23.0",
"babel-preset-react-optimize": "^1.0.1",
"babel-preset-stage-2": "^6.22.0",
"classnames": "^2.2.5",
"css-loader": "^0.28.0",
"eslint": "^4.14.0",
"eslint-loader": "^1.6.1",
"eslint-plugin-react": "^7.5.1",
"extract-text-webpack-plugin": "^2.1.0",
"file-loader": "^1.1.6",
"fs-extra": "^5.0.0",
"gh-pages": "^1.1.0",
"eslint": "^6.0.1",
"eslint-plugin-react": "^7.14.2",
"glob": "^7.1.4",
"history": "^2.0.0",
"husky": "^0.14.3",
"jest": "^22.0.4",
"jest-preset-stylelint": "^1.3.0",
"lint-staged": "^6.0.0",
"mdast-util-to-string": "^1.0.2",
"husky": "^3.0.0",
"lint-staged": "^9.2.0",
"npm-run-all": "^4.1.5",
"phenomic": "^0.21.0",
"postcss-browser-reporter": "^0.5.0",
"postcss-cssnext": "^3.0.2",
"postcss-loader": "^2.0.9",
"postcss-reporter": "^5.0.0",
"prettier": "~1.9.2",
"prop-types": "^15.6.0",
"raw-loader": "^0.5.1",
"react": "^15.4.1",
"react-dom": "^15.4.1",
"react-google-analytics": "^0.2.0",
"react-helmet": "^3.2.2",
"react-hot-loader": "^3.0.0-beta.6",
"react-redux": "^4.4.6",
"react-router": "^2.3.0",
"react-svg-inline": "^2.0.1",
"react-topbar-progress-indicator": "^2.0.0",
"redux": "^3.6.0",
"prettier": "^1.18.2",
"remark": "^10.0.1",
"remark-inline-links": "^3.1.3",
"remark-toc": "^3.1.0",
"rimraf": "^2.5.4",
"style-loader": "^0.19.1",
"rimraf": "^2.6.3",
"stylelint": "^10.1.0",
"stylelint-config-standard": "^18.3.0",
"stylelint-order": "^2.2.1",
"unist-util-visit": "^1.1.1",
"warning": "^3.0.0",
"webpack": "^2.3.3",
"whatwg-fetch": "^2.0.1"
"unist-util-visit": "^1.1.1"
}
}

This file was deleted.

This file was deleted.

71 changes: 0 additions & 71 deletions plugins/remark-stylelint-pattern-validity/index.js

This file was deleted.

0 comments on commit 755681e

Please sign in to comment.