@rnacanvas/start-page 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.
package/jest.config.js ADDED
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @type { import('jest').Config }
3
+ */
4
+ const config = {
5
+ "moduleNameMapper": {
6
+ "\\.css$": "<rootDir>/__mocks__/styleMock.js",
7
+ "\\.svg$": "<rootDir>/__mocks__/fileMock.js",
8
+ },
9
+ "transformIgnorePatterns": [
10
+ "node_modules/(?!@ngrx|(?!deck.gl)|ng-dynamic)",
11
+ ],
12
+ };
13
+
14
+ module.exports = config;
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@rnacanvas/start-page",
3
+ "version": "1.0.0",
4
+ "description": "The Start page",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/pzhaojohnson/rnacanvas.start-page.git"
8
+ },
9
+ "main": "./dist/index.js",
10
+ "scripts": {
11
+ "test": "jest",
12
+ "build": "webpack"
13
+ },
14
+ "author": "pzhaojohnson",
15
+ "license": "GPL-3.0-only",
16
+ "devDependencies": {
17
+ "@babel/core": "^7.23.7",
18
+ "@babel/preset-env": "^7.23.7",
19
+ "@babel/preset-typescript": "^7.23.3",
20
+ "@types/jquery": "^4.0.0",
21
+ "babel-jest": "^30.2.0",
22
+ "css-loader": "^7.1.2",
23
+ "jest": "^30.2.0",
24
+ "jest-environment-jsdom": "^30.2.0",
25
+ "style-loader": "^4.0.0",
26
+ "svg-inline-loader": "^0.8.2",
27
+ "ts-loader": "^9.5.1",
28
+ "typescript": "^6.0.2",
29
+ "webpack": "^5.89.0",
30
+ "webpack-cli": "^7.0.0"
31
+ },
32
+ "dependencies": {
33
+ "jquery": "^4.0.0",
34
+ "uuid": "^13.0.0"
35
+ }
36
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "compilerOptions": {
3
+ "strict": true,
4
+ "rootDir": "./src",
5
+ "outDir": "./dist/",
6
+ "sourceMap": true,
7
+ "declaration": true,
8
+ "declarationDir": "./dist/",
9
+ "declarationMap": true,
10
+ "module": "es6",
11
+ "target": "es2019",
12
+ "moduleResolution": "bundler"
13
+ }
14
+ }
@@ -0,0 +1,47 @@
1
+ const path = require('path');
2
+
3
+ module.exports = {
4
+ entry: './src/index.ts',
5
+ mode: 'production',
6
+ module: {
7
+ rules: [
8
+ {
9
+ test: /\.tsx?$/,
10
+ use: 'ts-loader',
11
+ exclude: /node_modules/,
12
+ },
13
+ {
14
+ test: /\.module\.css$/i,
15
+ use: [
16
+ 'style-loader',
17
+ {
18
+ loader: 'css-loader',
19
+ options: {
20
+ modules: {
21
+ namedExport: true,
22
+ localIdentHashSalt: '585797986869092', // make unique for each package
23
+ },
24
+ },
25
+ },
26
+ ],
27
+ },
28
+ {
29
+ test: /\.svg$/,
30
+ loader: 'svg-inline-loader',
31
+ },
32
+ ],
33
+ },
34
+ resolve: {
35
+ extensions: ['.tsx', '.ts', '.js'],
36
+ },
37
+ output: {
38
+ path: path.resolve(__dirname, 'dist'),
39
+ filename: 'index.js',
40
+ globalObject: 'this',
41
+ library: {
42
+ name: 'startPage',
43
+ type: 'umd',
44
+ },
45
+ clean: true,
46
+ },
47
+ };