Skip to content

Commit

Permalink
fix: build autocomplete-paths using Parcel
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Nov 11, 2020
1 parent 4ecda42 commit e8c2029
Show file tree
Hide file tree
Showing 4 changed files with 6,685 additions and 40 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.DS_Store
npm-debug.log
node_modules

.parcel-cache
dist
10 changes: 10 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
let presets = ["babel-preset-atomic"]

let plugins = []

module.exports = {
presets: presets,
plugins: plugins,
exclude: "node_modules/**",
sourceMap: "inline",
}
38 changes: 37 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,56 @@
{
"name": "autocomplete-paths",
"main": "./lib/autocomplete-paths",
"main": "./dist/autocomplete-paths.js",
"version": "2.12.6",
"description": "Adds path autocompletion to autocomplete+",
"repository": "https://github.com/atom-community/autocomplete-paths",
"license": "MIT",
"engines": {
"atom": ">0.50.0"
},
"scripts": {
"clean": "shx rm -rf dist .parcel-cache",
"build.worker": "cross-env NODE_ENV=production parcel build --target worker lib/paths-cache-worker.js",
"build.main": "cross-env NODE_ENV=production parcel build --target main lib/autocomplete-paths.js",
"build": "npm run build.main && npm run build.worker",
"build-commit": "build-commit -o dist",
"prepare": "npm run build.main"
},
"targets": {
"main": {
"context": "electron-renderer",
"engines": {
"electron": ">=5.x"
},
"includeNodeModules": {
"atom": false,
"fuzzaldrin-plus-fast": false
},
"outputFormat": "commonjs",
"isLibrary": true
},
"worker": {
"context": "web-worker",
"includeNodeModules": true,
"outputFormat": "global",
"isLibrary": true
}
},
"dependencies": {
"fuzzaldrin-plus-fast": "^1.2.0",
"git-ignore-parser": "^0.0.2",
"minimatch": "^3.0.4",
"slash": "^3.0.0",
"underscore-plus": "^1.7.0"
},
"devDependencies": {
"@babel/core": "^7.12.3",
"babel-preset-atomic": "^3.0.0",
"build-commit": "0.1.1",
"cross-env": "7.0.2",
"parcel": "^2.0.0-nightly.438",
"shx": "0.3.2"
},
"providedServices": {
"autocomplete.provider": {
"versions": {
Expand Down
Loading

0 comments on commit e8c2029

Please sign in to comment.