Skip to content

Commit

Permalink
feat(refactor): move server and client logic to their own package (#26)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Split before.js into server and client packages

* feat(refactor): move server and client logic to their own package.

* ci: add monorepo config

* feat(refactor): build client and server with its own target

* fix: remove polyfill from bundle

* test(fix): setup jest with custom babel config

* fix(babeljs): add core-js option in config

* chore(fix): node scripts

* chore(package): change package scope

* fix(bundle): change exclude/include regexp

* fix(script): change workspace package names

* docs: add client and server initial readme files

* fix: expose only the render method

* fix: bundle cjs package also

* fix: include polyfills :(

* fix: load chunks and then route component

* test: update load current route unit test

* chore: expose unsure ready method

* chore: set package module name

* ci: prepare build steps for open public module

* ci(fix): remove pre-release dependency

* ci(fix): require health-check step to approve a release

* ci(fix): run release-approval only for develop branch

* ci(lerna): remove independant mode

* chore: change name of global package script

* chore: add flybondi badge
  • Loading branch information
lfantone committed May 28, 2019
1 parent c99121c commit 0100dd4
Show file tree
Hide file tree
Showing 68 changed files with 4,223 additions and 9,792 deletions.
4 changes: 0 additions & 4 deletions .babelrc

This file was deleted.

45 changes: 12 additions & 33 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

job_defaults: &job_defaults
docker:
- image: flybondi/docker-nodejs-awscli:8.10
- image: flybondi/docker-nodejs-awscli:10.x

npm_config: &npm_config
name: Configure NPM user
Expand All @@ -32,28 +32,8 @@ jobs:
paths:
- ./node_modules
- run:
name: Running tests
command: yarn test

pre-release:
<<: *job_defaults
steps:
- checkout
- run: *npm_config
- run:
name: Install deps
command: yarn install --pure-lockfile
- deploy:
name: Create pre-release and publish it to @next in npm
command: |
git config --global user.email $GIT_EMAIL
git config --global user.name $GIT_USERNAME
VER=$(npm dist-tags ls | grep next | cut -d ' ' -f 2)
jq ".version=\"$VER\"" < package.json > package2.json
mv package2.json package.json
git commit package.json -m "mock pck version"
npm version prerelease
npm publish --tag next
name: Running tests and lint
command: yarn test lint
release-creation:
<<: *job_defaults
steps:
Expand All @@ -80,9 +60,10 @@ jobs:
name: Install deps
command: yarn install --pure-lockfile
- deploy:
name: Semantic release
command: npx -p @flybondi/semantic-release-packages-config@$SEMANTIC_PKGS_VERSION -p semantic-release@$SEMANTIC_VERSION semantic-release -e @flybondi/semantic-release-packages-config

name: Lerna release
command: |
yarn lerna version --conventional-commits --changelog-preset angular --yes
yarn lerna publish from-package --npm-tag latest --yes
workflows:
version: 2
packages-flow:
Expand All @@ -93,17 +74,14 @@ workflows:
ignore:
- master
context: flybondi-ci
- pre-release:
requires:
- health-check

- release-approval:
type: approval
filters:
branches:
only: develop
context: flybondi-ci
- release-approval:
type: approval
requires:
- pre-release
- health-check
- release-creation:
requires:
- release-approval
Expand All @@ -113,3 +91,4 @@ workflows:
branches:
only: master
context: flybondi-ci

86 changes: 27 additions & 59 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,68 +1,36 @@
# Serverless directories
.serverless
# See https://help.github.com/ignore-files/ for more about ignoring files.

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

# Runtime data
pids
*.pid
*.seed
*.pid.lock
# dependencies
/node_modules
/packages/*/node_modules
/packages/**/dist
/packages/**/.coverage
/packages/**/flow-typed

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

# Coverage directory used by tools like istanbul
coverage
# testing
/coverage
.coverage

# nyc test coverage
.nyc_output

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

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

# node-waf configuration
.lock-wscript
# production
/build

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# flow
/flow-typed

# Dependency directories
node_modules/
jspm_packages/
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
.idea

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# dotenv environment variables file
.env
# bundle stats
bundle-analysis.html

#build
build/
.cache/
dist/
bundle-analysis.html
# lerna
/lerna-debug.log
91 changes: 0 additions & 91 deletions flow-typed/asyncComponent_vx.x.x.js

This file was deleted.

Loading

0 comments on commit 0100dd4

Please sign in to comment.