Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

Commit

Permalink
Completely new API and lots of treats (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
omrilotan authored Jul 12, 2020
1 parent 815b67c commit 4a9cfec
Show file tree
Hide file tree
Showing 55 changed files with 10,383 additions and 766 deletions.
20 changes: 0 additions & 20 deletions .babelrc.js

This file was deleted.

50 changes: 26 additions & 24 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,17 @@
defaults: &defaults
working_directory: ~/app
docker:
- image: circleci/node:12-browsers
- image: circleci/node:14-browsers

version: 2
jobs:
dependencies:
test:
<<: *defaults
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: Set npmrc credentials
command: echo -e $NPMRC > ~/.npmrc
- run:
name: Install dependencies
command: npm i
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
test:
<<: *defaults
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: Run tests
command: npm t
Expand All @@ -37,8 +22,6 @@ jobs:
<<: *defaults
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: Set npmrc credentials
command: echo -e $NPMRC > ~/.npmrc
Expand All @@ -56,6 +39,20 @@ jobs:
--data "{\"build_parameters\":{\"TRIGGERING_REPOSITORY\":\"${CIRCLE_REPOSITORY_URL}\"}}" \
--request POST \
https://circleci.com/api/v1.1/project/github/fiverr/glossary/tree/master
playground:
<<: *defaults
steps:
- checkout
- run:
name: Install dependencies
command: npm i
- run:
name: Build playground
command: npm run build
- run:
name: Publish to gh-pages
command: curl ci-cd.net/v1/gh/pages | bash -s dist/.


experimental:
notify:
Expand All @@ -67,11 +64,7 @@ workflows:
version: 2
ci-cd:
jobs:
- dependencies:
context: org-global
- test:
requires:
- dependencies
- test
- publish:
context: org-global
requires:
Expand All @@ -84,3 +77,12 @@ workflows:
branches:
only:
- master
- playground:
context: org-global
requires:
- publish
filters:
branches:
only:
- master
- 2020-06-18-version-2
6 changes: 2 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ trim_trailing_whitespace = true
charset = utf-8
indent_style = space
tab_width = 4
indent_size = 4

[.*,*.{json}]
[.*,*.{json,yml}]
indent_size = 2

[*.js]
indent_size = 4
4 changes: 1 addition & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
*.json
/dist
/node_modules
dist
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.DS_Store
*.log
.cache
node_modules
package-lock.json
dist
15 changes: 1 addition & 14 deletions .karma/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,6 @@ const pattern = ((args) =>
`../src/${args.length ? `**/+(${args.join('|')})` : '**'}/spec.js`
)(JSON.parse(process.env.npm_config_argv).remain);

const webpack = {
module: {
rules: [
{
test: /\.js$/,
loader: 'babel-loader',
include: resolve('../src'),
sideEffects: false,
},
],
},
};

module.exports = (config) => {
const {LOG_INFO} = config;

Expand All @@ -45,7 +32,7 @@ module.exports = (config) => {
noInfo: true,
stats: 'errors-only',
},
webpack,
webpack: {},
files: [
ENV_SETUP,
{ pattern, watch },
Expand Down
3 changes: 3 additions & 0 deletions .karma/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "commonjs"
}
5 changes: 3 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.*
*.log
CODE_OF_CONDUCT.md
webpack.config.js
play
dist
spec.js
index.html
spec-helpers
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12
14
Loading

0 comments on commit 4a9cfec

Please sign in to comment.