Skip to content

Commit

Permalink
Merge pull request #2 from bookmoons/bookmoons/v1
Browse files Browse the repository at this point in the history
Implement converter
  • Loading branch information
legander authored May 14, 2019
2 parents 0294d6b + 188f190 commit 5662146
Show file tree
Hide file tree
Showing 337 changed files with 12,846 additions and 26 deletions.
24 changes: 24 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: 2
jobs:
build:
docker:
- image: circleci/node:latest

working_directory: ~/repo

steps:
- checkout

- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-

- run: npm install

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

- run: npm test
26 changes: 26 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Default
[*]
charset = "utf-8"
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

# JavaScript
[*.js]
indent_style = space
indent_size = 2

# JSON
[*.json]
indent_style = space
indent_size = 4

# Markdown
[*.md]
trim_trailing_whitespace = false
indent_style = space
indent_size = 4

# XML
[*.xml]
indent_size = 2
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Normalize text file line breaks
* text=auto
35 changes: 35 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
npm-debug.log
package-lock.json
.bundle
NERD_*
tmp
BrowserStackLocal*
browserstack-run.pid
dist
node_modules
*swp
*.DS_Store
dist
*pyc
*sqlite
bower_components/*
.divshot-cache

# compiled output
/dist
/tmp
/build

# dependencies
/node_modules
/bower_components
/vendor
/libs

# misc
/.sass-cache
/connect.lock
/coverage/*
/libpeerconnection.log

testem.log
182 changes: 182 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@

### NPM Specific: Disregard recursive project files
### ===============================================
*.tgz
*.code-workspace
/.babelrc
/.circleci
/.editorconfig
/.gitattributes
/.gitmodules
/.jscsrc
/.jshintrc
/.jsbeautifyrc
/.jsdoc-config.json
/ava.config.js
/build
/doc
/example
/test
/vendor

# CI related files
.ci/

### Borrowed from .gitignore
### ========================

### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm

*.iml

## Directory-based project format:
.idea/
# if you remove the above rule, at least ignore the following:

# User-specific stuff:
# .idea/workspace.xml
# .idea/tasks.xml
# .idea/dictionaries

# Sensitive or high-churn files:
# .idea/dataSources.ids
# .idea/dataSources.xml
# .idea/sqlDataSources.xml
# .idea/dynamic.xml
# .idea/uiDesigner.xml

# Gradle:
# .idea/gradle.xml
# .idea/libraries

# Mongo Explorer plugin:
# .idea/mongoSettings.xml

## File-based project format:
*.ipr
*.iws

## Plugin-specific files:

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties


### SublimeText template
# cache files for sublime text
*.tmlanguage.cache
*.tmPreferences.cache
*.stTheme.cache

# workspace files are user-specific
*.sublime-workspace

# project files should be checked into the repository, unless a significant
# proportion of contributors will probably not be using SublimeText
# *.sublime-project

# sftp configuration file
sftp-config.json


### Windows template
# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk


### OSX template
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk


### Node template
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

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

# Coverage directory used by tools like istanbul
coverage
.coverage

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

# node-waf configuration
.lock-wscript

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

# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules

### Linux template
*~

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# Temporary directory
.tmp
16 changes: 16 additions & 0 deletions ARCHITECTURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Broad divisions are:

* `src/` - Main functionality.
* `test/` - Unit and integration tests.
* `bin/` - CLI code.
* `example/` - Example LI-HAR files for conversion.

Major components under `src/` are:

* `convert.js` - Run conversion. Main entry point. Exposed as
`liHARToK6Script()`.
* `validate/` - Validate an LI-HAR archive.
* `parse/` - Parse an LI-HAR archive. Produces a structure for use in
rendering.
* `render/` - Render k6 script. Uses `parse` output.
* `build/` - Build compatibility layer.
Loading

0 comments on commit 5662146

Please sign in to comment.