Skip to content

Commit

Permalink
chore: remove parcel and bump packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Duarte committed May 27, 2018
1 parent 0a5b59c commit 0898d33
Show file tree
Hide file tree
Showing 5 changed files with 1,029 additions and 2,584 deletions.
4 changes: 4 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": ["@babel/env", "@babel/typescript"],
"plugins": ["@babel/proposal-class-properties", "@babel/proposal-object-rest-spread"]
}
34 changes: 20 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,40 @@
"url": "https://github.com/GabrielDuarteM/youtube-autoclose-ads.git"
},
"scripts": {
"start": "yarn build:clean && concurrently \"yarn build:copy-public -w\" \"parcel\" \"parcel src/options.html --public-url ./ --port 34755\" --kill-others",
"start": "yarn build:clean && concurrently \"yarn build:copy:public -w\" \"yarn build:babel -w\" \"yarn build:tsc -w\" \"yarn build:copy:html -w\" --kill-others",
"lint": "yarn lint:typescript && yarn lint:prettier",
"lint:fix": "yarn lint:typescript:fix && yarn lint:prettier:fix",
"lint:typescript": "tslint \"src/**/*.ts\" --project tsconfig.json",
"lint:typescript:fix": "yarn lint:typescript --fix",
"lint:prettier": "prettier -l \"src/**/*.ts\"",
"lint:prettier:fix": "yarn lint:prettier --write",
"build": "yarn build:clean && yarn build:copy-public && yarn build:parcel",
"type-check": "tsc --noEmit",
"build": "yarn build:clean && yarn build:copy:public && yarn build:copy:html && yarn build:babel && yarn build:tsc",
"build:ci": "yarn lint && yarn build",
"build:clean": "rimraf dist",
"build:parcel": "parcel build src/youtube-autoclose-ads.ts --out-file youtube-autoclose-ads && parcel build src/options.html --public-url ./",
"build:copy-public": "cpx \"src/public/*\" dist",
"build:babel": "babel src --out-dir dist --extensions \".ts\"",
"build:tsc": "tsc --emitDeclarationOnly",
"build:copy:html": "cpx \"src/**/*.html\" dist",
"build:copy:public": "cpx \"src/public/*\" dist",
"release": "semantic-release"
},
"dependencies": {
"@types/chrome": "^0.0.64",
"@types/node": "^9.6.6",
"devDependencies": {
"@babel/cli": "^7.0.0-beta.49",
"@babel/core": "^7.0.0-beta.49",
"@babel/plugin-proposal-class-properties": "^7.0.0-beta.49",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0-beta.49",
"@babel/preset-env": "^7.0.0-beta.49",
"@babel/preset-typescript": "^7.0.0-beta.49",
"@types/chrome": "^0.0.66",
"@types/node": "^10.1.2",
"concurrently": "^3.5.1",
"cpx": "^1.5.0",
"parcel-bundler": "^1.7.1",
"prettier": "^1.12.1",
"rimraf": "^2.6.2",
"tslint": "^5.9.1",
"tslint-config-prettier": "^1.12.0",
"semantic-release": "^15.5.0",
"semantic-release-chrome": "^1.0.1",
"tslint": "^5.10.0",
"tslint-config-prettier": "^1.13.0",
"typescript": "^2.8.3"
},
"devDependencies": {
"semantic-release": "^15.1.7",
"semantic-release-chrome": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion src/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<span id="status">&nbsp;</span>
<button id="save">Save</button>

<script src="options.ts"></script>
<script src="options.js"></script>
</body>

</html>
9 changes: 5 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"compilerOptions": {
"outDir": "./dist/",
"declaration": true,
"outDir": "dist",
"sourceMap": true,
"strictNullChecks": true,
"strict": true,
"module": "commonjs",
"target": "es6",
"target": "esnext",
"moduleResolution": "node",
"lib": ["es2015", "dom"]
"lib": ["esnext", "dom"]
},
"include": ["./src/"]
}
Loading

0 comments on commit 0898d33

Please sign in to comment.