Skip to content

Commit d284f53

Browse files
authored
Initial commit
0 parents  commit d284f53

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+16761
-0
lines changed

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["@babel/env", "@babel/preset-react"]
3+
}

.env

Whitespace-only changes.

.gitignore

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
/dist
14+
15+
# misc
16+
.DS_Store
17+
.env.local
18+
.env.development.local
19+
.env.test.local
20+
.env.production.local
21+
22+
npm-debug.log*
23+
yarn-debug.log*
24+
yarn-error.log*
25+
26+
#IDE
27+
.idea
28+
29+
target
30+
neardev
31+
32+
# OS X
33+
.DS_Store

LICENSE

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
This is free and unencumbered software released into the public domain.
2+
3+
Anyone is free to copy, modify, publish, use, compile, sell, or
4+
distribute this software, either in source code form or as a compiled
5+
binary, for any purpose, commercial or non-commercial, and by any
6+
means.
7+
8+
In jurisdictions that recognize copyright laws, the author or authors
9+
of this software dedicate any and all copyright interest in the
10+
software to the public domain. We make this dedication for the benefit
11+
of the public at large and to the detriment of our heirs and
12+
successors. We intend this dedication to be an overt act of
13+
relinquishment in perpetuity of all present and future rights to this
14+
software under copyright law.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.
23+
24+
For more information, please refer to <https://unlicense.org>

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Starter Repo
2+
3+
Let's connect, collaborate, and create solutions together!
4+
5+
## Setup & Development
6+
7+
Initialize repo:
8+
```
9+
yarn
10+
```
11+
12+
Start development version:
13+
```
14+
yarn start
15+
```
16+
17+
## TODO
18+
19+
- [ ] Extract out to a Provider
20+
- [ ] Separate flags/bos-loader functionality to it's own plugin
21+
- [ ] Integrate with create-bos-app

apps/sample/bos.config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"appAccount": "sample.near"
3+
}

apps/sample/widget/sample.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
return <p>Hello /*__@appAccount__*/</p>

config/paths.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const path = require("path");
2+
3+
const srcPath = path.resolve(__dirname, "../src");
4+
const distPath = path.resolve(__dirname, "../dist");
5+
const publicPath = path.resolve(__dirname, "../public");
6+
const nodeModulesPath = path.resolve(__dirname, "../node_modules");
7+
8+
module.exports = {
9+
srcPath,
10+
distPath,
11+
publicPath,
12+
nodeModulesPath,
13+
};

config/presets/loadPreset.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const { merge } = require("webpack-merge");
2+
3+
const loadPresets = (env = { presets: [] }) => {
4+
const presets = env.presets || [];
5+
/** @type {string[]} */
6+
const mergedPresets = [].concat(...[presets]);
7+
const mergedConfigs = mergedPresets.map((presetName) =>
8+
require(`./webpack.${presetName}.js`)(env)
9+
);
10+
11+
return merge({}, ...mergedConfigs);
12+
};
13+
module.exports = loadPresets;

config/presets/webpack.analyze.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const WebpackBundleAnalyzer =
2+
require("webpack-bundle-analyzer").BundleAnalyzerPlugin;
3+
4+
module.exports = () => ({
5+
plugins: [new WebpackBundleAnalyzer()],
6+
});

0 commit comments

Comments
 (0)