Skip to content

Commit

Permalink
fix: build hydrogen using parcel
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jun 1, 2021
1 parent 621cb99 commit 06c7337
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
- name: Install dependencies and build
run: |
apm install
npm run tsc || echo done
npm run build
- name: Run tests 👩🏾‍💻
Expand Down
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
public-hoist-pattern[]=*
package-lock=false
lockfile=true
prefer-frozen-lockfile=false
6 changes: 6 additions & 0 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"plugins": [
["@babel/plugin-proposal-decorators", { "legacy": true }],
["@babel/plugin-proposal-class-properties", { "loose": true }]
]
}
37 changes: 33 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Hydrogen",
"main": "./dist/main",
"main": "./dist/main.js",
"version": "2.16.2",
"description": "Run code interactively, inspect data, and plot. All the power of Jupyter kernels, inside your favorite text editor.",
"author": "nteract contributors",
Expand Down Expand Up @@ -42,12 +42,13 @@
"build.test": "npm run build && npm run test",
"test": "echo 'test without rebuilding' && atom --test spec",
"clean": "shx rm -rf dist",
"dev": "npm run clean && tsc -p lib/tsconfig.json --watch",
"build": "npm run clean && tsc -p lib/tsconfig.json || echo done",
"tsc": "tsc -p lib/tsconfig.json",
"dev": "npm run tsc -- --watch",
"build": "cross-env NODE_ENV=production parcel build ./lib/main.ts --detailed-report",
"build:services-docs": "markdox lib/services/index.js -o lib/services/README.md",
"build:plugin-docs": "markdox lib/plugin-api/hydrogen-provider.js lib/plugin-api/hydrogen-kernel.js -o docs/PluginAPI.md",
"build:docs": "npm run build:plugin-docs && npm run build:services-docs",
"build-commit": "build-commit -o dist",
"build-commit": "npm run clean && build-commit -o dist",
"prepare": "npm run build"
},
"atomTestRunner": "atom-jasmine3-test-runner",
Expand Down Expand Up @@ -111,6 +112,8 @@
}
},
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/plugin-proposal-decorators": "^7.14.2",
"@nteract/types": "^7.1.7",
"@types/atom": "^1.40.10",
"@types/enzyme": "^3.10.8",
Expand All @@ -126,15 +129,41 @@
"@types/ws": "^7.4.1",
"atom-jasmine3-test-runner": "^5.2.5",
"build-commit": "^0.1.4",
"cross-env": "^7.0.3",
"electron": "^6",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.6",
"eslint-config-atomic": "^1.14.4",
"eslint-plugin-you-dont-need-lodash-underscore": "^6.12.0",
"markdox": "^0.1.10",
"parcel": "^2.0.0-beta.3.1",
"prettier-config-atomic": "^2.0.5",
"react-test-renderer": "^17.0.2",
"shx": "^0.3.3",
"typescript": "^4.2.4"
},
"targets": {
"main": {
"context": "electron-renderer",
"engines": {
"electron": ">=6.x"
},
"includeNodeModules": {
"atom": false,
"electron": false,
"@aminya/zeromq": false,
"canvas": false,
"react": false,
"react-dom": false,
"react-refresh": false,
"mobx-react": false,
"@nteract/plotly": false,
"refractor": false
},
"isLibrary": true
}
},
"alias": {
"moment": "moment/src/moment.js"
}
}

0 comments on commit 06c7337

Please sign in to comment.