default ws with NPM module

pull/2368/head
Aniket-Engg 3 years ago committed by yann300
parent 6f6ded53c9
commit 534da6ae50
  1. 3
      libs/remix-ui/workspace/src/lib/actions/workspace.ts
  2. 1
      libs/remix-ui/workspace/src/lib/templates/index.ts
  3. 3
      libs/remix-ws-templates/index.js
  4. 11
      libs/remix-ws-templates/package.json
  5. 0
      libs/remix-ws-templates/remixDefault/README.txt
  6. 0
      libs/remix-ws-templates/remixDefault/contracts/1_Storage.sol
  7. 0
      libs/remix-ws-templates/remixDefault/contracts/2_Owner.sol
  8. 0
      libs/remix-ws-templates/remixDefault/contracts/3_Ballot.sol
  9. 0
      libs/remix-ws-templates/remixDefault/index.ts
  10. 0
      libs/remix-ws-templates/remixDefault/scripts/deploy_with_ethers.ts
  11. 0
      libs/remix-ws-templates/remixDefault/scripts/deploy_with_web3.ts
  12. 0
      libs/remix-ws-templates/remixDefault/scripts/ethers.ts
  13. 0
      libs/remix-ws-templates/remixDefault/scripts/web3.ts
  14. 0
      libs/remix-ws-templates/remixDefault/tests/Ballot_test.sol
  15. 0
      libs/remix-ws-templates/remixDefault/tests/storage.test.js
  16. 1
      package.json

@ -151,7 +151,8 @@ export const loadWorkspacePreset = async (template: WorkspaceTemplate = 'remixDe
default:
try {
const templateWithContent = await import('../templates')
// const templateWithContent = await import('../templates')
const templateWithContent = require('remix-ws-templates')
const templateList = Object.keys(templateWithContent)
if (!templateList.includes(template)) break
const files = templateWithContent[template]

@ -1,3 +1,2 @@
export { default as remixDefault } from './remixDefault'
export { default as erc20 } from './erc20'
export { default as blank } from './blank'

@ -0,0 +1,3 @@
export { default as remixDefault } from './remixDefault'
// export { default as erc20 } from './erc20'
// export { default as blank } from './blank'

@ -0,0 +1,11 @@
{
"name": "remix-ws-templates",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Aniket-Engg",
"license": "ISC"
}

@ -198,6 +198,7 @@
"react-draggable": "^4.4.4",
"react-tabs": "^3.2.2",
"regenerator-runtime": "0.13.7",
"remix-ws-templates": "file:libs/remix-ws-templates",
"selenium": "^2.20.0",
"signale": "^1.4.0",
"string-similarity": "^4.0.4",

Loading…
Cancel
Save