Skip to content

Commit

Permalink
submodule (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
gucong3000 authored May 4, 2018
1 parent de610d3 commit 3454f50
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 127 deletions.
22 changes: 0 additions & 22 deletions .editorconfig

This file was deleted.

73 changes: 0 additions & 73 deletions .eslintrc.json

This file was deleted.

6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ language: node_js

node_js:
- stable
- 4

script:
- nyc mocha --no-timeouts

after_script:
- npm run report-coverage
- codecov
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 刘祺
Copyright (c) 2018 刘祺

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ First thing's first, install the module:
npm install postcss-syntax postcss-html --save-dev
```

If you want support SCSS/SASS/LESS/SugarSS syntax, you need to install the corresponding module.

- SCSS: [postcss-scss](https://github.com/postcss/postcss-scss)
- SASS: [postcss-sass](https://github.com/aleshaoleg/postcss-sass)
- LESS: [postcss-less](https://github.com/shellscape/postcss-less)
- SugarSS: [sugarss](https://github.com/postcss/sugarss)

## Use Cases

```js
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/index.js → index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use strict";
const extract = require("./extract");
const syntax = require("postcss-syntax/lib/syntax")(extract);
const syntax = require("postcss-syntax/syntax")(extract);

module.exports = syntax;
43 changes: 15 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,7 @@
{
"name": "postcss-html",
"version": "0.22.0",
"version": "0.23.1",
"description": "PostCSS syntax for parsing HTML (and HTML-like)",
"main": "lib/index.js",
"scripts": {
"report-coverage": "codecov",
"pretest": "eslint lib test",
"test": "nyc mocha --no-timeouts"
},
"nyc": {
"lines": 100,
"statements": 100,
"functions": 100,
"branches": 100,
"reporter": [
"lcov",
"text"
],
"all": true,
"cache": true,
"check-coverage": true
},
"repository": {
"type": "git",
"url": "git+https://github.com/gucong3000/postcss-html.git"
Expand All @@ -45,29 +26,35 @@
"url": "https://github.com/gucong3000/postcss-html/issues"
},
"homepage": "https://github.com/gucong3000/postcss-html#readme",
"nyc": {
"reporter": [
"lcov",
"text"
],
"all": true,
"cache": true,
"check-coverage": true
},
"scripts": {
"test": "nyc mocha --no-timeouts"
},
"dependencies": {
"htmlparser2": "^3.9.2"
},
"peerDependencies": {
"postcss": ">=5.0.0",
"postcss-syntax": "*"
"postcss-syntax": ">=0.3.0"
},
"devDependencies": {
"autoprefixer": "^8.3.0",
"chai": "^4.1.2",
"codecov": "^3.0.1",
"eslint": "^4.19.1",
"eslint-config-standard": "^11.0.0",
"eslint-plugin-import": "^2.11.0",
"eslint-plugin-node": "^6.0.1",
"eslint-plugin-promise": "^3.7.0",
"eslint-plugin-standard": "^3.1.0",
"mocha": "^5.1.1",
"nyc": "^11.7.1",
"postcss": "^6.0.21",
"postcss-less": "^1.1.5",
"postcss-scss": "^1.0.5",
"postcss-syntax": "github:gucong3000/postcss-syntax#HEAD",
"postcss-syntax": "^0.3.0",
"sugarss": "^1.0.1"
}
}

0 comments on commit 3454f50

Please sign in to comment.