Skip to content

Commit

Permalink
Initial version
Browse files Browse the repository at this point in the history
  • Loading branch information
mcjazzyfunky committed Dec 20, 2019
0 parents commit b6094a1
Show file tree
Hide file tree
Showing 27 changed files with 12,951 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"extends": [
"eslint:recommended",
"react:recommended",
],

"plugins": ["react"],

"parserOptions": {
"ecmaVersion": 8,
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},

"env": {
"es6": true,
"node": true
},

"globals": {
"document": false,
"navigator": false,
"window": false,
"console": false,
"alert": false
},

"settings": {
"react": {
"pragma": "h"
}
},

"rules": {
"indent": ["error", 2],
"quotes": ["error", "single", { "avoidEscape": true }],
"semi": ["error", "never"],
"no-console": ["off"]
}
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
4 changes: 4 additions & 0 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { configure } from '@storybook/preact'

// automatically import all files ending in *.stories.js
configure(require.context('../src/stories', true, /\.stories\.jsx?$/), module);
9 changes: 9 additions & 0 deletions .storybook/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require('dotenv').config()

module.exports = async ({ config }) => {
//if (process.env.DISABLE_HMR === 'true') {
//config.entry = config.entry.filter(singleEntry => !singleEntry.includes('webpack-hot-middleware'))
//}

return config
}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# preactive

Just trying out some Preact addons...
7 changes: 7 additions & 0 deletions hooks/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use strict'

if (process.env.NODE_ENV === 'production') {
module.exports = require('../dist/preactive.hooks.cjs.production.js')
} else {
module.exports = require('../dist/preactive.hooks.cjs.development.js')
}
4 changes: 4 additions & 0 deletions hooks/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "preactive.hooks",
"main": "./index.js"
}
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use strict'

if (process.env.NODE_ENV === 'production') {
module.exports = require('./dist/preactive.core.cjs.production.js')
} else {
module.exports = require('./dist/preactive.core.cjs.development.js')
}
Loading

0 comments on commit b6094a1

Please sign in to comment.