Skip to content

Commit

Permalink
yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
vovacodes committed Mar 15, 2021
1 parent 8ce9601 commit 2316111
Show file tree
Hide file tree
Showing 8 changed files with 969 additions and 944 deletions.
46 changes: 0 additions & 46 deletions .github/workflows/publish.yml

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x]
node-version: [14.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: yarn install, build, and test
- name: build and test
run: |
yarn install
yarn build
yarn test
make build
make test
env:
CI: true
22 changes: 22 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
DEFAULT_GOAL: build

clean:
make -C packages/demo $@
make -C packages/react-sunbeam $@

build: clean
make -C packages/react-sunbeam $@
make -C packages/demo $@

dev: build
yarn concurrently -n sunb,demo -c red,blue \
"make -C packages/react-sunbeam ${@}" \
"make -C packages/demo ${@}"

type-check:
yarn tsc --noEmit

test:
make -C packages/react-sunbeam $@

PHONY: clean build dev type-check test
5 changes: 4 additions & 1 deletion packages/demo/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
DEFAULT_GOAL: build

build:
clean:
rm -rf dist

build: clean
yarn tsc

dev:
Expand Down
31 changes: 5 additions & 26 deletions packages/demo/package.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,14 @@
{
"name": "demo",
"version": "2.0.0-alpha.1",
"main": "index.js",
"repository": "git+https://github.com/wzrdzl/react-sunbeam.git",
"author": "Vova Guguiev <[email protected]>",
"license": "MIT",
"version": "1.0.0",
"private": true,
"dependencies": {
"framer-motion": "^2.9.4",
"history": "^5.0.0",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-router": "^5.2.0",
"react-router-dom": "^5.2.0",
"react-sunbeam": "^2.0.0-alpha.1"
},
"devDependencies": {
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@types/react-router-dom": "^5.1.6",
"concurrently": "^6.0.0",
"http-server": "^0.12.3",
"framer-motion": "^3.10.3",
"react-router": "^5.2.0",
"@types/react-router-dom": "5.1.6",
"typescript": "^4.1.2"
},
"alias": {
"scheduler/tracing": "scheduler/tracing-profiling"
},
"browserslist": [
">5%",
"not dead",
"not ie <= 11",
"not op_mini all"
]
}
}
18 changes: 18 additions & 0 deletions packages/react-sunbeam/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
DEFAULT_GOAL: build

clean:
rm -rf dist

build: clean
yarn tsc

dev:
yarn tsc --watch --preserveWatchOutput

type-check:
yarn tsc --noEmit

test:
yarn jest

PHONY: clean build dev type-check test
20 changes: 2 additions & 18 deletions packages/react-sunbeam/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
"focus-management"
],
"main": "./dist/cjs/index.js",
"exports": {
".": "./dist/es/index.js"
},
"exports": "./dist/es/index.js",
"module": "./dist/es/index.js",
"types": "./dist/es/index.d.ts",
"repository": {
Expand All @@ -21,14 +19,6 @@
},
"author": "Vova Guguiev <[email protected]>",
"license": "MIT",
"scripts": {
"build": "tsc",
"clean": "rimraf dist",
"dev": "tsc --watch --preserveWatchOutput",
"prebuild": "npm run clean",
"test": "jest",
"type-check": "tsc --noEmit"
},
"devDependencies": {
"@testing-library/react": "^11.1.2",
"@types/jest": "^26.0.15",
Expand All @@ -44,11 +34,5 @@
"peerDependencies": {
"react": "^16 || ^17",
"react-dom": "^16 || ^17"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
]
}
}
Loading

0 comments on commit 2316111

Please sign in to comment.