Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P4 native contracts #2285

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
153 commits
Select commit Hold shift + click to select a range
6b4ce55
feat(rush): Migrate to Rush (#1803) (#1871)
danwbyrne Dec 3, 2019
b26cabd
chore(deps): upgrade dependencies (#1896)
danwbyrne Dec 3, 2019
ad80417
fix(deps): update dependency @types/react to v16.9.14 (#1848)
renovate[bot] Dec 4, 2019
f07431f
chore(deps): upgrade dependencies (#1909)
danwbyrne Dec 5, 2019
005f65e
chore(bors): fix bors checks (#1915)
danwbyrne Dec 5, 2019
fa84cf2
chore(bors): syntax (#1916)
danwbyrne Dec 5, 2019
aa78c6b
test(exchange): add exchange contract based on Switcheo for testing
afragapane Sep 10, 2019
331b054
chore(bors): remove deepscan check (#1917)
danwbyrne Dec 5, 2019
96b8ab5
Merge #1766
bors[bot] Dec 5, 2019
5bfe882
fix(deps): update dependency @types/react to v16.9.16
renovate-bot Dec 9, 2019
13d3eb9
Merge #1920
bors[bot] Dec 9, 2019
6de7e91
chore(deps): update library/docker docker digest to b7736ba
renovate-bot Dec 12, 2019
2a9ce19
Merge #1923
bors[bot] Dec 12, 2019
726d61e
fix(deps): update dependency @types/react to v16.9.17
renovate-bot Dec 20, 2019
7b988a1
Merge #1940
bors[bot] Dec 20, 2019
9adfd45
fix(deps): update emotion monorepo to v10.0.27
renovate-bot Dec 22, 2019
9bf65ba
Merge #1943
bors[bot] Dec 22, 2019
58f5787
chore(deps): update library/docker docker digest to 83a5911
renovate-bot Dec 27, 2019
b1b0468
Merge #1946
bors[bot] Dec 27, 2019
330dd34
fix(deps): update dependency rxjs to v6.5.4
renovate-bot Dec 28, 2019
ff9b241
Merge #1947
bors[bot] Dec 28, 2019
bd911ff
chore(deps): update library/docker docker digest to 48db0e2
renovate-bot Jan 18, 2020
6c1d043
Merge #1957
bors[bot] Jan 18, 2020
93f64d9
fix(deps): update dependency @types/react to v16.9.18
renovate-bot Jan 22, 2020
1151e6d
Merge #1963
bors[bot] Jan 22, 2020
8c6dd7a
fix(deps): update dependency @types/react to v16.9.19
renovate-bot Jan 24, 2020
eafd13a
Merge #1966
bors[bot] Jan 24, 2020
8ea0404
fix(test): local unit tests now use ts-jest instead of built packages…
danwbyrne Feb 10, 2020
8ca7fe7
fix(wallaby): fix wallaby config to work with rush (#1978)
spencercorwin Feb 11, 2020
de896f8
fix(cypress): revert monaco-editor dep to prevent error throwing
spencercorwin Feb 11, 2020
f0ec32b
Merge #1979
bors[bot] Feb 12, 2020
5ac081b
fix(docker): fix the node-gsutil image with better paths (#1981)
danwbyrne Feb 20, 2020
aa96f21
feat(ts): upgrade to TS v3.8.1-rc
spencercorwin Feb 24, 2020
db6c5df
fix(types): fix emotion types with TSv3.8. keep for later revert
spencercorwin Feb 26, 2020
c587bd2
feat(ts): add TS v3.7/3.8 language features (#1984)
spencercorwin Mar 10, 2020
faa5db7
feat(deps): temporarily put renovate updates together (#1989)
danwbyrne Mar 16, 2020
8ce4940
feat(deps): remove renovatebot schedule temporarily (#1990)
danwbyrne Mar 16, 2020
4c46f86
feat(node): node improvements for deployment (#1987)
danwbyrne Mar 20, 2020
f0054f7
fix(skip): actually skip neotracker if specified in config (#1995)
spencercorwin Mar 22, 2020
6703026
fix(typo): fix typo in website tutorial (#2003)
spencercorwin Apr 8, 2020
dfbe70d
feat(compiler): add support for outputting compiled contracts (#2005)
danwbyrne Apr 13, 2020
0865a3b
chore(publish): update changelogs for cli 2.5 (#2006)
danwbyrne Apr 13, 2020
e931424
feat(client): Add NEODataProvider to work with C# node (#2004)
afragapane Apr 22, 2020
2584c4d
Export NEODataProvider & NEOProvider (#2014)
afragapane Apr 23, 2020
d1ca94a
fix(build): ignore transforming ec-key package in other format releas…
danwbyrne Apr 23, 2020
97456e7
chore(publish): release new version (#2018)
danwbyrne Apr 29, 2020
5892e9d
fix(bug): NEODataProvider with Agency preview contracts (#2017)
afragapane Apr 29, 2020
8d85a09
fix(docs): fix slight mismatch in deploy doc (#2023)
spencercorwin May 4, 2020
b1a0a71
chore(prettier): update prettier for TS v3.8 support (#1996)
spencercorwin May 4, 2020
0b2422d
chore(deps): rush update --full to fix caniuse-lite, etc (#2024)
spencercorwin May 4, 2020
a447a06
chore(ts): update and unpin typescript dep (#2027)
spencercorwin May 5, 2020
5f72104
feat(node): remove opencensus (#2031)
danwbyrne May 14, 2020
42b8a57
fix(cli): remove the 'SourceMapConsumer.initialize' warning (#2030)
danwbyrne May 14, 2020
0d94f54
feat(rush): update npm release process (#2034)
danwbyrne May 20, 2020
26b772e
release
danwbyrne May 20, 2020
c6c524c
fix(docker): update dockerfile paths (#2037)
danwbyrne May 22, 2020
ea855d8
fix(nit): NEO tracker to NEO Tracker (#2047)
spencercorwin May 22, 2020
705ec18
fix(cli): change default network paths to neotracker/local (#2051)
danwbyrne Jun 1, 2020
9106f88
feat(docs): Add initial documention for deploying to a public network…
danwbyrne Jun 1, 2020
a70b624
fix(web): fix website commands that were using /lib paths still (#2054)
danwbyrne Jun 1, 2020
e60eaf1
feat(docs): Add `MigrationSmartContract` documentation (#2053)
danwbyrne Jun 4, 2020
283b375
fix(docs): fixup test snapshots / update CI glob path (#2057)
danwbyrne Jun 4, 2020
4be264a
fix(CI): update blockchain.test.ts (#2058)
danwbyrne Jun 5, 2020
aba0a62
fix(cli): make cli command info syntax consistent (#2059)
spencercorwin Jun 6, 2020
4d3b5c2
fix(client): fix #1997 (#2056)
danwbyrne Jun 8, 2020
1fe420d
fix(nits): fix langauge nits, URL, skip NT to default true (#2062)
spencercorwin Jun 12, 2020
8e2b308
feat(e2e): add e2e test for neo-one compile (#2064)
spencercorwin Jun 16, 2020
09abe17
feat(nt): make neotracker dev dependency to decouple (#2066)
spencercorwin Jun 17, 2020
ef6f6df
fix(changefile): not a supposed to be a major change (#2067)
spencercorwin Jun 17, 2020
be60ea5
feat(e2e): add init e2e tests (#2065)
spencercorwin Jun 17, 2020
9589eaf
chore(ts): update TS to v3.9.5
spencercorwin Jun 22, 2020
1c3f309
chore(ts): transaction class changes needed for TS v3.9.5 update
spencercorwin Jun 22, 2020
48ec95b
fix(nits): fix nits in documentation (#2074)
spencercorwin Jun 29, 2020
43f1afc
Merge pull request #2063 from spencercorwin/ts-3.9
spencercorwin Jun 30, 2020
1a10164
fix(rush): add post-install script to stop neotracker bringing in npm…
danwbyrne Jul 1, 2020
46b11e7
fix(rush): make neo-one-prune script work with nodejs v10.x (#2081)
spencercorwin Jul 2, 2020
405635b
fix(website): pin pouchdb, update two configs to make website work (#…
spencercorwin Jul 7, 2020
9ae3dbd
fix(cli): update network docs and cli exports (#2086)
spencercorwin Jul 7, 2020
d55870d
feat(types): add types dependency check (#2091)
spencercorwin Jul 9, 2020
de9d00f
fix(compiler): fix switch statement inside SC invocations (#2093)
spencercorwin Jul 10, 2020
0c10d60
fix(compiler): fix number mismatches in SetStorage, ArrayStorage, Map…
spencercorwin Jul 16, 2020
f6b86c6
fix(test): hot fix failing blockchain compiler test (#2103)
spencercorwin Jul 17, 2020
d5dc995
fix(tests): update NT dep and website build process (#2106)
spencercorwin Jul 21, 2020
d3a492d
fix(husky): remove checkout hook (#2111)
spencercorwin Jul 22, 2020
f34bfe4
fix(cypress): fix web build process and cypress (#2109)
spencercorwin Jul 22, 2020
769a619
fix(node): fix 'receive' invocations when relaying transactions to li…
danwbyrne Jul 22, 2020
37bccad
feat(cli): add support for outputting AVM and debug files for smart c…
danwbyrne Jul 22, 2020
f728dd0
fix(cli): migration.ts fix (#2112)
danwbyrne Jul 22, 2020
ebf279c
fix(ci): update ci cache (#2116)
danwbyrne Jul 22, 2020
b5ed92e
feat(docs): add docs on contributing (#2117)
spencercorwin Jul 23, 2020
e8b0c80
fix(version): bump version before release for future clarity (#2118)
danwbyrne Jul 23, 2020
7c8db73
fix(e2e): fixup compile config for e2e test (#2121)
danwbyrne Jul 23, 2020
cfd627f
feat(website): fixup website for release (#2122)
spencercorwin Jul 23, 2020
0f7396b
feat(release): version 2.7 release
danwbyrne Jul 23, 2020
4b7c09c
fix(website): minor fixes to blog post (#2124)
spencercorwin Jul 24, 2020
a85a56c
feat(docs): add docs for codebase overview (#2125)
spencercorwin Jul 24, 2020
95ff362
fix(docs): fix config doc (#2126)
spencercorwin Jul 25, 2020
c6fbdd0
fix(website): pin level-js and levelup for web courses issue (#2128)
spencercorwin Jul 27, 2020
d943664
fix(website): change yarn install to yarn add (#2129)
spencercorwin Jul 30, 2020
c6551b0
fix(elliptic): update elliptic dep and nits (#2130)
spencercorwin Aug 3, 2020
cd351a7
chore(rush): update rush version (#2133)
danwbyrne Aug 13, 2020
a821237
feat(client-common): migrate 90% of client-common to Neo3 preview 3 (…
spencercorwin Aug 13, 2020
ec2678b
feat(vm): add initial VM support, breakout core changes into temp pac…
danwbyrne Aug 20, 2020
f827d21
feat(client-full-common): 90% of work on client-full-common, more cli…
spencercorwin Aug 24, 2020
acddb5a
feat(rpc): first round of RPC updates (#2148)
spencercorwin Aug 31, 2020
29ebbd5
feat(vm): organize vm dispatcher, add initial snapshot support (#2146)
danwbyrne Aug 31, 2020
6ca37ca
feat(vm/blockchain): Add/Update more core types for the blockchain pa…
danwbyrne Aug 31, 2020
2e7c38d
feat(blockchain): more blockchain / storage groundwork (#2163)
danwbyrne Sep 3, 2020
285c0f7
chore(vm): migrate `csharp-*` back to `node-*` (#2164)
danwbyrne Sep 9, 2020
7970b29
feat(client-core): update nearly everything in client-core/full-core …
spencercorwin Sep 29, 2020
4e5d6e9
feat(blockchain): able to persist the genesis block and retrieve it f…
danwbyrne Sep 29, 2020
8677e75
fix(tests): revert jest setup change (#2173)
spencercorwin Oct 2, 2020
1bfab9c
feat(node): Add NativeContract models, more storage implementations (…
danwbyrne Oct 5, 2020
44a30b0
feat(vm): add ability to pass protocol settings into vm (#2174)
spencercorwin Oct 6, 2020
b8dd867
feat(rpc): More RPC Handler / Blockchain implementations (#2177)
danwbyrne Oct 8, 2020
f5ba7ea
feat(storage): fixup storage.find methods (#2181)
danwbyrne Oct 12, 2020
559723a
feat(node): We can now persist the first 3 blocks (and counting!) (#2…
danwbyrne Oct 12, 2020
467bec8
feat(node): persist up to block 5300 checkin (#2184)
danwbyrne Oct 13, 2020
64ea6dd
fix(node): fix stackitem deserializing, headerHashList saving (#2185)
danwbyrne Oct 14, 2020
eadaa48
feat(nep5): add nep5 balance/transfer models and storage (#2182)
spencercorwin Oct 15, 2020
c006771
feat(node): more node persistence work check in, adding nep5 tracking…
danwbyrne Oct 16, 2020
ab2b561
fix(nep5): fix nep5 updates (#2188)
spencercorwin Oct 16, 2020
492e797
feat(node): build node-bin, fix various bugs + final cleanup (#2200)
danwbyrne Oct 19, 2020
8d2bf5f
feat(all): get NEO•ONE to build (#2186)
spencercorwin Oct 19, 2020
1f7b9bc
commit checkin before preview3.0.0-alpha
danwbyrne Oct 19, 2020
df69a58
fix(all): fix changelog commit type
danwbyrne Oct 19, 2020
d1ed9e0
fix(misc): fix overwritten deserializeStackItem, update rpc method / …
danwbyrne Oct 20, 2020
686cba3
fix(node): export deserializeStackItem (woops) (#2203)
danwbyrne Oct 20, 2020
9288491
fix(bugs): fix handful of bugs and type errors (#2205)
spencercorwin Oct 20, 2020
cef67b8
fix(changelog): update changelogs since last release
danwbyrne Oct 20, 2020
f3e9e02
feat(suite): remove neo-one-suite (#2209)
spencercorwin Oct 22, 2020
198bed1
fix(node): fixup RPC methods (getunclaimed, getnep5transfers, getnep5…
danwbyrne Oct 27, 2020
7b30727
feat(test): JSONRPCClient (#2210)
spencercorwin Oct 29, 2020
0165082
fix(rpc): fix rpc getnep5transfers method for received (#2214)
spencercorwin Nov 3, 2020
3248e46
feat(applog): add applicationlog data and RPC method, plus fixes (#2215)
spencercorwin Nov 5, 2020
a25b2ec
fix(rpc): fix invokescript method (#2216)
spencercorwin Nov 5, 2020
31b7a70
feat(transactions): fix all transaction stuff, rpc calls, more (#2217)
spencercorwin Nov 19, 2020
436b78e
fix(nep5): fix nep5 tracking error (#2219)
danwbyrne Nov 19, 2020
f61dd90
fix(client): fix more client apis (#2220)
spencercorwin Nov 20, 2020
f2db576
fix(web): fix website deployment script (#2127)
danwbyrne Nov 30, 2020
1e5f7c1
feat(consensus): initial local consensus block generation is working …
danwbyrne Dec 1, 2020
0c5792f
fix(cli): fix migration file path for typescript (#2237)
spencercorwin Dec 7, 2020
3a0adfe
feat(consensus): finish private consensus network (#2235)
danwbyrne Dec 7, 2020
5c16eea
feat(cli): fixup cli start network command (#2241)
danwbyrne Dec 8, 2020
ff1ea0a
release(3.0.1): changelog (#2243)
danwbyrne Dec 8, 2020
f10a833
fix(vm): fixup environment variable requirements (#2262)
danwbyrne Dec 9, 2020
b0ea044
feat(misc): various fixups, VM Logging (#2263)
danwbyrne Dec 15, 2020
762dc1b
fix(node): fixup byteStringStackItem toJSON return value (#2264)
danwbyrne Dec 15, 2020
5215156
feat(test): fixup 'createNode' in @neo-one/smart-contract-test (#2266)
danwbyrne Dec 28, 2020
1d9c3dc
feat(sc): Update SC / Compiler changes to match preview4 changes (#2277)
danwbyrne Dec 29, 2020
69e28ef
feat(vm): remove testMode, fixup vm, various quick fixes from misc up…
danwbyrne Dec 29, 2020
b8a6f80
feat(blockchain): implement new trigger changes / fixup old storage i…
danwbyrne Dec 29, 2020
d6dfb55
feat(node): Update all native contracts for preview4 changes
danwbyrne Jan 6, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
165 changes: 71 additions & 94 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,155 +1,141 @@
aliases:
- &restore-yarn-cache-10
keys:
- v5-yarn-10-{{ .Branch }}-{{ checksum "yarn.lock" }}
- v10-yarn-10-{{ .Branch }}-{{ checksum "common/config/rush/yarn.lock" }}
# Fallback in case checksum fails
- v5-yarn-10-{{ .Branch }}-
- v10-yarn-10-{{ .Branch }}-

- &save-yarn-cache-10
paths:
- node_modules
- ~/.cache/yarn
key: v5-yarn-10-{{ .Branch }}-{{ checksum "yarn.lock" }}
- common/temp/node_modules
- common/temp/yarn-cache
key: v10-yarn-10-{{ .Branch }}-{{ checksum "common/config/rush/yarn.lock" }}

- &restore-yarn-cache-12
keys:
- v5-yarn-12-{{ .Branch }}-{{ checksum "yarn.lock" }}
- v10-yarn-12-{{ .Branch }}-{{ checksum "common/config/rush/yarn.lock" }}
# Fallback in case checksum fails
- v5-yarn-12-{{ .Branch }}-
- v10-yarn-12-{{ .Branch }}-

- &save-yarn-cache-12
paths:
- node_modules
- ~/.cache/yarn
key: v5-yarn-12-{{ .Branch }}-{{ checksum "yarn.lock" }}
- common/temp/node_modules
- common/temp/yarn-cache
key: v10-yarn-12-{{ .Branch }}-{{ checksum "common/config/rush/yarn.lock" }}

- &filter-ignore-bors-tmp
branches:
ignore:
- staging.tmp
- trying.tmp

- &yarn |
yarn install --non-interactive --cache-folder ~/.cache/yarn --ignore-engines
- &install |
node common/scripts/install-run-rush.js install

- &lint
- &nit
working_directory: ~/neo-one
steps:
- checkout
- restore-cache: *restore-yarn-cache-12
- run: *yarn
- run: *install
- save-cache: *save-yarn-cache-12
- run:
name: Prettier
command: yarn nit
name: Changelog
command: node common/scripts/install-run-rush.js change -v
when: always
- run:
name: Typescript
command: yarn tsc
name: Lint
command: node common/scripts/install-run-rush.js lint -p 8
when: always
- run:
name: Lint
command: yarn lint
name: Prettier
command: node common/scripts/install-run-rush.js nit
when: always

- &build-e2e10
- &build-10
working_directory: ~/neo-one
steps:
- checkout
- restore-cache: *restore-yarn-cache-10
- run: *yarn
- run: *install
- save-cache: *save-yarn-cache-10
- run:
name: Build
command: yarn build:e2e
command: node common/scripts/install-run-rush.js rebuild
- run:
name: Check Type Dependencies
command: node common/scripts/install-run-rush.js check-type-deps
- persist_to_workspace:
root: ~/neo-one
paths:
- dist
- node_modules
- common/temp/node_modules
- packages/*/dist
- packages/*/node_modules

- &test10
working_directory: ~/neo-one
steps:
- checkout
- restore-cache: *restore-yarn-cache-10
- run: *yarn
- save-cache: *save-yarn-cache-10
- attach_workspace:
at: ./
- run:
name: Test
command: yarn test-ci $(circleci tests glob "packages/*/src/__tests__/**/*.test.ts" | circleci tests split --split-by=timings) --coverage
command: node common/scripts/install-run-rush.js test-ci --test-path-pattern '$(circleci tests glob packages/*/src/__tests__/**.test.ts)' --coverage
- run:
name: Upload Unit Test Coverage
command: yarn run codecov -f coverage/coverage-final.json -F unit
command: node common/scripts/install-run-rush.js upload-coverage -F unit
when: always
- store_test_results:
path: reports
parallelism: 2

- &e2e10
working_directory: ~/neo-one
steps:
- checkout
- attach_workspace:
at: ./
- run:
name: E2E
command: yarn nyc --reporter json yarn e2e-ci $(circleci tests glob "packages/*/src/__e2e__/**/*.test.ts" | circleci tests split --split-by=timings)
- run:
name: Upload E2E Test Coverage
command: yarn run codecov -f coverage/coverage-final.json -F e2e
when: always
command: node common/scripts/install-run-rush.js e2e-ci
# - run:
# name: Upload E2E Test Coverage
# command: node common/scripts/install-run-rush.js upload-coverage -F e2e
# when: always
- store_test_results:
path: reports
parallelism: 2

- &build-e2e12
- &build-12
working_directory: ~/neo-one
steps:
- checkout
- restore-cache: *restore-yarn-cache-12
- run: *yarn
- run: *install
- save-cache: *save-yarn-cache-12
- run:
name: Build
command: yarn build:e2e
command: node common/scripts/install-run-rush.js rebuild
- run:
name: Check Type Dependencies
command: node common/scripts/install-run-rush.js check-type-deps
- persist_to_workspace:
root: ~/neo-one
paths:
- dist
- node_modules
- common/temp/node_modules
- packages/*/dist
- packages/*/node_modules

- &test12
working_directory: ~/neo-one
steps:
- checkout
- restore-cache: *restore-yarn-cache-12
- run: *yarn
- save-cache: *save-yarn-cache-12
- attach_workspace:
at: ./
- run:
name: Test
command: yarn test-ci $(circleci tests glob "packages/*/src/__tests__/**/*.test.ts" | circleci tests split --split-by=timings) --coverage
command: node common/scripts/install-run-rush.js test-ci --test-path-pattern '$(circleci tests glob packages/*/src/__tests__/**.test.ts)' --coverage
- run:
name: Upload Unit Test Coverage
command: yarn run codecov -f coverage/coverage-final.json -F unit
command: node common/scripts/install-run-rush.js upload-coverage -F unit
when: always
- store_test_results:
path: reports
parallelism: 2

- &e2e12
working_directory: ~/neo-one
steps:
- checkout
- attach_workspace:
at: ./
- run:
name: E2E
command: yarn nyc --reporter json yarn e2e-ci $(circleci tests glob "packages/*/src/__e2e__/**/*.test.ts" | circleci tests split --split-by=timings)
- run:
name: Upload E2E Test Coverage
command: yarn run codecov -f coverage/coverage-final.json -F e2e
when: always
command: node common/scripts/install-run-rush.js e2e-ci
# - run:
# name: Upload E2E Test Coverage
# command: node common/scripts/install-run-rush.js upload-coverage -F e2e
# when: always
- store_test_results:
path: reports
parallelism: 2
Expand All @@ -167,50 +153,41 @@ jobs:
test10:
<<: *node10
<<: *test10
e2e10:
<<: *node10
<<: *e2e10
build-e2e10:
build-10:
<<: *node10
<<: *build-e2e10
<<: *build-10

test12:
<<: *node12
<<: *test12
e2e12:
build-12:
<<: *node12
<<: *e2e12
build-e2e12:
<<: *node12
<<: *build-e2e12
<<: *build-12

lint:
nit:
<<: *node12
<<: *lint
<<: *nit

workflows:
version: 2
test10:
jobs:
- build-e2e10:
- nit:
filters: *filter-ignore-bors-tmp
- build-10:
filters: *filter-ignore-bors-tmp
- test10:
filters: *filter-ignore-bors-tmp
- e2e10:
requires:
- build-e2e10
filters: *filter-ignore-bors-tmp
- lint:
filters: *filter-ignore-bors-tmp
- build-10

test12:
jobs:
- build-e2e12:
- nit:
filters: *filter-ignore-bors-tmp
- build-12:
filters: *filter-ignore-bors-tmp
- test12:
filters: *filter-ignore-bors-tmp
- e2e12:
requires:
- build-e2e12
filters: *filter-ignore-bors-tmp
- lint:
filters: *filter-ignore-bors-tmp
- build-12
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**/node_modules**
**/package-deps.json
**/*.log
16 changes: 12 additions & 4 deletions .github/workflows/website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,21 @@ jobs:
- name: Checkout Code
uses: actions/checkout@94d077c24971944d312dd9197c1bdfba62b39878
- name: Install Node
run: brew update-reset && brew update && export PATH="/usr/local/bin:$PATH" && brew unlink node@6 && brew install node
run: brew update-reset && brew update && brew unlink node@12 && brew install node@10 && brew link node@10 --force
- name: Install Chrome
run: brew cask install google-chrome
- name: Yarn Install
run: yarn install --non-interactive --ignore-engines
- name: Install Rush
run: npm i -g @microsoft/rush@latest
- name: Rush Install
run: rush install
- name: Rush Rebuild
run: rush rebuild
- name: Prune node_modules
run: rush prune-node-modules
- name: Rush Link Root
run: rush link-root
- name: Run Cypress Express Test
run: yarn test:cypress-express
run: rush test-cypress --express
- name: Store Cypress Screenshots
if: failure()
continue-on-error: true
Expand Down
14 changes: 12 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,23 @@
/dist/
/build/
/tmp
/packages/*/lib
/packages/*/dist
/packages/*/dist-ts
/packages/*/lib/bin
/packages/*/lib/obj
.rpt2_cache
/reports
.nyc_output
.awcache
.cache-loader

# Release Files
/packages/*/LICENSE
/packages/*/README.md

# Playground
/packages/neo-one-playground

# Website
/packages/neo-one-website/tmp
/packages/neo-one-website/build
/packages/neo-one-website/dist
Expand Down Expand Up @@ -77,3 +82,8 @@ cypress/screenshots

# React-Static Artifacts
/packages/neo-one-website/artifacts/

# Rush files
common/temp/**
package-deps.json
/packages/*/.rush
16 changes: 16 additions & 0 deletions .huskyrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const path = require('path');

const basePath = path.resolve(__dirname, '.git');

const hooks =
process.env.NEO_ONE_PUBLISH === 'true'
? {}
: {
'pre-commit': `rush check && rush lint:staged -p 16 && rush build && GIT_DIR=${basePath} rush change -v`,
'post-merge': 'rush install',
'post-rewrite': 'rush install',
};

module.exports = {
hooks,
};
19 changes: 19 additions & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const path = require('path');

module.exports = {
'**/src/**/*.ts?(x)': (filenames) =>
filenames.reduce((acc, filename) => {
return acc.concat([
`${path.resolve(
__dirname,
'common',
'temp',
'node_modules',
'.bin',
'prettier',
)} --write ${filename}`,
`git add ${path.resolve(process.cwd(), filename)}`,
`node ./node_modules/@neo-one/build-tools/bin/neo-one-lint.js --staged --pattern \"${filename}\"`,
]);
}, []),
};
1 change: 0 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

{
"arrowParens": "always",
"printWidth": 120,
Expand Down
Loading