Skip to content

Commit

Permalink
feat(core): update to Angular v16 & switch to Bit
Browse files Browse the repository at this point in the history
  • Loading branch information
ocombe committed May 9, 2023
1 parent 5d04bd8 commit 6060e99
Show file tree
Hide file tree
Showing 56 changed files with 21,127 additions and 29,422 deletions.
25 changes: 25 additions & 0 deletions .bitmap
@@ -0,0 +1,25 @@
/* THIS IS A BIT-AUTO-GENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. */

/**
* 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.
* This file should be committed to VCS(version control).
* Components are listed using their component ID (https://bit.dev/docs/components/component-id).
* If you want to delete components you can use the "bit remove <component-id>" command.
* See the docs (https://bit.dev/docs/components/removing-components) for more information, or use "bit remove --help".
*/

{
"core": {
"scope": "",
"version": "",
"mainFile": "public-api.ts",
"rootDir": "packages/core"
},
"http-loader": {
"scope": "",
"version": "",
"mainFile": "public-api.ts",
"rootDir": "packages/http-loader"
},
"$schema-version": "15.0.0"
}
6 changes: 4 additions & 2 deletions .editorconfig
@@ -1,10 +1,12 @@
# Editor configuration, see http://editorconfig.org
# editorconfig.org

root = true

[*]
charset = utf-8
indent_style = space
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

Expand Down
1 change: 1 addition & 0 deletions .eslintignore
@@ -0,0 +1 @@
node_modules
32 changes: 32 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,32 @@
module.exports = {
parser: '@typescript-eslint/parser',
root: true,
ignorePatterns: ['node_modules'],
parserOptions: {
createDefaultProgram: true,
},
env: {
browser: true,
node: true,
es6: true,
jest: true,
},
overrides: [
{
files: ['*.ts', '*.js'],
parserOptions: {
project: require.resolve('./tsconfig.json'),
createDefaultProgram: true,
},
extends: ['plugin:@angular-eslint/recommended', 'plugin:@angular-eslint/template/process-inline-templates'],
},
{
files: ['*.html'],
extends: ['plugin:@angular-eslint/template/recommended'],
},
{
files: ['*.md'],
extends: ['plugin:markdown/recommended'],
},
],
};
52 changes: 52 additions & 0 deletions .github/workflows/main.yml
@@ -0,0 +1,52 @@
name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

env:
BIT_TOKEN: ${{ secrets.BIT_TOKEN }}

jobs:
# Test angular
default-angular:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip-ci')"
container:
image: docker://bitcli/bit:latest-node-16.15.0
steps:
- uses: teambit/setup-action@v2.02
with:
name: angular-github-actions
BIT_TOKEN: ${{ env.BIT_TOKEN }}

- uses: actions/checkout@v2

- name: Install dependencies
run: bit install --log error

- name: Bit test
run: bit test --log error

- name: Bit lint
run: bit lint --log error

- name: Bit status
run: bit status --log error

- name: Bit build core
run: bit build core --log error

- name: Bit build http-loader
run: bit build http-loader --skip-tests --log error

- uses: actions/upload-artifact@v2
with:
name: debug-log
path: $HOME/Library/Caches/Bit/logs
152 changes: 112 additions & 40 deletions .gitignore
@@ -1,40 +1,112 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
/out-tsc
/.angular

# dependencies
/node_modules

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings

# System Files
.DS_Store
Thumbs.db
# Bit
.bit
public

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn
.yarn-integrity
.yarn

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

.history

# IDEs
.vscode
.idea/
6 changes: 6 additions & 0 deletions .prettierrc.js
@@ -0,0 +1,6 @@
{
"tabWidth": 2,
"printWidth": 120,
"parser": "typescript",
"singleQuote": true
}
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
@@ -1,4 +1,4 @@
Copyright (c) 2018 Olivier Combe
Copyright (c) 2023 Olivier Combe

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:

Expand Down

0 comments on commit 6060e99

Please sign in to comment.