make createradar a standalone command
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -6,3 +6,4 @@ npm-debug.log
|
|||||||
yarn-error.log
|
yarn-error.log
|
||||||
aoe_technology_radar.iml
|
aoe_technology_radar.iml
|
||||||
build
|
build
|
||||||
|
bin
|
||||||
|
|||||||
@@ -5,7 +5,8 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build_": "react-scripts build",
|
||||||
|
"build": "tsc",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
"_build": "yarn clean && yarn build:pages && yarn build:jsprod && yarn build:css && yarn build:assets",
|
"_build": "yarn clean && yarn build:pages && yarn build:jsprod && yarn build:css && yarn build:assets",
|
||||||
"build:all": "yarn build",
|
"build:all": "yarn build",
|
||||||
@@ -13,6 +14,9 @@
|
|||||||
"build:css": "postcss -c postcss.config.js -o dist/techradar/assets/css/styles.css styles/main.css",
|
"build:css": "postcss -c postcss.config.js -o dist/techradar/assets/css/styles.css styles/main.css",
|
||||||
"type-check": "tsc --noEmit"
|
"type-check": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
|
"bin": {
|
||||||
|
"create-radar": "bin/tasks/radarjson.js"
|
||||||
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"production": [
|
"production": [
|
||||||
">0.2%",
|
">0.2%",
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
"strict": true,
|
"strict": true,
|
||||||
"types": ["node"],
|
"types": ["node"],
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"resolveJsonModule": true
|
"resolveJsonModule": true,
|
||||||
|
// "outDir": "../bin",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3,7 +3,8 @@ import path from 'path';
|
|||||||
import { walk } from 'walk';
|
import { walk } from 'walk';
|
||||||
|
|
||||||
export const relativePath = (...relativePath: string[]): string => (
|
export const relativePath = (...relativePath: string[]): string => (
|
||||||
path.resolve(__dirname, '..', ...relativePath)
|
// path.resolve(__dirname, '..', ...relativePath)
|
||||||
|
path.resolve(...relativePath)
|
||||||
);
|
);
|
||||||
|
|
||||||
export const radarPath = (...pathInSrc: string[]) => (
|
export const radarPath = (...pathInSrc: string[]) => (
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
import { createRadar } from "./radar";
|
#!/usr/bin/env node
|
||||||
import { save } from "./file";
|
|
||||||
|
import {createRadar} from "./radar";
|
||||||
|
import {save} from "./file";
|
||||||
|
|
||||||
|
|
||||||
export const r = (async () => {
|
(async () => {
|
||||||
try {
|
try {
|
||||||
console.log('start')
|
console.log('start')
|
||||||
const radar = await createRadar();
|
const radar = await createRadar();
|
||||||
@@ -21,5 +23,4 @@ export const r = (async () => {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('error:', e);
|
console.error('error:', e);
|
||||||
}
|
}
|
||||||
})();
|
})()
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "es5",
|
"target": "ES2015",
|
||||||
"lib": [
|
"lib": [
|
||||||
"dom",
|
"dom",
|
||||||
"dom.iterable",
|
"dom.iterable",
|
||||||
@@ -14,11 +14,15 @@
|
|||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
"module": "esnext",
|
"module": "esnext",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"resolveJsonModule": true,
|
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"noEmit": true,
|
"jsx": "react",
|
||||||
"jsx": "react"
|
"outDir": "bin",
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"noEmit": true
|
||||||
},
|
},
|
||||||
|
"files": [
|
||||||
|
"tasks/radarjson.ts"
|
||||||
|
],
|
||||||
"include": [
|
"include": [
|
||||||
"src"
|
"src"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -2942,9 +2942,9 @@ caniuse-api@^3.0.0:
|
|||||||
lodash.uniq "^4.5.0"
|
lodash.uniq "^4.5.0"
|
||||||
|
|
||||||
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30000981, caniuse-lite@^1.0.30001035, caniuse-lite@^1.0.30001093, caniuse-lite@^1.0.30001097:
|
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30000981, caniuse-lite@^1.0.30001035, caniuse-lite@^1.0.30001093, caniuse-lite@^1.0.30001097:
|
||||||
version "1.0.30001100"
|
version "1.0.30001173"
|
||||||
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001100.tgz#2a58615e0c01cf716ab349b20ca4d86ef944aa4e"
|
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001173.tgz"
|
||||||
integrity sha512-0eYdp1+wFCnMlCj2oudciuQn2B9xAFq3WpgpcBIZTxk/1HNA/O2YA7rpeYhnOqsqAJq1AHUgx6i1jtafg7m2zA==
|
integrity sha512-R3aqmjrICdGCTAnSXtNyvWYMK3YtV5jwudbq0T7nN9k4kmE4CBuwPqyJ+KBzepSTh0huivV2gLbSMEzTTmfeYw==
|
||||||
|
|
||||||
capture-exit@^2.0.0:
|
capture-exit@^2.0.0:
|
||||||
version "2.0.0"
|
version "2.0.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user