зеркало из https://github.com/microsoft/jacdac-ts.git
cleaning
This commit is contained in:
Родитель
a28250dd43
Коммит
435eae5422
|
@ -1,13 +0,0 @@
|
|||
#root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
max_line_length = 100
|
||||
indent_size = 2
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
20
.travis.yml
20
.travis.yml
|
@ -1,20 +0,0 @@
|
|||
language: node_js
|
||||
cache:
|
||||
directories:
|
||||
- ~/.npm
|
||||
notifications:
|
||||
email: false
|
||||
node_js:
|
||||
- '10'
|
||||
- '11'
|
||||
- '8'
|
||||
- '6'
|
||||
script:
|
||||
- npm run test:prod && npm run build
|
||||
after_success:
|
||||
- npm run travis-deploy-once "npm run report-coverage"
|
||||
- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then npm run travis-deploy-once "npm run deploy-docs"; fi
|
||||
- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then npm run travis-deploy-once "npm run semantic-release"; fi
|
||||
branches:
|
||||
except:
|
||||
- /^v\d+\.\d+\.\d+$/
|
|
@ -13,7 +13,7 @@ export default {
|
|||
input: `src/${libraryName}.ts`,
|
||||
output: [
|
||||
{ file: pkg.main, name: camelCase(libraryName), format: 'umd', sourcemap: true },
|
||||
{ file: pkg.module, format: 'es', sourcemap: true },
|
||||
{ file: pkg.module, format: 'es', sourcemap: true }
|
||||
],
|
||||
// Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash')
|
||||
external: [],
|
||||
|
@ -33,6 +33,6 @@ export default {
|
|||
resolve(),
|
||||
|
||||
// Resolve source maps to the original source
|
||||
sourceMaps(),
|
||||
],
|
||||
sourceMaps()
|
||||
]
|
||||
}
|
||||
|
|
|
@ -1,54 +0,0 @@
|
|||
const path = require("path")
|
||||
const { fork } = require("child_process")
|
||||
const colors = require("colors")
|
||||
|
||||
const { readFileSync, writeFileSync } = require("fs")
|
||||
const pkg = JSON.parse(
|
||||
readFileSync(path.resolve(__dirname, "..", "package.json"))
|
||||
)
|
||||
|
||||
pkg.scripts.prepush = "npm run test:prod && npm run build"
|
||||
pkg.scripts.commitmsg = "commitlint -E HUSKY_GIT_PARAMS"
|
||||
|
||||
writeFileSync(
|
||||
path.resolve(__dirname, "..", "package.json"),
|
||||
JSON.stringify(pkg, null, 2)
|
||||
)
|
||||
|
||||
// Call husky to set up the hooks
|
||||
fork(path.resolve(__dirname, "..", "node_modules", "husky", "lib", "installer", 'bin'), ['install'])
|
||||
|
||||
console.log()
|
||||
console.log(colors.green("Done!!"))
|
||||
console.log()
|
||||
|
||||
if (pkg.repository.url.trim()) {
|
||||
console.log(colors.cyan("Now run:"))
|
||||
console.log(colors.cyan(" npm install -g semantic-release-cli"))
|
||||
console.log(colors.cyan(" semantic-release-cli setup"))
|
||||
console.log()
|
||||
console.log(
|
||||
colors.cyan('Important! Answer NO to "Generate travis.yml" question')
|
||||
)
|
||||
console.log()
|
||||
console.log(
|
||||
colors.gray(
|
||||
'Note: Make sure "repository.url" in your package.json is correct before'
|
||||
)
|
||||
)
|
||||
} else {
|
||||
console.log(
|
||||
colors.red(
|
||||
'First you need to set the "repository.url" property in package.json'
|
||||
)
|
||||
)
|
||||
console.log(colors.cyan("Then run:"))
|
||||
console.log(colors.cyan(" npm install -g semantic-release-cli"))
|
||||
console.log(colors.cyan(" semantic-release-cli setup"))
|
||||
console.log()
|
||||
console.log(
|
||||
colors.cyan('Important! Answer NO to "Generate travis.yml" question')
|
||||
)
|
||||
}
|
||||
|
||||
console.log()
|
|
@ -1,23 +0,0 @@
|
|||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
mode: 'development',
|
||||
entry: './src/index.ts',
|
||||
devtool: 'inline-source-map',
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.tsx?$/,
|
||||
use: 'ts-loader',
|
||||
exclude: /node_modules/,
|
||||
},
|
||||
],
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.tsx', '.ts', '.js'],
|
||||
},
|
||||
output: {
|
||||
filename: 'bundle.js',
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
},
|
||||
};
|
Загрузка…
Ссылка в новой задаче