Skip to content

Commit 8902aea

Browse files
committed
Subtree merged in blinkforms/react-json-blinkforms
2 parents 50c098a + e4cf857 commit 8902aea

37 files changed

+1517
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"presets": [
3+
["@babel/preset-env", {"modules": false}],
4+
"@babel/preset-react"
5+
],
6+
"plugins": [
7+
"react-hot-loader/babel",
8+
"@babel/plugin-syntax-dynamic-import"
9+
],
10+
"env": {
11+
"production": {
12+
"presets": ["minify"]
13+
},
14+
"test": {
15+
"presets": ["@babel/preset-env", "@babel/preset-react"]
16+
}
17+
}
18+
}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
*.pid.lock
13+
14+
# Directory for instrumented libs generated by jscoverage/JSCover
15+
lib-cov
16+
17+
# Coverage directory used by tools like istanbul
18+
coverage
19+
20+
# nyc test coverage
21+
.nyc_output
22+
23+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24+
.grunt
25+
26+
# Bower dependency directory (https://bower.io/)
27+
bower_components
28+
29+
# node-waf configuration
30+
.lock-wscript
31+
32+
# Compiled binary addons (https://nodejs.org/api/addons.html)
33+
build/Release
34+
35+
# Dependency directories
36+
node_modules/
37+
jspm_packages/
38+
39+
# TypeScript v1 declaration files
40+
typings/
41+
42+
# Optional npm cache directory
43+
.npm
44+
45+
# Optional eslint cache
46+
.eslintcache
47+
48+
# Optional REPL history
49+
.node_repl_history
50+
51+
# Output of 'npm pack'
52+
*.tgz
53+
54+
# Yarn Integrity file
55+
.yarn-integrity
56+
57+
# dotenv environment variables file
58+
.env
59+
60+
# next.js build output
61+
.next
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "typescript-core"]
2+
path = typescript-core
3+
url = https://github.com/json-blinkforms/typescript-core.git
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import '@storybook/addon-storysource/register';
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { configure } from '@storybook/react';
2+
3+
// automatically import all files ending in *.stories.js
4+
const req = require.context('../stories', true, /\.stories\.js$/);
5+
function loadStories() {
6+
req.keys().forEach(filename => req(filename));
7+
}
8+
9+
configure(loadStories, module);
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// you can use this file to add your custom webpack plugins, loaders and anything you like.
2+
// This is just the basic way to add additional webpack configurations.
3+
// For more information refer the docs: https://storybook.js.org/configurations/custom-webpack-config
4+
5+
// IMPORTANT
6+
// When you add this file, we won't add the default configurations which is similar
7+
// to "React Create App". This only has babel loader to load JavaScript.
8+
9+
const common = require('../config/webpack/common.js');
10+
11+
module.exports = Object.assign({}, common, {
12+
module: Object.assign({}, common.module, {
13+
rules: common.module.rules.concat([
14+
{
15+
test: /\.stories\.jsx?$/,
16+
loaders: [require.resolve('@storybook/addon-storysource/loader')],
17+
enforce: 'pre',
18+
}
19+
]),
20+
}),
21+
});
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# React Blinkforms
2+
3+
**Project is under heavy development right now. Details will be available in some time in the future**

blinkforms/react-json-blinkforms/bin/index.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

blinkforms/react-json-blinkforms/bin/index.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
require('typescript-require');
2+
3+
// shared config (dev and prod)
4+
const path = require('path');
5+
const { CheckerPlugin } = require('awesome-typescript-loader');
6+
const webpack = require('webpack');
7+
8+
module.exports = {
9+
resolve: {
10+
extensions: ['.ts', '.tsx', '.js', '.jsx', 'index.ts', 'index.tsx', 'index.js', 'index.jsx'],
11+
alias: {},
12+
},
13+
context: path.resolve(__dirname, '../../src'),
14+
module: {
15+
rules: [
16+
/*{
17+
test: /\.ts|\.tsx$/,
18+
enforce: 'pre',
19+
use: [
20+
{
21+
loader: 'tslint-loader',
22+
options: {
23+
configFile: 'tslint.json',
24+
typeCheck: true,
25+
tsConfigFile: 'tsconfig.json',
26+
emitErrors: true,
27+
failOnHint: true,
28+
fix: true
29+
}
30+
}
31+
]
32+
},*/
33+
{
34+
test: /\.js$/,
35+
use: ['babel-loader', 'source-map-loader'],
36+
exclude: /node_modules/,
37+
},
38+
{
39+
test: /\.tsx?$/,
40+
use: ['babel-loader', 'awesome-typescript-loader'],
41+
},
42+
{
43+
test: /\.css$/,
44+
use: ['style-loader', { loader: 'css-loader', options: { importLoaders: 1 } }],
45+
},
46+
{
47+
test: /\.(jpe?g|png|gif|svg)$/i,
48+
loaders: [
49+
'file-loader?hash=sha512&digest=hex&name=img/[hash].[ext]',
50+
'image-webpack-loader?bypassOnDebug&optipng.optimizationLevel=7&gifsicle.interlaced=false',
51+
],
52+
},
53+
],
54+
},
55+
plugins: [
56+
new CheckerPlugin(),
57+
new webpack.NormalModuleReplacementPlugin(/@blinkforms\/core/, function(resource) {
58+
resource.request = resource.request.replace(/@blinkforms\/core/, path.resolve(__dirname, path.join('..', '..', 'typescript-core')));
59+
}),
60+
],
61+
performance: {
62+
hints: false,
63+
},
64+
};

0 commit comments

Comments
 (0)