Skip to content

Commit dd574c9

Browse files
committed
setup repo
0 parents  commit dd574c9

File tree

8 files changed

+194
-0
lines changed

8 files changed

+194
-0
lines changed
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Bug Report
2+
description: Create a bug report for @tailwindcss/container-queries.
3+
labels: []
4+
body:
5+
- type: input
6+
attributes:
7+
label: What version of @tailwindcss/container-queries are you using?
8+
description: 'For example: v0.2.0'
9+
validations:
10+
required: true
11+
- type: input
12+
attributes:
13+
label: What version of Node.js are you using?
14+
description: 'For example: v12.0.0'
15+
validations:
16+
required: true
17+
- type: input
18+
attributes:
19+
label: What browser are you using?
20+
description: 'For example: Chrome, Safari, or N/A'
21+
validations:
22+
required: true
23+
- type: input
24+
attributes:
25+
label: What operating system are you using?
26+
description: 'For example: macOS, Windows'
27+
validations:
28+
required: true
29+
- type: input
30+
attributes:
31+
label: Reproduction repository
32+
description: A public GitHub repo that includes a minimal reproduction of the bug. Unfortunately we can't provide support without a reproduction, and your issue will be closed and locked with no comment if this is not provided.
33+
validations:
34+
required: true
35+
- type: textarea
36+
attributes:
37+
label: Describe your issue
38+
description: Describe the problem you're seeing, any important steps to reproduce and what behavior you expect instead

.github/ISSUE_TEMPLATE/config.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Feature Request
4+
url: https://github.com/tailwindlabs/tailwindcss/discussions/new?category=ideas
5+
about: 'Suggest any ideas you have using our discussion forums.'
6+
- name: Help
7+
url: https://github.com/tailwindlabs/tailwindcss/discussions/new?category=help
8+
about: 'If you have a question or need help, ask a question on the discussion forums.'
9+
- name: Kind Words
10+
url: https://github.com/tailwindlabs/tailwindcss/discussions/new?category=kind-words
11+
about: "Have something nice to say about @tailwindcss/container-queries or Tailwind CSS in general? We'd love to hear it!"
+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Release Insiders
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
matrix:
13+
node-version: [12]
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v2
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
registry-url: 'https://registry.npmjs.org'
23+
24+
- name: Use cached node_modules
25+
id: cache
26+
uses: actions/cache@v2
27+
with:
28+
path: node_modules
29+
key: nodeModules-${{ hashFiles('**/package-lock.json') }}-${{ matrix.node-version }}
30+
restore-keys: |
31+
nodeModules-
32+
33+
- name: Install dependencies
34+
if: steps.cache.outputs.cache-hit != 'true'
35+
run: npm install
36+
env:
37+
CI: true
38+
39+
- name: Resolve version
40+
id: vars
41+
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
42+
43+
- name: "Version based on commit: 0.0.0-insiders.${{ steps.vars.outputs.sha_short }}"
44+
run: npm version 0.0.0-insiders.${{ steps.vars.outputs.sha_short }} --force --no-git-tag-version
45+
46+
- name: Publish
47+
run: npm publish --tag insiders
48+
env:
49+
CI: true
50+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
yarn.lock
3+
package-lock.json

CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased]
9+
10+
- Nothing yet!
11+
12+
[unreleased]: https://github.com/tailwindlabs/tailwindcss-container-queries/compare/v0.1.0...HEAD
13+
[0.1.0]: https://github.com/tailwindlabs/tailwindcss-container-queries/releases/tag/v0.1.0

README.md

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# @tailwindcss/container-queries
2+
3+
A plugin that provides utilities for container queries.
4+
5+
6+
## Installation
7+
8+
Install the plugin from npm:
9+
10+
```sh
11+
npm install @tailwindcss/container-queries
12+
```
13+
14+
Then add the plugin to your `tailwind.config.js` file:
15+
16+
```js
17+
// tailwind.config.js
18+
module.exports = {
19+
theme: {
20+
// ...
21+
},
22+
plugins: [
23+
require('@tailwindcss/container-queries'),
24+
// ...
25+
],
26+
}
27+
```
28+
29+
## Usage
30+
31+
TODO
32+
33+
## Configuration
34+
35+
You can configure which values are available for this plugin under the `containers` key in your `tailwind.config.js` file:
36+
37+
```js
38+
// tailwind.config.js
39+
module.exports = {
40+
theme: {
41+
extend: {
42+
containers: {
43+
xs: '(min-width: 20rem)',
44+
sm: '(min-width: 24rem)',
45+
md: '(min-width: 28rem)',
46+
lg: '(min-width: 32rem)',
47+
xl: '(min-width: 36rem)',
48+
// etc...
49+
}
50+
}
51+
},
52+
}
53+
```

package.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "@tailwindcss/container-queries",
3+
"version": "0.1.0",
4+
"main": "src/index.js",
5+
"license": "MIT",
6+
"repository": "https://github.com/tailwindlabs/tailwindcss-container-queries",
7+
"publishConfig": {
8+
"access": "public"
9+
},
10+
"prettier": {
11+
"printWidth": 100,
12+
"semi": false,
13+
"singleQuote": true,
14+
"trailingComma": "es5"
15+
},
16+
"peerDependencies": {
17+
"tailwindcss": ">=3.2.0"
18+
}
19+
}

src/index.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const plugin = require('tailwindcss/plugin')
2+
3+
const containerQueries = plugin(function ({ matchVariant }) {
4+
// TODO
5+
})
6+
7+
module.exports = containerQueries

0 commit comments

Comments
 (0)