-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
16,300 additions
and
16,224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
env: | ||
node: true | ||
commonjs: true | ||
jest: true | ||
es6: true | ||
node: true | ||
commonjs: true | ||
jest: true | ||
es6: true | ||
extends: "eslint:recommended" | ||
overrides: | ||
- env: | ||
node: true | ||
files: | ||
- ".eslintrc.{js,cjs}" | ||
parserOptions: | ||
sourceType: "script" | ||
- env: | ||
node: true | ||
files: | ||
- ".eslintrc.{js,cjs}" | ||
parserOptions: | ||
sourceType: "script" | ||
parserOptions: | ||
ecmaVersion: "latest" | ||
ecmaVersion: "latest" | ||
ignorePatterns: | ||
- "examples/*" | ||
- "examples/*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
name: Lint Code Base | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
lint: | ||
name: Lint Code Base | ||
runs-on: ubuntu-latest | ||
lint: | ||
name: Lint Code Base | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
packages: read | ||
statuses: write | ||
permissions: | ||
contents: read | ||
packages: read | ||
statuses: write | ||
|
||
steps: | ||
- name: Checkout | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
steps: | ||
- name: Checkout | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node.js | ||
id: setup-node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: yarn | ||
- name: Setup Node.js | ||
id: setup-node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: yarn | ||
|
||
- name: Install Dependencies | ||
id: install | ||
run: yarn install --frozen-lockfile | ||
- name: Install Dependencies | ||
id: install | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Lint Code Base | ||
id: super-linter | ||
uses: super-linter/super-linter/slim@v5 | ||
env: | ||
DEFAULT_BRANCH: main | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
JAVASCRIPT_DEFAULT_STYLE: prettier | ||
JAVASCRIPT_ES_CONFIG_FILE: .eslintrc.yml | ||
VALIDATE_JSCPD: false | ||
VALIDATE_ALL_CODEBASE: false | ||
VALIDATE_CSS: false | ||
- name: Lint Code Base | ||
id: super-linter | ||
uses: super-linter/super-linter/slim@v5 | ||
env: | ||
DEFAULT_BRANCH: main | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
JAVASCRIPT_DEFAULT_STYLE: prettier | ||
JAVASCRIPT_ES_CONFIG_FILE: .eslintrc.yml | ||
VALIDATE_JSCPD: false | ||
VALIDATE_ALL_CODEBASE: false | ||
VALIDATE_CSS: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
name: Publish Package to npmjs | ||
on: | ||
release: | ||
types: [published] | ||
release: | ||
types: [published] | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
id: checkout | ||
uses: actions/checkout@v2 | ||
steps: | ||
- name: Checkout | ||
id: checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js | ||
id: setup-node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
cache: yarn | ||
registry-url: "https://registry.npmjs.org" | ||
- name: Setup Node.js | ||
id: setup-node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
cache: yarn | ||
registry-url: "https://registry.npmjs.org" | ||
|
||
- name: Install Dependencies | ||
id: install | ||
run: yarn install --frozen-lockfile | ||
- name: Install Dependencies | ||
id: install | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Publish to npm | ||
id: publish | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
- name: Publish to npm | ||
id: publish | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
name: Run Tests | ||
|
||
on: | ||
- push | ||
- push | ||
|
||
jobs: | ||
test: | ||
name: Execute Tests | ||
runs-on: ubuntu-latest | ||
test: | ||
name: Execute Tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
id: checkout | ||
uses: actions/checkout@v2 | ||
steps: | ||
- name: Checkout | ||
id: checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js | ||
id: setup-node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
cache: yarn | ||
- name: Setup Node.js | ||
id: setup-node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
cache: yarn | ||
|
||
- name: Install Dependencies | ||
id: install | ||
run: yarn install --frozen-lockfile | ||
- name: Install Dependencies | ||
id: install | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Execute Test Tools | ||
run: yarn test | ||
- name: Execute Test Tools | ||
run: yarn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tabWidth: 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"appAccount": "dummy.near", | ||
"aliases": { | ||
"hello": "<h1>Hello, world! Have a nice day!</h1>" | ||
} | ||
"appAccount": "dummy.near", | ||
"aliases": { | ||
"hello": "<h1>Hello, world! Have a nice day!</h1>" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/*__@noStringify__*/ | ||
{ | ||
"dummy": "dummy goes here from dummy land, dummy" | ||
"dummy": "dummy goes here from dummy land, dummy" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
const hello = () => { | ||
console.log("Hello!"); | ||
console.log("Hello!"); | ||
|
||
return "Hello!"; | ||
return "Hello!"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"presets": ["@babel/env", "@babel/preset-react"] | ||
"presets": ["@babel/env", "@babel/preset-react"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export const flags = { | ||
bosLoaderUrl: process.env.BOS_LOADER_URL || "http://127.0.0.1:4040", | ||
bosLoaderWs: process.env.BOS_LOADER_WS || "ws://127.0.0.1:4040", | ||
enableHotReload: process.env.ENABLE_HOT_RELOAD ?? true, | ||
bosLoaderUrl: process.env.BOS_LOADER_URL || "http://127.0.0.1:4040", | ||
bosLoaderWs: process.env.BOS_LOADER_WS || "ws://127.0.0.1:4040", | ||
enableHotReload: process.env.ENABLE_HOT_RELOAD ?? true, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
const { merge } = require("webpack-merge"); | ||
|
||
const loadPresets = (env = { presets: [] }) => { | ||
const presets = env.presets || []; | ||
/** @type {string[]} */ | ||
const mergedPresets = [].concat(...[presets]); | ||
const mergedConfigs = mergedPresets.map((presetName) => | ||
require(`./webpack.${presetName}.js`)(env), | ||
); | ||
const presets = env.presets || []; | ||
/** @type {string[]} */ | ||
const mergedPresets = [].concat(...[presets]); | ||
const mergedConfigs = mergedPresets.map((presetName) => | ||
require(`./webpack.${presetName}.js`)(env), | ||
); | ||
|
||
return merge({}, ...mergedConfigs); | ||
return merge({}, ...mergedConfigs); | ||
}; | ||
module.exports = loadPresets; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
const WebpackBundleAnalyzer = | ||
require("webpack-bundle-analyzer").BundleAnalyzerPlugin; | ||
require("webpack-bundle-analyzer").BundleAnalyzerPlugin; | ||
|
||
module.exports = () => ({ | ||
plugins: [new WebpackBundleAnalyzer()], | ||
plugins: [new WebpackBundleAnalyzer()], | ||
}); |
Oops, something went wrong.