@nextcinema/core 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,23 @@
1
+ name: Publish
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ publish:
10
+ name: Publish job
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout repository
14
+ uses: actions/checkout@v4
15
+ - name: Setup node.js
16
+ uses: actions/setup-node@v4
17
+ with:
18
+ node-version: 20
19
+ registry-url: 'https://registry.npmjs.org'
20
+ - name: Publish package
21
+ run: npm publish
22
+ env:
23
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/package.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "@nextcinema/core",
3
+ "version": "1.0.0",
4
+ "description": "Core utilities and shared setup",
5
+ "type": "commonjs",
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
9
+ "license": "ISC",
10
+ "peerDependencies": {
11
+ "prettier": "^3.0.0"
12
+ },
13
+ "dependencies": {
14
+ "@trivago/prettier-plugin-sort-imports": "^5.2.2"
15
+ },
16
+ "exports": {
17
+ "prettier": "./src/prettier.config.mjs"
18
+ }
19
+ }
@@ -0,0 +1,25 @@
1
+ /** @type {import("prettier").Config} */
2
+ export default {
3
+ trailingComma: 'none',
4
+ tabWidth: 4,
5
+ useTabs: true,
6
+ semi: false,
7
+ singleQuote: true,
8
+ jsxSingleQuote: true,
9
+ arrowParens: 'avoid',
10
+ importOrderSeparation: true,
11
+ importOrderSortSpecifiers: true,
12
+ importOrderCaseInsensitive: true,
13
+ importOrderParserPlugins: [
14
+ 'classProperties',
15
+ 'decorators-legacy',
16
+ 'typescript'
17
+ ],
18
+ importOrder: [
19
+ '<THIRD_PARTY_MODULES>',
20
+ '^@/(.*)$',
21
+ '^../(.*)',
22
+ '^./(.*)'
23
+ ],
24
+ plugins: ['@trivago/prettier-plugin-sort-imports']
25
+ }