Skip to content

Commit

Permalink
Merge pull request #11 from superindustries/feature/build-system
Browse files Browse the repository at this point in the history
feat: exchange microbundle for parcel
  • Loading branch information
TheEdward162 authored Aug 25, 2020
2 parents 61b3281 + ed2f8d1 commit aa851b4
Show file tree
Hide file tree
Showing 4 changed files with 3,312 additions and 1,140 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ typings/
.env.test

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

# Next.js build output
Expand All @@ -81,6 +82,7 @@ typings/
# Nuxt.js build / generate output
.nuxt
dist
lib

# Gatsby files
.cache/
Expand Down
52 changes: 44 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
"name": "@superindustries/superface-parser",
"version": "0.0.0",
"description": "Level 5 autonomous, self-driving API client, https://superface.ai",
"repository": "https://github.com/superindustries/superface-parser.git",
"source": "lib/index.js",
"main": "dist/index.js",
"source": "src/index.ts",
"module": "dist/index.es.js",
"browser": "dist/index.browser.js",
"types": "dist/index.d.ts",
"repository": "https://github.com/superindustries/superface-parser.git",
"author": "Superface Team",
"license": "MIT",
"private": false,
Expand All @@ -16,11 +18,11 @@
"registry": "https://npm.pkg.github.com/"
},
"scripts": {
"bundle_build": "microbundle --tsconfig tsconfig.release.json",
"build": "tsc -p tsconfig.release.json --outDir dist",
"watch": "yarn build --watch",
"clean": "rimraf dist/",
"watch": "yarn build_tsc && parcel serve lib/index.js --detailed-report",
"build": "yarn build_tsc && parcel build lib/index.js --detailed-report",
"build_tsc": "tsc -p tsconfig.release.json",
"prebuild": "yarn clean",
"clean": "rimraf dist/ && rimraf lib/",
"test": "jest",
"lint": "eslint src/",
"format": "prettier -c src/",
Expand All @@ -38,7 +40,7 @@
"eslint-plugin-jest": "^23.13.2",
"eslint-plugin-simple-import-sort": "^5.0.3",
"jest": "^26.0.1",
"microbundle": "^0.12.0",
"parcel": "^2.0.0-beta.1",
"prettier": "^2.0.5",
"rimraf": "^3.0.2",
"ts-jest": "^26.1.0"
Expand All @@ -47,5 +49,39 @@
"@superindustries/language": "^0.0.11",
"@superindustries/superface": "^0.0.1-test",
"typescript": "^3.9.5"
}
},
"targets": {
"types": false,
"main": {
"context": "node",
"outputFormat": "commonjs",
"engines": {
"node": ">=12.x"
},
"includeNodeModules": false,
"isLibrary": true,
"scopeHoist": false
},
"module": {
"context": "node",
"outputFormat": "commonjs",
"engines": {
"node": ">=4.x"
},
"includeNodeModules": false,
"isLibrary": true,
"scopeHoist": false
},
"browser": {
"context": "browser",
"outputFormat": "commonjs",
"includeNodeModules": false,
"isLibrary": true,
"scopeHoist": false
}
},
"browserslist": [
"> 0.2%",
"not dead"
]
}
6 changes: 5 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
{
"compilerOptions": {
"declaration": true,
"declarationDir": "dist/",
"downlevelIteration": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"lib": [],
"module": "CommonJS",
"module": "ESNext",
"rootDir": "./src",
"outDir": "./lib",
"moduleResolution": "node",
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
Expand Down
Loading

0 comments on commit aa851b4

Please sign in to comment.