Skip to content

Commit

Permalink
chore: add babel and typescript build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jul 23, 2021
1 parent cb7a3dc commit 195d6b6
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 5 deletions.
17 changes: 17 additions & 0 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"presets": [
[
"babel-preset-atomic",
{
"targets": {
"node": "12.18.3"
},
"flow": false,
"react": false
}
]
],
"plugins": [],
"exclude": "node_modules/**",
"sourceMap": "inline"
}
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@
"test.lint": "eslint .",
"check-version": "node script/check-version.js",
"clean:bin": "shx rm -rf bin/node_darwin_x64 bin/node.exe bin/node",
"clean:lib": "shx rm -rf lib && shx mkdir -p lib",
"clean:lib": "shx rm -rf lib && shx mkdir lib",
"clean": "npm run clean:lib && npm run clean:bin",
"coffee": "coffee --compile --output lib src",
"build": "npm run clean:lib && npm run coffee",
"tsc": "tsc -p src/tsconfig.json || echo done",
"babel": "babel ./src --out-dir ./lib",
"build": "npm run clean:lib && npm run babel",
"prepare": "npm run build",
"postinstall": "node script/postinstall.js",
"get.fixtures": "node ./script/get-fixtures.js && shx cp -r ./spec/fixtures/r.tmbundle-patch/Snippets/ ./spec/fixtures/r.tmbundle/",
"test": "npm run check-version && npm run build.test && jasmine-focused --captureExceptions dist-spec/*-spec.js",
"test": "npm run check-version && npm run build.test && jasmine-focused --captureExceptions dist-spec",
"build.test": "npm run get.fixtures && shx rm -rf dist-spec && shx cp -r spec dist-spec && coffee --compile dist-spec && shx rm -rf dist-spec/*.coffee"
},
"dependencies": {
Expand Down Expand Up @@ -60,8 +61,9 @@
"yargs": "^3.32.0"
},
"devDependencies": {
"coffeescript": "^2",
"babel-preset-atomic": "^4.2.0",
"coffeelint": "^2.1",
"coffeescript": "^2",
"eslint-config-atomic": "^1.16.2",
"express": "^4.17.1",
"gitly": "^2.1.2",
Expand Down
31 changes: 31 additions & 0 deletions src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"compilerOptions": {
"strict": false,
"strictNullChecks": false,
"noUnusedLocals": false,
"noUnusedParameters": false,
"noImplicitReturns": false,
"noImplicitAny": false,
"noImplicitThis": true,
"noFallthroughCasesInSwitch": true,
"declaration": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"incremental": true,
"inlineSourceMap": true,
"inlineSources": true,
"preserveSymlinks": true,
"removeComments": false,
"jsx": "react",
"lib": ["ES2018", "dom"],
"target": "ES2018",
"allowJs": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"module": "commonjs",
"moduleResolution": "node",
"importHelpers": false,
"outDir": "../lib"
},
"compileOnSave": false
}

0 comments on commit 195d6b6

Please sign in to comment.