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