Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
dburles committed May 11, 2020
0 parents commit a2d7415
Show file tree
Hide file tree
Showing 75 changed files with 2,756 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
!.*
/lib
/test
14 changes: 14 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": ["env"],
"rules": {
"arrow-body-style": ["error", "always"],
"curly": ["error", "all"],
"node/no-unsupported-features/es-syntax": [
"error",
{
"ignores": ["modules"]
}
]
},
"ignorePatterns": ["node_modules/", "dist"]
}
27 changes: 27 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Node.js CI

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm i
- run: npm run prepare
- run: npm run test
env:
CI: true
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/lib
/test
node_modules/
.DS_Store
npm-debug.log
package-lock.json
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package.json
/snapshots
/src/lib/css/murmur2.js
4 changes: 4 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"proseWrap": "never",
"singleQuote": true
}
7 changes: 7 additions & 0 deletions .size-limit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"path": "lib/index.js",
"limit": "9 KB",
"ignore": ["prop-types"]
}
]
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '@emotion/core';
84 changes: 84 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"name": "mystical",
"description": "Atomised CSS constraint based styling",
"version": "1.0.0",
"author": "David Burles",
"license": "MIT",
"repository": "github:dburles/mystical",
"homepage": "https://github.com/dburles/mystical#readme",
"bugs": "https://github.com/dburles/mystical/issues",
"keywords": [
"mystical",
"css",
"css-in-js",
"styles",
"react"
],
"engines": {
"node": ">=10"
},
"browserslist": [
"> 0.5%",
"not dead",
"not ie < 11",
"not op_mini all"
],
"scripts": {
"prepare": "npm run prepare:clean && npm run prepare:cjs && npm run prepare:prettier",
"prepare:clean": "rm -rf lib test",
"prepare:cjs": "babel src -d .",
"prepare:prettier": "prettier --write lib test",
"test": "npm run test:eslint && npm run test:prettier && npm run test:cjs && npm run test:size",
"test:eslint": "eslint .",
"test:prettier": "prettier -c .",
"test:cjs": "coverage-node -r hard-rejection/register test",
"test:size": "size-limit",
"dev": "chokidar src --initial -c 'npm run prepare && npm run test:cjs --silent'"
},
"files": [
"index.d.ts",
"lib"
],
"main": "lib/index.js",
"types": "index.d.ts",
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.9.0",
"@babel/node": "^7.8.7",
"@babel/plugin-transform-runtime": "^7.9.0",
"@babel/preset-env": "^7.9.5",
"@babel/preset-react": "^7.9.4",
"@size-limit/preset-small-lib": "^4.5.0",
"@testing-library/react": "^10.0.2",
"babel-eslint": "^10.1.0",
"chokidar-cli": "^2.1.0",
"coverage-node": "^2.0.3",
"eslint": "^6.8.0",
"eslint-config-env": "^13.0.4",
"eslint-config-prettier": "^6.10.1",
"eslint-plugin-compat": "^3.5.1",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jsdoc": "^22.1.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-react": "^7.19.0",
"eslint-plugin-react-hooks": "^3.0.0",
"hard-rejection": "^2.1.0",
"nodemon": "^2.0.3",
"prettier": "^2.0.4",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"size-limit": "^4.5.0",
"snapshot-assertion": "^1.0.0",
"test-director": "^4.0.0"
},
"dependencies": {
"@babel/runtime": "^7.9.2",
"deepmerge": "^4.2.2",
"prop-types": "^15.7.2",
"stylis": "^4.0.0"
},
"peerDependencies": {
"react": "^16.13.1"
}
}
Loading

0 comments on commit a2d7415

Please sign in to comment.