-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: publish shell and adapter, fix dependency resolution (#221)
* feat: publish shell and adapter to npm, use app-level dep resolution * chore: remove console.log * fix: don't install shell dependencies in cache directory * chore: force shell overwrite in example * chore: update example yarn.lock * fix: link node_modules from copied shell directory
- Loading branch information
Showing
25 changed files
with
17,475 additions
and
11,329 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
{ | ||
"name": "@dhis2/app-adapter", | ||
"version": "1.0.0", | ||
"private": true, | ||
"version": "3.0.2", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/amcgee/dhis2-app-platform", | ||
"directory": "adapter" | ||
}, | ||
"author": "Austin McGee <[email protected]>", | ||
"license": "BSD-3-Clause", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"main": "build/cjs/lib.js", | ||
"module": "build/es/lib.js", | ||
"files": [ | ||
|
@@ -11,9 +20,11 @@ | |
"@dhis2/ui-widgets": "^2.0.4", | ||
"moment": "^2.24.0" | ||
}, | ||
"devDependencies": {}, | ||
"devDependencies": { | ||
"@dhis2/cli-app-scripts": "3.0.0" | ||
}, | ||
"scripts": { | ||
"build": "../../cli/bin/d2-app-scripts build" | ||
"build": "d2-app-scripts build" | ||
}, | ||
"peerDependencies": { | ||
"@dhis2/app-runtime": "^2.0.4", | ||
|
@@ -25,8 +36,5 @@ | |
"react": "^16.8.6", | ||
"react-dom": "^16.8.6", | ||
"styled-jsx": "^3.2.1" | ||
}, | ||
"installConfig": { | ||
"pnp": true | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,34 @@ | ||
{ | ||
"name": "@dhis2/cli-app-scripts", | ||
"version": "3.0.2", | ||
"main": "src/index.js", | ||
"repository": "https://github.com/amcgee/dhis2-app-platform", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/amcgee/dhis2-app-platform", | ||
"directory": "cli" | ||
}, | ||
"author": "Austin McGee <[email protected]>", | ||
"license": "BSD-3-Clause", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"main": "src/index.js", | ||
"files": [ | ||
"assets", | ||
"bin", | ||
"config", | ||
"src" | ||
], | ||
"//": "****** Includes standard libraries from app-shell, so that tests work ******", | ||
"dependencies": { | ||
"@babel/core": "^7.6.2", | ||
"@babel/plugin-proposal-class-properties": "^7.4.4", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.4.4", | ||
"@babel/preset-env": "^7.6.2", | ||
"@babel/preset-react": "^7.0.0", | ||
"@babel/preset-typescript": "^7.6.0", | ||
"@dhis2/app-runtime": "^2.0.4", | ||
"@dhis2/app-shell": "3.0.2", | ||
"@dhis2/cli-helpers-engine": "^1.5.0", | ||
"@dhis2/d2-i18n": "^1.0.5", | ||
"@dhis2/ui-core": "^4.1.1", | ||
"archiver": "^3.1.1", | ||
"babel-jest": "^24.9.0", | ||
"chokidar": "^3.3.0", | ||
"classnames": "^2.2.6", | ||
"detect-port": "^1.3.0", | ||
"dotenv": "^8.1.0", | ||
"dotenv-expand": "^5.1.0", | ||
|
@@ -40,35 +39,18 @@ | |
"i18next-scanner": "^2.10.3", | ||
"jest-cli": "^24.9.0", | ||
"lodash": "^4.17.11", | ||
"moment": "^2.24.0", | ||
"parse-author": "^2.0.0", | ||
"parse-gitignore": "^1.0.1", | ||
"prop-types": "^15.7.2", | ||
"react": "^16.8.6", | ||
"react-dom": "^16.8.6", | ||
"rollup": "^1.21.4", | ||
"rollup-plugin-babel": "^4.3.2", | ||
"rollup-plugin-commonjs": "^10.1.0", | ||
"rollup-plugin-json": "^4.0.0", | ||
"rollup-plugin-node-resolve": "^5.0.1", | ||
"rollup-plugin-postcss": "^2.0.3", | ||
"rollup-plugin-replace": "^2.2.0", | ||
"rollup-plugin-visualizer": "^3.2.2", | ||
"styled-jsx": "^3.2.2" | ||
"rollup-plugin-visualizer": "^3.2.2" | ||
}, | ||
"bin": { | ||
"d2-app-scripts": "./bin/d2-app-scripts" | ||
}, | ||
"scripts": { | ||
"assets:prep": "rimraf assets && mkdirp assets", | ||
"assets:copy": "copyfiles ../shell/* \"../shell/**/*\" assets/shell --all --exclude \"../shell/**/node_modules/**\" --exclude \"../shell/**/.pnp/**\" --exclude \"../shell/**/.pnp.js\"", | ||
"assets:clean": "cd assets/shell && rimraf node_modules .pnp.js .pnp adapter/node_modules adapter/.pnp.js adapter/.pnp", | ||
"build": "yarn assets:prep && yarn assets:copy", | ||
"prepublishOnly": "yarn build" | ||
}, | ||
"devDependencies": { | ||
"copyfiles": "^2.1.1", | ||
"mkdirp": "^0.5.1", | ||
"rimraf": "^3.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,18 @@ | |
"author": "Austin McGee <[email protected]>", | ||
"license": "BSD-3-Clause", | ||
"private": true, | ||
"dependencies": {}, | ||
"devDependencies": {}, | ||
"devDependencies": { | ||
"@dhis2/cli-app-scripts": "file:../../cli" | ||
}, | ||
"scripts": { | ||
"start": "../../cli/bin/d2-app-scripts start", | ||
"build": "../../cli/bin/d2-app-scripts build", | ||
"test": "../../cli/bin/d2-app-scripts test" | ||
}, | ||
"resolutions": { | ||
"@dhis2/app-shell": "file:../../shell", | ||
"@dhis2/app-adapter": "file:../../adapter" | ||
}, | ||
"peerDependencies": { | ||
"@dhis2/app-runtime": "*", | ||
"@dhis2/d2-i18n": "*", | ||
|
Oops, something went wrong.