Skip to content
This repository was archived by the owner on Feb 16, 2021. It is now read-only.

Commit fa0404f

Browse files
authored
Merge pull request #3 from ezavile/feature/typescript-config
feature/typescript-config
2 parents 4ec3126 + 4acd68b commit fa0404f

10 files changed

+2076
-1193
lines changed

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ node_modules/
1010
# Optional npm cache directory
1111
.npm
1212

13-
# dotenv environment variables file
14-
.env
13+
dist/
14+
.vscode/

.travis.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
language: node_js
2+
cache:
3+
yarn: true
4+
directories:
5+
- node_modules
6+
notifications:
7+
email:
8+
on_success: change
9+
on_failure: always
10+
node_js:
11+
- '7'
12+
before_script:
13+
- npm prune
14+
after_success:
15+
- npm run semantic-release
16+
branches:
17+
except:
18+
- /^v\d+\.\d+\.\d+$/

dist/postcss-typescript-css.js

-1
This file was deleted.

package.json

+35-14
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,48 @@
11
{
22
"name": "postcss-typescript-css",
3-
"version": "0.0.0",
3+
"version": "0.0.0-development",
44
"description": "PostCSS plugin to create a typescript file by each CSS file",
5-
"main": "src/index.ts",
5+
"main": "dist/postcss-typescript-css",
6+
"scripts": {
7+
"commit": "git-cz",
8+
"clean": "rimraf dist",
9+
"compile": "npm run clean && tsc",
10+
"compile:watch": "tsc --watch",
11+
"lint": "npm run tslint \"src/**/*.ts\"",
12+
"tslint": "tslint --project tsconfig.json",
13+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
14+
},
615
"repository": "[email protected]:ezavile/postcss-typescript-css.git",
7-
"author": "ezavile <[email protected]>",
16+
"author": "Edgar Zavala <[email protected]>",
817
"license": "MIT",
9-
"scripts": {
10-
"start": "webpack",
11-
"tslint": "tslint",
12-
"lint": "npm run tslint \"src/**/*.ts\""
18+
"keywords": [
19+
"postcss",
20+
"postcss-plugin",
21+
"typescript",
22+
"css"
23+
],
24+
"bugs": {
25+
"url": "https://github.com/ezavile/postcss-typescript-css/issues"
1326
},
27+
"homepage": "https://github.com/ezavile/postcss-typescript-css",
1428
"devDependencies": {
29+
"@types/core-js": "^0.9.41",
1530
"@types/node": "^7.0.12",
16-
"babili-webpack-plugin": "^0.0.11",
17-
"clean-webpack-plugin": "^0.1.16",
18-
"ts-loader": "^2.0.3",
31+
"commitizen": "^2.9.6",
32+
"core-js": "^2.4.1",
33+
"cz-conventional-changelog": "^2.0.0",
34+
"rimraf": "^2.6.1",
35+
"semantic-release": "^6.3.2",
1936
"tslint": "^5.1.0",
20-
"tslint-loader": "^3.5.2",
21-
"typescript": "^2.2.2",
22-
"webpack": "^2.3.3"
37+
"typescript": "^2.2.2"
2338
},
2439
"dependencies": {
25-
"postcss": "^5.2.17"
40+
"global": "^4.3.2",
41+
"semantic-release-cli": "^3.0.3"
42+
},
43+
"config": {
44+
"commitizen": {
45+
"path": "node_modules/cz-conventional-changelog"
46+
}
2647
}
2748
}

src/index.ts

-7
This file was deleted.

src/postcss-typescript-css.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const postcssTypescriptCss = () => {
2+
return 'Welcome to postcss-typescript-css';
3+
};
4+
5+
export = postcssTypescriptCss;

tsconfig.json

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
{
22
"compilerOptions": {
3-
"outDir": "./dist/",
4-
"sourceMap": true,
3+
"outDir": "dist",
4+
"rootDir": "src",
5+
"sourceMap": false,
56
"noImplicitAny": true,
7+
"declaration": false,
68
"module": "commonjs",
7-
"target": "es5",
9+
"target": "es6",
10+
"removeComments": true,
11+
"lib": [
12+
"es2015"
13+
],
814
"types": [
915
"node"
1016
],
@@ -13,6 +19,9 @@
1319
]
1420
},
1521
"include": [
16-
"./src/**/*"
22+
"./src/**/*.ts"
23+
],
24+
"exclude": [
25+
"node_modules"
1726
]
1827
}

tslint.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"no-shadowed-variable": true,
5353
"no-string-literal": false,
5454
"no-switch-case-fall-through": true,
55-
"no-unused-expression": true,
55+
"no-unused-expression": false,
5656
"no-unused-variable": false,
5757
"no-var-keyword": true,
5858
"radix": true,

webpack.config.js

-60
This file was deleted.

0 commit comments

Comments
 (0)