Skip to content

Commit cf32031

Browse files
author
Sébastien Chopin
committed
first commit
0 parents  commit cf32031

23 files changed

Lines changed: 10624 additions & 0 deletions

.circleci/config.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/node
6+
steps:
7+
# Checkout repository
8+
- checkout
9+
10+
# Restore cache
11+
- restore_cache:
12+
key: yarn-cache-{{ checksum "yarn.lock" }}
13+
14+
# Install dependencies
15+
- run:
16+
name: Install Dependencies
17+
command: NODE_ENV=dev yarn
18+
19+
# Keep cache
20+
- save_cache:
21+
key: yarn-cache-{{ checksum "yarn.lock" }}
22+
paths:
23+
- "node_modules"
24+
25+
# Lint
26+
- run:
27+
name: Lint
28+
command: yarn lint
29+
30+
# Tests
31+
- run:
32+
name: Tests
33+
command: yarn jest
34+
35+
# Coverage
36+
- run:
37+
name: Coverage
38+
command: yarn codecov

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_size = 2
6+
indent_style = space
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Common
2+
node_modules
3+
dist
4+
.nuxt
5+
coverage
6+
7+
# Plugin
8+
lib/plugin.js

.eslintrc.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
root: true,
3+
parserOptions: {
4+
parser: 'babel-eslint',
5+
sourceType: 'module'
6+
},
7+
extends: [
8+
'@nuxtjs'
9+
]
10+
}

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
node_modules
2+
*.iml
3+
.idea
4+
*.log*
5+
.nuxt
6+
.vscode
7+
.DS_Store
8+
coverage
9+
dist

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) Sébastien Chopin <seb@chopin.io>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# nuxt-tailwindcss
2+
3+
[![npm version][npm-version-src]][npm-version-href]
4+
[![npm downloads][npm-downloads-src]][npm-downloads-href]
5+
[![Circle CI][circle-ci-src]][circle-ci-href]
6+
[![Codecov][codecov-src]][codecov-href]
7+
[![Dependencies][david-dm-src]][david-dm-href]
8+
[![Standard JS][standard-js-src]][standard-js-href]
9+
10+
> TailwindCSS module for Nuxt.js
11+
12+
[📖 **Release Notes**](./CHANGELOG.md)
13+
14+
## Setup
15+
16+
1. Add the `nuxt-tailwindcss` dependency with `yarn` or `npm` to your project
17+
2. Add `nuxt-tailwindcss` to the `modules` section of `nuxt.config.js`
18+
3. Configure it:
19+
20+
```js
21+
{
22+
modules: [
23+
// Simple usage
24+
'nuxt-tailwindcss',
25+
26+
// With options
27+
['nuxt-tailwindcss', { /* module options */ }]
28+
]
29+
}
30+
```
31+
32+
## Development
33+
34+
1. Clone this repository
35+
2. Install dependencies using `yarn install` or `npm install`
36+
3. Start development server using `npm run dev`
37+
38+
## License
39+
40+
[MIT License](./LICENSE)
41+
42+
Copyright (c) Sébastien Chopin <seb@chopin.io>
43+
44+
<!-- Badges -->
45+
[npm-version-src]: https://img.shields.io/npm/dt/nuxt-tailwindcss.svg?style=flat-square
46+
[npm-version-href]: https://npmjs.com/package/nuxt-tailwindcss
47+
48+
[npm-downloads-src]: https://img.shields.io/npm/v/nuxt-tailwindcss/latest.svg?style=flat-square
49+
[npm-downloads-href]: https://npmjs.com/package/nuxt-tailwindcss
50+
51+
[circle-ci-src]: https://img.shields.io/circleci/project/github/nuxt-community/tailwindcss.svg?style=flat-square
52+
[circle-ci-href]: https://circleci.com/gh/nuxt-community/tailwindcss
53+
54+
[codecov-src]: https://img.shields.io/codecov/c/github/nuxt-community/tailwindcss.svg?style=flat-square
55+
[codecov-href]: https://codecov.io/gh/nuxt-community/tailwindcss
56+
57+
[david-dm-src]: https://david-dm.org/nuxt-community/tailwindcss/status.svg?style=flat-square
58+
[david-dm-href]: https://david-dm.org/nuxt-community/tailwindcss
59+
60+
[standard-js-src]: https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square
61+
[standard-js-href]: https://standardjs.com

babel.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
presets: [
3+
[
4+
'@babel/preset-env', {
5+
targets: {
6+
esmodules: true
7+
}
8+
}
9+
]
10+
]
11+
}

commitlint.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
extends: [
3+
'@commitlint/config-conventional'
4+
]
5+
}

example/assets/css/tailwind.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@import 'tailwindcss/base';
2+
@import 'tailwindcss/components';
3+
@import 'tailwindcss/utilities';

0 commit comments

Comments
 (0)