Skip to content

Commit

Permalink
modify package.jsons to use windows-friendly deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedotexe committed Mar 22, 2020
1 parent fcbd90f commit b8504bc
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
10 changes: 6 additions & 4 deletions blank_project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"version": "0.0.1",
"scripts": {
"build": "npm run build:contract && npm run build:web",
"build:contract": "mkdir -p out/ && gulp",
"build:contract": "mkdirp out/ && gulp",
"build:web": "parcel build src/index.html --public-url ./",
"dev:deploy:contract": "near dev-deploy",
"deploy:contract": "near deploy",
"deploy:pages": "gh-pages -d dist/",
"deploy": "npm run build && npm run deploy:contract && npm run deploy:pages",
"prestart": "npm run build:contract && npm run dev:deploy:contract",
"start": "CONTRACT_NAME=$(cat neardev/dev-account) parcel src/index.html",
"prestart": "node ./scripts/near-shell-check && npm run build:contract && npm run dev:deploy:contract",
"start": "env-cmd -f ./neardev/dev-account.env parcel src/index.html",
"dev": "nodemon --watch assembly -e ts --exec 'npm run start'",
"test": "npm run build:contract && jest test --env=near-shell/test_environment --runInBand"
},
Expand All @@ -23,7 +23,9 @@
"near-runtime-ts": "^0.6.2",
"near-shell": "^0.20.1",
"nodemon": "^2.0.2",
"parcel-bundler": "^1.12.4"
"parcel-bundler": "^1.12.4",
"mkdirp": "^1.0.3",
"env-cmd": "^10.1.0"
},
"dependencies": {
"nearlib": "^0.22.0",
Expand Down
10 changes: 6 additions & 4 deletions blank_react_project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"version": "0.1.0",
"scripts": {
"build": "npm run build:contract && npm run build:web",
"build:contract": "mkdir -p out/ && gulp",
"build:contract": "mkdirp out/ && gulp",
"build:web": "parcel build src/index.html --public-url ./",
"dev:deploy:contract": "near dev-deploy",
"deploy:contract": "near deploy",
"deploy:pages": "gh-pages -d dist/",
"deploy": "npm run build && npm run deploy:contract && npm run deploy:pages",
"prestart": "npm run build:contract && npm run dev:deploy:contract",
"start": "CONTRACT_NAME=$(cat neardev/dev-account) parcel src/index.html",
"prestart": "node ./scripts/near-shell-check && npm run build:contract && npm run dev:deploy:contract",
"start": "env-cmd -f ./neardev/dev-account.env parcel src/index.html",
"dev": "nodemon --watch assembly -e ts --exec 'npm run start'",
"test": "npm run build:contract && jest test --env=near-shell/test_environment --runInBand"
},
Expand All @@ -27,7 +27,9 @@
"near-shell": "^0.20.1",
"nodemon": "^2.0.2",
"parcel-bundler": "^1.12.4",
"react-test-renderer": "^16.13.0"
"react-test-renderer": "^16.13.0",
"mkdirp": "^1.0.3",
"env-cmd": "^10.1.0"
},
"dependencies": {
"nearlib": "^0.22.0",
Expand Down
7 changes: 4 additions & 3 deletions blank_rust_project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"deploy:contract": "near deploy --wasmFile ./contract/res/status_message.wasm",
"deploy:pages": "gh-pages -d dist/",
"deploy": "npm run build && npm run deploy:contract && npm run deploy:pages",
"prestart": "npm run build:contract && npm run dev:deploy:contract",
"start": "CONTRACT_NAME=$(cat neardev/dev-account) parcel src/index.html",
"prestart": "node ./scripts/near-shell-check && npm run build:contract && npm run dev:deploy:contract",
"start": "env-cmd -f ./neardev/dev-account.env parcel src/index.html",
"dev": "nodemon --watch assembly -e ts --exec 'npm run start'",
"test": "cd contract && cargo test --package status-message -- --nocapture"
},
Expand All @@ -21,7 +21,8 @@
"jest-environment-node": "^24.9.0",
"near-shell": "^0.20.1",
"nodemon": "^2.0.2",
"parcel-bundler": "^1.12.4"
"parcel-bundler": "^1.12.4",
"env-cmd": "^10.1.0"
},
"dependencies": {
"nearlib": "^0.21.0",
Expand Down
7 changes: 4 additions & 3 deletions blank_rust_react_project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"deploy:contract": "near deploy --wasmFile ./contract/res/status_message.wasm",
"deploy:pages": "gh-pages -d dist/",
"deploy": "npm run build && npm run deploy:contract && npm run deploy:pages",
"prestart": "npm run build:contract && npm run dev:deploy:contract",
"start": "CONTRACT_NAME=$(cat neardev/dev-account) parcel src/index.html",
"prestart": "node ./scripts/near-shell-check && npm run build:contract && npm run dev:deploy:contract",
"start": "env-cmd -f ./neardev/dev-account.env parcel src/index.html",
"dev": "nodemon --watch assembly -e ts --exec 'npm run start'",
"test": "cd contract && cargo test --package status-message -- --nocapture"
},
Expand All @@ -25,7 +25,8 @@
"near-shell": "^0.20.1",
"nodemon": "^2.0.2",
"parcel-bundler": "^1.12.4",
"react-test-renderer": "^16.13.0"
"react-test-renderer": "^16.13.0",
"env-cmd": "^10.1.0"
},
"dependencies": {
"nearlib": "^0.21.0",
Expand Down

0 comments on commit b8504bc

Please sign in to comment.