Skip to content

Commit 87d3603

Browse files
authored
Version 1.0.0 (#5)
1 parent ee70e1b commit 87d3603

37 files changed

Lines changed: 970 additions & 22 deletions

.eslintrc.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,20 @@
55
"jest": true
66
},
77
"extends": [
8+
"airbnb-typescript/base",
89
"eslint:recommended",
910
"plugin:@typescript-eslint/recommended",
1011
"plugin:prettier/recommended",
11-
"prettier/@typescript-eslint",
12-
"airbnb-base"
12+
"prettier/@typescript-eslint"
1313
],
1414
"parser": "@typescript-eslint/parser",
1515
"parserOptions": {
1616
"ecmaVersion": 12,
1717
"sourceType": "module",
1818
"project": [
19-
"tsconfig.json"
19+
"tsconfig.json",
20+
"package/conev-core/tsconfig.json",
21+
"package/conev-json-source/tsconfig.json"
2022
]
2123
},
2224
"plugins": [

.github/workflows/test.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Test CI
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
- 'develop'
8+
- 'release'
9+
pull_request:
10+
branches:
11+
- 'master'
12+
- 'develop'
13+
- 'release'
14+
15+
jobs:
16+
build:
17+
18+
runs-on: ubuntu-latest
19+
20+
strategy:
21+
matrix:
22+
node-version: [12.x]
23+
24+
steps:
25+
- name: Checkout source code
26+
uses: actions/checkout@v2
27+
- name: Use Node.js ${{ matrix.node-version }}
28+
uses: actions/setup-node@v1
29+
with:
30+
node-version: ${{ matrix.node-version }}
31+
- name: Install dependencies
32+
run: npm install
33+
- name: Lint
34+
run: npm run lint
35+
- name: Build
36+
run: npm run all:build:production
37+
- name: Test
38+
run: npm run test

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# Design System
1+
# conev sync

package.json

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "design-system",
2+
"name": "conev-sync",
33
"version": "1.0.0",
44
"description": "",
55
"main": "dist/index.js",
@@ -8,18 +8,19 @@
88
"build:production": "cross-env NODE_ENV=production npm run build",
99
"build": "gulp",
1010
"neon": "neon",
11-
"lint": "eslint --fix . --resolve-plugins-relative-to .",
11+
"lint": "eslint . --resolve-plugins-relative-to .",
12+
"lint:fix": "eslint --fix . --resolve-plugins-relative-to .",
1213
"lint:staged": "lint-staged",
1314
"test": "jest",
1415
"package:init": "script/init-package.sh package",
15-
"package:sync": "script/sync-package.sh package",
16+
"package:snpync": "script/sync-package.sh package",
1617
"package:neon:init": "script/init-neon-package.sh package",
1718
"tsc:init": "tsc --init",
1819
"eslint": "eslint",
1920
"all:install": "script/run-command-all-package.sh install",
2021
"all:build": "script/run-command-all-package.sh run build",
2122
"all:build:production": "script/run-command-all-package.sh run build:production",
22-
"prepublish": "npm run all:build:production && npm run test"
23+
"prepublish": "npm run all:build:production"
2324
},
2425
"repository": {
2526
"type": "git",
@@ -38,7 +39,7 @@
3839
}
3940
},
4041
"lint-staged": {
41-
"src/*.{js,ts}": [
42+
"*.{js,ts}": [
4243
"eslint --fix"
4344
]
4445
},
@@ -67,7 +68,7 @@
6768
"@typescript-eslint/parser": "^3.10.1",
6869
"cross-env": "^7.0.2",
6970
"eslint": "^7.7.0",
70-
"eslint-config-airbnb-base": "^14.2.0",
71+
"eslint-config-airbnb-typescript": "^9.0.0",
7172
"eslint-config-prettier": "^6.11.0",
7273
"eslint-plugin-import": "^2.22.0",
7374
"eslint-plugin-prettier": "^3.1.4",
@@ -80,5 +81,9 @@
8081
"prettier": "^2.1.1",
8182
"ts-jest": "^26.3.0",
8283
"typescript": "^4.0.2"
84+
},
85+
"dependencies": {
86+
"conev-core": "file:package/conev-core",
87+
"conev-json-source": "file:package/conev-json-source"
8388
}
8489
}

package/conev-core/.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
script
2+
node_modules
3+
dist
4+
gulpfile.js

package/conev-core/.eslintrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"../../.eslintrc.json"
4+
]
5+
}

package/conev-core/.gitignore

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
# Logs
2+
old/logs
3+
*.log
4+
*.log.*
5+
npm-debug.log*
6+
yarn-debug.log*
7+
yarn-error.log*
8+
lerna-debug.log*
9+
10+
# Diagnostic reports (https://nodejs.org/api/report.html)
11+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12+
13+
# Runtime data
14+
pids
15+
*.pid
16+
*.seed
17+
*.pid.lock
18+
19+
# Directory for instrumented libs generated by jscoverage/JSCover
20+
lib-cov
21+
22+
# Coverage directory used by tools like istanbul
23+
coverage
24+
*.lcov
25+
26+
# nyc tests coverage
27+
.nyc_output
28+
29+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30+
.grunt
31+
32+
# Bower dependency directory (https://bower.io/)
33+
bower_components
34+
35+
# node-waf configuration
36+
.lock-wscript
37+
38+
# Compiled binary addons (https://nodejs.org/api/addons.html)
39+
build/Release
40+
41+
# Dependency directories
42+
node_modules
43+
jspm_packages/
44+
45+
# TypeScript v1 declaration files
46+
typings/
47+
48+
# TypeScript cache
49+
*.tsbuildinfo
50+
51+
# Optional npm cache directory
52+
.npm
53+
54+
# Optional eslint cache
55+
.eslintcache
56+
57+
# Microbundle cache
58+
.rpt2_cache/
59+
.rts2_cache_cjs/
60+
.rts2_cache_es/
61+
.rts2_cache_umd/
62+
63+
# Optional REPL history
64+
.node_repl_history
65+
66+
# Output of 'npm pack'
67+
*.tgz
68+
69+
# Yarn Integrity file
70+
.yarn-integrity
71+
72+
# dotenv environment variables file
73+
.env
74+
.env.test
75+
76+
# parcel-bundler cache (https://parceljs.org/)
77+
.cache
78+
79+
# Next.js build output
80+
.next
81+
82+
# Nuxt.js build / generate output
83+
.nuxt
84+
dist
85+
86+
# Gatsby files
87+
.cache/
88+
# Comment in the public line in if your project uses Gatsby and *not* Next.js
89+
# https://nextjs.org/blog/next-9-1#public-directory-support
90+
# public
91+
92+
# vuepress build output
93+
.vuepress/dist
94+
95+
# Serverless directories
96+
.serverless/
97+
98+
# FuseBox cache
99+
.fusebox/
100+
101+
# DynamoDB Local files
102+
.dynamodb/
103+
104+
# TernJS port file
105+
.tern-port
106+
107+
package-lock.json
108+
/storage/
109+
mongodb-binaries/
110+
/profiling/
111+
/.vscode/
112+
.idea

package/conev-core/.npmignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
src
2+
script
3+
template
4+
.github

package/conev-core/gulpfile.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const gulp = require('gulp');
2+
const ts = require('gulp-typescript');
3+
4+
function getTsconfig(env) {
5+
if (env != null) {
6+
return `tsconfig.${env.toLowerCase()}.json`;
7+
}
8+
9+
return 'tsconfig.json';
10+
}
11+
12+
const tsProject = ts.createProject(getTsconfig(process.env.NODE_ENV));
13+
14+
const outDir = 'dist'
15+
16+
gulp.task('default', () => tsProject.src()
17+
.pipe(tsProject())
18+
.pipe(gulp.dest(outDir))
19+
);

package/conev-core/package.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"name": "conev-core",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "dist/index.js",
6+
"scripts": {
7+
"test": "jest",
8+
"run": "node dist/index.js",
9+
"build": "gulp",
10+
"build:production": "cross-env NODE_ENV=production npm run build",
11+
"install": "npm run build:production"
12+
},
13+
"author": "",
14+
"license": "ISC",
15+
"devDependencies": {
16+
"@types/jest": "^26.0.10",
17+
"@types/node": "^14.6.2",
18+
"cross-env": "^7.0.2",
19+
"gulp": "^4.0.2",
20+
"gulp-typescript": "^6.0.0-alpha.1",
21+
"jest": "^26.4.2",
22+
"ts-jest": "^26.3.0",
23+
"typescript": "^4.0.2"
24+
},
25+
"jest": {
26+
"transform": {
27+
"^.+\\.ts$": "ts-jest"
28+
},
29+
"testRegex": "\\.spec\\.ts$",
30+
"moduleFileExtensions": [
31+
"ts",
32+
"js"
33+
],
34+
"modulePathIgnorePatterns": [
35+
"dist"
36+
],
37+
"globals": {
38+
"ts-jest": {
39+
"diagnostics": true
40+
}
41+
}
42+
},
43+
"dependencies": {
44+
"deepmerge": "^4.2.2"
45+
}
46+
}

0 commit comments

Comments
 (0)