Skip to content

Commit

Permalink
change plugin name, update package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
billouboq committed Aug 2, 2018
1 parent 570899d commit 0cdef78
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 10 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
declare namespace RemoveDuplicateCSS {
declare namespace SlashCSS {
interface Options {
targets: string,
}
Expand Down
25 changes: 17 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
{
"name": "RemoveDuplicateCSS",
"name": "postcss-slashcss",
"version": "1.0.0",
"description": "",
"description": "PostCSS plugin to remove duplicate css between multiple files",
"keywords": [
"css",
"postcss",
"postcss-plugin",
"optimisation",
"remove",
"duplicate",
"slash",
"slim"
],
"author": "Gatsbill",
"license": "MIT",
"repository": "https://github.com/billouboq/postcss-slashcss.git",
"main": "./dist/index.js",
"scripts": {
"build": "tsc",
"test": "jest tests",
"coverage": "jest --collectCoverageFrom=src/**.js --coverage"
"build": "jest tests && tsc",
"test": "jest tests"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@types/jest": "^23.3.1",
"@types/node": "^10.5.5",
Expand Down
Empty file added readme.md
Empty file.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import glob from "fast-glob";

const getFileContent = util.promisify(fs.readFile);

export default postcss.plugin<PostCSSSlasher.Options>('slasher', (opts) => {
export default postcss.plugin<SlashCSS.Options>('slashcss', (opts) => {

if (!opts || !opts.targets) {
throw new Error("This plugins needs an option object with a targets propertie");
Expand Down

0 comments on commit 0cdef78

Please sign in to comment.