Skip to content

Commit 037f492

Browse files
committed
feat(core): update to Angular v16 & switch to Bit
1 parent 5d04bd8 commit 037f492

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+21127
-29422
lines changed

.bitmap

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/* THIS IS A BIT-AUTO-GENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. */
2+
3+
/**
4+
* The Bitmap file is an auto generated file used by Bit to track all your Bit components. It maps the component to a folder in your file system.
5+
* This file should be committed to VCS(version control).
6+
* Components are listed using their component ID (https://bit.dev/docs/components/component-id).
7+
* If you want to delete components you can use the "bit remove <component-id>" command.
8+
* See the docs (https://bit.dev/docs/components/removing-components) for more information, or use "bit remove --help".
9+
*/
10+
11+
{
12+
"core": {
13+
"scope": "",
14+
"version": "",
15+
"mainFile": "public-api.ts",
16+
"rootDir": "packages/core"
17+
},
18+
"http-loader": {
19+
"scope": "",
20+
"version": "",
21+
"mainFile": "public-api.ts",
22+
"rootDir": "packages/http-loader"
23+
},
24+
"$schema-version": "15.0.0"
25+
}

.editorconfig

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
# Editor configuration, see http://editorconfig.org
1+
# editorconfig.org
2+
23
root = true
34

45
[*]
56
charset = utf-8
6-
indent_style = space
7+
end_of_line = lf
78
indent_size = 2
9+
indent_style = space
810
insert_final_newline = true
911
trim_trailing_whitespace = true
1012

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.eslintrc.js

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
root: true,
4+
ignorePatterns: ['node_modules'],
5+
parserOptions: {
6+
createDefaultProgram: true,
7+
},
8+
env: {
9+
browser: true,
10+
node: true,
11+
es6: true,
12+
jest: true,
13+
},
14+
overrides: [
15+
{
16+
files: ['*.ts', '*.js'],
17+
parserOptions: {
18+
project: require.resolve('./tsconfig.json'),
19+
createDefaultProgram: true,
20+
},
21+
extends: ['plugin:@angular-eslint/recommended', 'plugin:@angular-eslint/template/process-inline-templates'],
22+
},
23+
{
24+
files: ['*.html'],
25+
extends: ['plugin:@angular-eslint/template/recommended'],
26+
},
27+
{
28+
files: ['*.md'],
29+
extends: ['plugin:markdown/recommended'],
30+
},
31+
],
32+
};

.github/workflows/main.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI
2+
3+
# Controls when the workflow will run
4+
on:
5+
# Triggers the workflow on push or pull request events but only for the master branch
6+
push:
7+
branches: [ master ]
8+
pull_request:
9+
branches: [ master ]
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
env:
14+
BIT_TOKEN: ${{ secrets.BIT_TOKEN }}
15+
16+
jobs:
17+
# Test angular
18+
default-angular:
19+
runs-on: ubuntu-latest
20+
if: "!contains(github.event.head_commit.message, 'skip-ci')"
21+
container:
22+
image: docker://bitcli/bit:latest-node-16.15.0
23+
steps:
24+
- uses: teambit/[email protected]
25+
with:
26+
name: angular-github-actions
27+
BIT_TOKEN: ${{ env.BIT_TOKEN }}
28+
29+
- uses: actions/checkout@v2
30+
31+
- name: Install dependencies
32+
run: bit install --log error
33+
34+
- name: Bit test
35+
run: bit test --log error
36+
37+
- name: Bit lint
38+
run: bit lint --log error
39+
40+
- name: Bit status
41+
run: bit status --log error
42+
43+
- name: Bit build core
44+
run: bit build core --log error
45+
46+
- name: Bit build http-loader
47+
run: bit build http-loader --skip-tests --log error
48+
49+
- uses: actions/upload-artifact@v2
50+
with:
51+
name: debug-log
52+
path: $HOME/Library/Caches/Bit/logs

.gitignore

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

.prettierrc.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"tabWidth": 2,
3+
"printWidth": 120,
4+
"parser": "typescript",
5+
"singleQuote": true
6+
}

.travis.yml

-22
This file was deleted.

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2018 Olivier Combe
1+
Copyright (c) 2023 Olivier Combe
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44

0 commit comments

Comments
 (0)