Skip to content

Commit

Permalink
refactor(amazon): Make amazon package independent
Browse files Browse the repository at this point in the history
Continuting with the migration of spinnaker packages to make them independent and use
rollup for bundling.
  • Loading branch information
vigneshm committed May 20, 2021
1 parent 5561db0 commit 6c3838e
Show file tree
Hide file tree
Showing 6 changed files with 3,450 additions and 29 deletions.
59 changes: 51 additions & 8 deletions app/scripts/modules/amazon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,57 @@
"name": "@spinnaker/amazon",
"license": "Apache-2.0",
"version": "0.0.307",
"main": "lib/lib.js",
"typings": "lib/index.d.ts",
"main": "dist/index.js",
"module": "dist/index.js",
"typings": "dist/index.d.ts",
"scripts": {
"clean": "../../../../node_modules/.bin/rimraf lib",
"lib": "npm run build",
"prepublishOnly": "npm run lib",
"generate-types": "../../../../node_modules/.bin/tsc --emitDeclarationOnly",
"webpack": "node ../../../../node_modules/.bin/webpack",
"build": "npm run clean && npm run generate-types && npm run webpack"
"clean": "shx rm -rf dist",
"prepublishOnly": "npm run build",
"build": "npm run clean && spinnaker-scripts build",
"start": "spinnaker-scripts start",
"lib": "npm run build"
},
"dependencies": {
"@spinnaker/core": "0.0.579",
"@uirouter/angularjs": "1.0.26",
"@uirouter/core": "6.0.5",
"@uirouter/react": "1.0.3",
"@uirouter/react-hybrid": "1.0.2",
"angular": "1.6.10",
"angular-ui-bootstrap": "^2.5.0",
"angular2react": "^3.0.2",
"bootstrap": "3.4.1",
"chart.js": "^3.0.0-rc.5",
"chartjs-adapter-luxon": "^1.0.0-beta.2",
"classnames": "^2.2.5",
"formik": "1.5.1",
"lodash": "^4.17.19",
"ngimport": "^0.6.0",
"react": "~16.14.0",
"react-bootstrap": "^0.32.1",
"react-ga": "^2.4.1",
"react-select": "^1.2.1",
"react-sortable-hoc": "^0.6.8",
"react-virtualized-select": "^3.1.3",
"react2angular": "^3.2.1",
"rxjs": "6.6.7"
},
"devDependencies": {
"@spinnaker/eslint-plugin": "1.0.13",
"@spinnaker/mocks": "1.0.7",
"@spinnaker/scripts": "0.0.4",
"@types/angular": "1.6.26",
"@types/angular-ui-bootstrap": "0.13.41",
"@types/classnames": "2.2.0",
"@types/enzyme": "3.10.3",
"@types/lodash": "4.14.64",
"@types/react": "16.8.13",
"@types/react-bootstrap": "0.32.5",
"@types/react-select": "1.3.4",
"@types/react-sortable-hoc": "0.6.2",
"@types/react-virtualized-select": "3.0.8",
"enzyme": "3.10.0",
"shx": "0.3.3",
"typescript": "4.0.2"
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '~bootstrap/less/mixins/clearfix.less';
@import 'bootstrap/less/mixins/clearfix.less';

.multiple-instance-types-subsection {
a.subsection-heading {
Expand Down
20 changes: 8 additions & 12 deletions app/scripts/modules/amazon/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
{
"extends": "../../../../tsconfig.json",
"extends": "../../../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "./src",
"declaration": true,
"declarationDir": "lib",
"outDir": "lib",
"rootDir": "./src",
"typeRoots": ["../../../../node_modules/@types"],
"outDir": "dist",
"paths": {
"@spinnaker/core": ["../../core/lib"],
"core/*": ["../../core/lib/*"],
"amazon/*": ["*"],
"amazon": ["."]
}
"core/*": ["../node_modules/@spinnaker/core/lib/*"],
"amazon": ["."],
"amazon/*": ["*"]
},
"rootDir": "./src"
},
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["./lib", "**/*.spec.*"]
"exclude": ["./dist", "**/*.spec.*"]
}
7 changes: 0 additions & 7 deletions app/scripts/modules/amazon/webpack.config.js

This file was deleted.

Loading

0 comments on commit 6c3838e

Please sign in to comment.