Skip to content

Commit edae141

Browse files
committed
chore: re-branding as twind
1 parent ce96aca commit edae141

File tree

10 files changed

+536
-6371
lines changed

10 files changed

+536
-6371
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,8 @@ jobs:
2222
- name: Install 🔧
2323
uses: bahmutov/npm-install@v1
2424

25-
- name: Test
26-
run: yarn run ci
25+
- name: Lint
26+
run: yarn run lint
2727

2828
- name: Build
2929
run: yarn run build
30-
31-
- name: Coveralls
32-
uses: coverallsapp/github-action@master
33-
with:
34-
github-token: ${{ secrets.GITHUB_TOKEN }}
35-
flag-name: build-${{ matrix.node }}-${{ matrix.os }}
36-
parallel: true
37-
38-
finish:
39-
needs: build
40-
runs-on: ubuntu-latest
41-
steps:
42-
- name: Coveralls Finished
43-
uses: coverallsapp/github-action@master
44-
with:
45-
github-token: ${{ secrets.github_token }}
46-
parallel-finished: true

.vscode/extensions.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"recommendations": [
3-
"Orta.vscode-jest",
43
"esbenp.prettier-vscode",
54
"dbaeumer.vscode-eslint",
65
"drknoxy.eslint-disable-snippets",

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# @tw-in-js/typescript-plugin
1+
# @twind/typescript-plugin
22

33
> TypeScript language service plugin that adds IntelliSense for tailwindjs
44
5-
[![MIT License](https://flat.badgen.net/github/license/tw-in-js/typescript-plugin)](https://github.com/tw-in-js/core/blob/main/LICENSE)
6-
[![Latest Release](https://flat.badgen.net/npm/v/@tw-in-js/typescript-plugin?icon=npm&label)](https://www.npmjs.com/package/@tw-in-js/typescript-plugin)
5+
[![MIT License](https://flat.badgen.net/github/license/tw-in-js/typescript-plugin)](https://github.com/tw-in-js/typescript-plugin/blob/main/LICENSE)
6+
[![Latest Release](https://flat.badgen.net/npm/v/@twind/typescript-plugin?icon=npm&label)](https://www.npmjs.com/package/@twind/typescript-plugin)
77
[![Github](https://flat.badgen.net/badge/icon/tw-in-js%2Ftypescript-plugin?icon=github&label)](https://github.com/tw-in-js/typescript-plugin)
88

99
---
@@ -34,7 +34,7 @@ Provides editor support for ```tw`...```` tagged template syntax including:
3434
## Installation
3535

3636
```sh
37-
npm install --save-dev @tw-in-js/typescript-plugin
37+
npm install --save-dev @twind/typescript-plugin
3838
```
3939

4040
## Usage
@@ -54,7 +54,7 @@ Then add a `plugins` section to your [`tsconfig.json`](http://www.typescriptlang
5454
"compilerOptions": {
5555
"plugins": [
5656
{
57-
"name": "@tw-in-js/typescript-plugin"
57+
"name": "@twind/typescript-plugin"
5858
}
5959
]
6060
}
@@ -82,7 +82,7 @@ Finally add a `plugins` section to your [`tsconfig.json`](http://www.typescriptl
8282
"compilerOptions": {
8383
"plugins": [
8484
{
85-
"name": "@tw-in-js/typescript-plugin"
85+
"name": "@twind/typescript-plugin"
8686
}
8787
]
8888
}
@@ -100,7 +100,7 @@ Then add a `plugins` section to your [`tsconfig.json`](http://www.typescriptlang
100100
"compilerOptions": {
101101
"plugins": [
102102
{
103-
"name": "@tw-in-js/typescript-plugin"
103+
"name": "@twind/typescript-plugin"
104104
}
105105
]
106106
}
@@ -120,7 +120,7 @@ Then add a `plugins` section to your [`tsconfig.json`](http://www.typescriptlang
120120
"compilerOptions": {
121121
"plugins": [
122122
{
123-
"name": "@tw-in-js/typescript-plugin"
123+
"name": "@twind/typescript-plugin"
124124
}
125125
]
126126
}
@@ -154,7 +154,7 @@ You can enable IntelliSense for other tag names by configuring `"tags"`:
154154
"compilerOptions": {
155155
"plugins": [
156156
{
157-
"name": "@tw-in-js/typescript-plugin",
157+
"name": "@twind/typescript-plugin",
158158
"tags": ["tw", "cx"]
159159
}
160160
]
@@ -197,7 +197,7 @@ cd dist
197197
yarn link
198198
cd project-fixtures/react-apollo-prj
199199
yarn install
200-
yarn link @tw-in-js/typescript-plugin
200+
yarn link @twind/typescript-plugin
201201
code . # Or launch editor/IDE what you like
202202
```
203203

package-scripts.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 67 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,101 @@
11
{
2-
"name": "@tw-in-js/typescript-plugin",
2+
"name": "@twind/typescript-plugin",
33
"version": "0.0.1",
4-
"description": "TypeScript language service plugin that adds IntelliSense for tailwindjs",
4+
"description": "TypeScript language service plugin that adds IntelliSense for twind",
5+
"//": "mark as private to prevent accidental publish - use 'yarn release'",
6+
"private": true,
57
"keywords": [
68
"TypeScript",
79
"tw-in-js",
810
"tailwind-in-js",
911
"tailwind"
1012
],
1113
"homepage": "https://github.com/tw-in-js/typescript-plugin#readme",
12-
"bugs": {
13-
"url": "https://github.com/tw-in-js/typescript-plugin/issues"
14-
},
15-
"repository": {
16-
"type": "git",
17-
"url": "git+https://github.com/tw-in-js/typescript-plugin.git"
18-
},
14+
"bugs": "https://github.com/tw-in-js/typescript-plugin/issues",
15+
"repository": "github:tw-in-js/typescript-plugin",
1916
"license": "MIT",
2017
"contributors": [
2118
"Luke Jackson (lukejacksonn.github.io)",
2219
"Sascha Tandel (https://github.com/sastan)"
2320
],
24-
"main": "dist/node/typescript-plugin.js",
21+
"main": "dist/node/twind_typescript-plugin.js",
2522
"source": "src/index.ts",
2623
"browser": false,
2724
"scripts": {
28-
"build": "nps",
29-
"ci": "nps",
30-
"format": "nps",
31-
"prelink": "yarn build",
32-
"link": "cd dist && yarn link",
33-
"release": "np",
34-
"test": "nps",
35-
"version": "nps build.package"
25+
"build": "./scripts/esbundle.js",
26+
"format": "prettier --write --ignore-path .gitignore .",
27+
"lint": "eslint --ext .js,.ts --ignore-path .gitignore .",
28+
"lint:fix": "yarn lint -- --fix",
29+
"release": "npx np --contents dist",
30+
"version": "yarn build"
3631
},
37-
"prettier": "@carv/prettier-config",
38-
"eslintConfig": {
39-
"extends": "@carv/eslint-config",
40-
"root": true
32+
"prettier": {
33+
"printWidth": 100,
34+
"semi": false,
35+
"singleQuote": true,
36+
"trailingComma": "all",
37+
"bracketSpacing": true
4138
},
42-
"jest": {
43-
"preset": "@carv/jest-preset"
39+
"eslintConfig": {
40+
"root": true,
41+
"parserOptions": {
42+
"ecmaVersion": 2020,
43+
"sourceType": "module"
44+
},
45+
"env": {
46+
"es6": true,
47+
"shared-node-browser": true
48+
},
49+
"extends": [
50+
"eslint:recommended",
51+
"plugin:prettier/recommended"
52+
],
53+
"overrides": [
54+
{
55+
"files": [
56+
"scripts/*.js"
57+
],
58+
"env": {
59+
"node": true
60+
},
61+
"parserOptions": {
62+
"ecmaVersion": 2019,
63+
"sourceType": "script"
64+
}
65+
},
66+
{
67+
"files": [
68+
"**/*.ts"
69+
],
70+
"parser": "@typescript-eslint/parser",
71+
"plugins": [
72+
"@typescript-eslint"
73+
],
74+
"extends": [
75+
"plugin:@typescript-eslint/recommended"
76+
]
77+
}
78+
]
4479
},
4580
"dependencies": {
46-
"@carv/esbundle": "^1.1.6",
47-
"@carv/eslint-config": "^1.6.0",
48-
"@carv/jest-preset": "^1.1.6",
49-
"@carv/prettier-config": "^1.1.0",
50-
"@carv/tsconfig": "^1.3.0",
5181
"dlv": "^1.1.3",
52-
"eslint": "^7.3.1",
53-
"jest": "^26.1.0",
54-
"np": "^7.0.0",
55-
"nps": "^5.9.12",
56-
"prettier": "^2.0.5",
5782
"tailwindcss": "^2.0.1",
5883
"typescript": "^4.1.0",
5984
"typescript-template-language-service-decorator": "^2.2.0",
6085
"vscode-languageserver-types": "^3.13.0"
6186
},
6287
"devDependencies": {
63-
"nps": "^5.9.12"
88+
"@typescript-eslint/eslint-plugin": "^4.9.1",
89+
"@typescript-eslint/parser": "^4.9.1",
90+
"execa": "^5.0.0",
91+
"prettier": "^2.0.5",
92+
"esbuild": "^0.8.23",
93+
"eslint": "^7.15.0",
94+
"eslint-config-prettier": "^7.0.0",
95+
"eslint-plugin-prettier": "^3.2.0"
6496
},
6597
"publishConfig": {
6698
"access": "public",
6799
"registry": "https://registry.npmjs.com/"
68-
},
69-
"np": {
70-
"contents": "dist"
71100
}
72101
}

0 commit comments

Comments
 (0)